Found 8894 Articles for Front End Technology

How to specify the URL of the image to use in different situations in HTML?

Smita Kapse
Updated on 03-Mar-2020 11:25:00

238 Views

Use the srcset attribute to specify the URL of the image to use in different situations in HTML.ExampleYou can try to run the following code to implement srcset attribute. Resize the browser to see different images loading −                                                                

Set the language of the track text data in HTML

Abhinanda Shri
Updated on 03-Mar-2020 11:25:44

99 Views

Use the srclang attribute to set the language of the track text data in HTML. For subtitles, use this attribute.ExampleYou can try to run the following code to implement srlang attribute −                                                            Your browser does not support the video element.          

Set the start value of an ordered list in HTML?

mkotla
Updated on 03-Mar-2020 11:24:10

383 Views

Use the start attribute to set the start value of an ordered list in HTML i.e.Add the value of where you want to start above.ExampleYou can try to run the following code to implement the start attribute −           HTML ol Tag               Programming Languages Rank Usage:                Java          C++          C          

How to specify the HTML content of the page to show in the <iframe> in HTML?

Nikhilesh Aleti
Updated on 05-Jul-2024 14:32:46

3K+ Views

In this article, we need to display the HTML content of the page in an iframe; A browser window divided as a separate page. We can achieve this task using the tag and it’s srcdoc attribute. HTML tag The tag in HTML specifies an inline frame. This inline frame is used to embed another document within the current HTML document. This tag is supported by every browser such as Google Chrome, Microsoft edge/ internet explorer, Firefox, safari, and opera, etc. The “srcdoc” attribute of the tag is used to specify the HTML content of the page ... Read More

Execute a script when the user pastes some content in an element in HTML?

Yaswanth Varma
Updated on 16-Dec-2022 10:23:36

89 Views

In this article, we are going to execute a script when the user pastes content into an element in HTML. When a user pastes content into an element, the onpaste event is triggered. Although all HTML elements accept the onpaste event, you cannot actually paste information into a element, unless the element has set contenteditable to "true." Most components with type="text" employ the onpaste event.Let’s dive into the following examples to get better understanding on executing a script when the user pastes some content in an element in HTML. Example 1 In the following examples we are using ... Read More

How to set the URL of the media file in HTML?

Yaswanth Varma
Updated on 16-Dec-2022 11:11:27

554 Views

In this article, we are going to learn about how to set the URL of the media fiel in HTML. Here, we'll look at how to use HTML to establish a media file's URL. We utilise the tag to specify a media file's URL. Multimedia files, including audio, video, and image files, are attached using this tag. The element is contained in the , , and elements. Syntax Following is the syntax for element ……. Let’s dive into the following examples to understand more about how to set the URL of the media file in HTML. ... Read More

Execute a script when a user navigates to a page in HTML?

Nikhilesh Aleti
Updated on 08-Nov-2022 07:59:00

149 Views

The task we need to perform in this article is executing a script when a user navigates to a page in HTML. We can do the above task (executing a script when a user navigates to a page in HTML) by using "onpageshow Event". Before we jump into the examples let’s look into the definition and usage of onpageshow event in HTML. HTML onpageshow event The onpageshow event in HTML occurs when a user navigates to a webpage. This event occurs every time the page is loaded. Syntax Following is the syntax of onpageshow event in HTML − ... Read More

How to add a spellchecker for text in HTML?

Nitya Raut
Updated on 10-Nov-2023 03:09:42

1K+ Views

To add a spellchecker, use the spellcheck attribute in HTML. The attribute checks spelling and grammer for text in input elements, elements and editable elements. Adding spellcheck Write spellcheck="true" inside the text type tag. Note − It works for input elements, but not password.ExampleYou can try to run the following code to add spell checker in HTML −           Subject:       Add an incorrect spelling for a word above and see what happens.       This is an editable conttent, with a spelling mistake. Click to edit.    

Set the number of columns to span in HTML

Yaswanth Varma
Updated on 16-Dec-2022 10:15:51

342 Views

The task we are going to perform in this article is set the number of columns to span in HTML. When utilizing the element, this is accomplished by using the colspan attribute. As a result, a single table cell can now span multiple columns or cells in width. Let’s jump into the article to know more about colspan attribute. Colspan Attribute The number of columns that a cell should span in HTML is specified by the colspan attribute. It enables a single table cell to stretch across many columns or cells. It offers the same features as a ... Read More

Set the size of the icons in HTML

Nikhilesh Aleti
Updated on 08-Nov-2022 07:54:50

5K+ Views

In this article, we are going to discuss how to set the size of the icons in HTML. An icon is a symbol that represents a specific action on a webpage. The Icon Fonts contain symbols and glyphs. There are several icon libraries(fonts) that provide icons and can be used on HTML webpages. The prominent icon fonts frequently used by the web developers are Font Awesome, Bootstrap Glyphicons, and Google’s material icons. Font Awesome − This library is completely free, for both commercial and personal use. This Font provides us with 519 free scalable vector icons. These can be ... Read More

Advertisements