Found 2202 Articles for HTML

Execute a script when fetching the media data is stopped before it is completely loaded in HTML?

Abhinanda Shri
Updated on 03-Mar-2020 07:00:28

367 Views

Use the onsuspend attribute in HTML to run the script when the loading of media data suspends, for example, when download completes. It can happen in any of the following situations −When a download is paused When a download completes Media is suspended, etc.The attribute can be used with the and elements and works in all the modern web browsers such as Firefox, Chrome, Opera, Safari, etc.

How do we set text font in HTML?

Rishi Rathor
Updated on 24-Jun-2020 08:53:26

3K+ Views

The tag was used to set the font in HTML, but it is now deprecated. Use CSS for the same purpose.ExampleYou can try to run the following code to change the font of text in HTML −           Tutorialspoint       Learning videos       Learning content    

Execute a script when a Web Storage area is updated in HTML?

Ankitha Reddy
Updated on 30-Jul-2019 22:30:22

149 Views

Use the onstorage attribute in HTML to execute on Web Storage area update. You can try to run the following code to implement onstorage attribute − Example HTML onstorage Welcome Demo text

How to include groups of table columns in HTML?

varma
Updated on 30-May-2020 22:13:25

1K+ Views

Use the tag to include groups of table columns.The HTML tag is used for specifying properties for a group of columns within a table. If you need to apply different properties to a column within a colgroup, you can use the HTML col tag within the colgroup tag.The following are the attributes −AttributeValueDescriptionAlignrightleftcenterjustifycharDefines horizontal alignment, not supported in Html5.CharcharacterDefines a character to use to align text on (use with align ="char"), not supported in Html5.CharoffpixelDefines the number of columns the should span, not supported in Html5SpannumberDefines the number of columns the should span, not supported in ... Read More

How do we include attributes for table columns in HTML?

Arjun Thakur
Updated on 30-May-2020 22:14:08

335 Views

Use the tag to include attributes for table columns. The HTML tag allows authors to group together attribute specifications for table columns. It does not group columns together structurally -- that is the role of the element.The following are the attributes −AttributeValueDescriptionAlignrightleftcenterjustifycharDefines horizontal alignment, not supported in Html5.CharcharacterDefines a character to use to align text on (use with align = "char"), not supported in Html5.CharoffpixelSpecifies an alignment offset (either in pixels or percentage value) against the first character as specified with the char attribute, not supported in Html5SpannumberDefines the number of columns the should span, not ... Read More

Execute a script when the user opens or closes the
element in HTML?

Abhinaya
Updated on 03-Mar-2020 06:51:55

155 Views

When a user opens or closes the element, the ontoggle event fires. You can try to run the following code to implement ontoggle event attribute −Example           Details       You need to join office from Feb23                More Information          Timings: 9 to 5:30          Office location: Hyderabad                            function myFunction() {             alert("Timings, office location, etc");          }          

How to specify citation in HTML?

usharani
Updated on 03-Mar-2020 06:48:41

202 Views

Use the tag in HTML to specify citation. Cite can be defined as the title of a work. You can try to run the following code to implement tag for adding citation −Example           HTML cite Tag               The learning content can be referred from Data Structures        & Algorithms in Java    

Execute a script when the browser is unable to fetch the media data for whatever reason in HTML?

Nancy Den
Updated on 24-Jun-2020 08:48:14

482 Views

Use the onstalled attribute in HTML to execute a script when the browser is unable to fetch the media date.The onstalled attribute can be used for the following elements − The following is the syntax for −The following is the syntax for −ExampleYou can try to run the following code to implement onstalled attribute −                                        Your browser does not support the video element.                      function display()          {             alert ("Sorry! Video isn't available right now!");          }          

How to insert a single line break in HTML?

George John
Updated on 03-Mar-2020 06:46:12

677 Views

Use the tag to insert a single line break in HTML. You can try to run the following code to insert a line break using the tag −Example           HTML br Tag               This is before the line break       and this after the line break.    

Execute a script when a element is shown as a context menu in HTML?

Govinda Sai
Updated on 30-May-2020 22:16:07

134 Views

When a element is shown as a context menu in HTML, the onshow event fires.ExampleYou can try to run the following code to execute a script when a element is displayed as a context menu −           HTML menu                        Right click inside here....                                                                                          function display() {             alert("The context menu will be visible now.");          }          

Advertisements