Found 2416 Articles for HTML

How do we create the title of the text track in HTML?

Anvi Jain
Updated on 03-Mar-2020 09:59:51

101 Views

Use the label attribute in HTML to create the title of the text track in HTML.ExampleYou can try to run the following code to implement the label attribute −                                                            Your browser does not support the video element.          

Set an image as a server-side image map in HTML?

George John
Updated on 03-Mar-2020 09:58:38

609 Views

Use the ismap attribute in HTML to set the image as a server-side image map in HTML.ExampleYou can try to run the following code to implement the ismap attribute −                                 On clicking the coordinates is sent to the server as a URL query string.    

How to specify the kind of text track in HTML?

Srinivas Gorla
Updated on 03-Mar-2020 09:59:14

80 Views

Use the kind attribute in HTML to specify the kind of text track in HTML. For example, you can set the kind as subtitles for subtitle files.ExampleYou can try to run the following code to implement the kind attribute −                                                            Your browser does not support the video element.          

Execute a script when the content of the element is being copied in HTML?

Yaswanth Varma
Updated on 05-Sep-2022 13:16:47

93 Views

When a user copies the content of an element, the oncopy event takes place.When a user copies an element, such as an image made using the element, the oncopy event also takes place.The elements with type="text" are the ones that often use the oncopy event. Following are the examples… Example In the following example we are running a javascript when copying text of an element. DOCTYPE html> function myFunction() { ... Read More

How to set the range that is considered to be of high value in HTML?

Ankith Reddy
Updated on 03-Mar-2020 09:56:18

68 Views

Use the high attribute in HTML to set the range that is considered to be of high value in HTML.ExampleYou can try to run the following code to implement the high attribute −                    Water Level:                    

How to specify a unique id for an element in HTML?

Yaswanth Varma
Updated on 05-Sep-2022 13:40:16

1K+ Views

For each HTML element, the id attribute specifies a special id. The id attribute's value must be distinct across the HTML content. A specific style declaration in a style sheet is referenced using the id attribute. JavaScript also uses it to access and modify the element with the given id. Following are the examples… Example In the following example we are using pointing to id name ”tutorial”. This will get styled according to the #tutorial. DOCTYPE html> #tutorial { ... Read More

How to specify that an element is not yet relevant in HTML?

Yaswanth Varma
Updated on 05-Sep-2022 13:14:18

124 Views

A boolean attribute makes up the hidden attribute. It indicates that an element is either not important yet or is no longer relevant when it is present. Elements that have the hidden attribute specified shouldn't be displayed by browsers.Another application of the hidden attribute is to prevent a user from viewing an element until a different requirement has been satisfied. Syntax ……… Following are the examples… Example We are using the hidden attribute to hide the element of the html script that is not relevant. DOCTYPE html> Heading This is ... Read More

Execute a script when the element is being double-clicked in HTML?

Yaswanth Varma
Updated on 05-Sep-2022 13:12:14

256 Views

The dblclick event is triggered when a pointing device button, such as the mouse's main button, is double-clicked, or when it is quickly clicked twice on the same element in a brief period of time. Following are the examples… Example: Using ondblclick attribute in HTML In the following example we are using ondblclick attribute for creating the double click event using HTML. DOCTYPE html> HELLO EVERYONE :):) Double Click the text "HELLO EVERYONE" to see the effect. ... Read More

Execute a script when the content of the element is being cut in HTML?

Yaswanth Varma
Updated on 05-Sep-2022 13:41:48

148 Views

Oncut attribute triggers when the user cuts the content of an element. Although all HTML elements supported the oncut attribute, cutting content was not allowed unless the element's contenteditable attribute was set to "true." Following are the examples… Example: Cutting some text in using In the following example we are excuting a javascript for cutting some text in an element using the oncut attribute. DOCTYPE html> function myworld() { ... Read More

How to add one or more header cells a cell is related to in HTML?

Yaswanth Varma
Updated on 05-Sep-2022 13:42:38

252 Views

The headers attribute in HTML text along with the td and th tags allows us to add one or more header cells. It holds the value header id, which specifies a list of ids for one or more header cells that the table header cell is associated to, separated by spaces. Syntax Content.. Following are the examples… Example In the following example we are using headers to add required headercells in our table. DOCTYPE html> table { ... Read More

Advertisements