Found 10483 Articles for Web Development

Get the HTTP header for the information of the content attribute in HTML

seetha
Updated on 03-Mar-2020 12:35:54

300 Views

Use the http-equiv attribute to get the HTTP header for the information of the content attribute in HTML.ExampleYou can try to run the following code to implement http-equiv attribute −           HTML http-equiv attribute                                 Document content goes here    

Set the language of the linked document in HTML

Rishi Rathor
Updated on 03-Mar-2020 12:35:15

128 Views

Use the hreflang attribute to set the language of the linked document in HTML.ExampleYou can try to run the following code to implement the hreflang attribute −           HTML hreflang attribute               Database Tutorial:       DBMS    

Execute a script each time the playback rate changes in HTML?

vanithasree
Updated on 24-Jun-2020 12:15:10

134 Views

Use the onratechange attribute to execute a script each time the playback rate changes in HTML in HTML.ExampleYou can try to run the following code to implement onratechange attribute − Live Demo                                        Your browser does not support the video element.             Change the speed of the video                      function display() {             document.getElementById("test").innerHTML = "Speed: " + document.getElementById("myid").playbackRate;          }          function update(ob) {             document.getElementById("myid").playbackRate = ob.value;          }           Output

How to specify the URL of the page the link goes to in HTML?

Abhinanda Shri
Updated on 03-Mar-2020 12:34:30

569 Views

Use the href attribute to specify the URL of the page the link goes to in HTML.ExampleYou can try to run the following code to implement href attribute −           HTML href attribute                        Tutorials Point Library of Tutorials          

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

Abhinaya
Updated on 03-Mar-2020 12:32:25

2K+ Views

Use the onclick attribute to execute a script when the element is clicked in HTML.ExampleYou can try to run the following code to implement onclick attribute −           Click                      function display() {             document.getElementById("test").innerHTML = "You clicked the button!";          }          

Execute a script when a context menu is triggered in HTML5?

Nancy Den
Updated on 03-Mar-2020 12:33:09

157 Views

Use the contextmenu attribute in HTML5 to execute a script when a context menu is fied. A context menu generates when a user right-clicks. ExampleYou can try to run the following code to implement contextmenu attribute −           HTML menuitem Tag                        Right click inside here....                                                                              

Execute a script when the browser is in the process of getting the media data in HTML?

radhakrishna
Updated on 03-Mar-2020 12:33:46

107 Views

Use the onprogress attribute to execute a script when the browser is in the process of getting the media data in HTML.ExampleYou can try to run the following code to implement onprogress attribute −                                        Your browser does not support HTML5 video.                      function display() {             alert("Started");          }          

Execute a script after the document is printed in HTML?

mkotla
Updated on 03-Mar-2020 12:31:48

268 Views

Use the HTML onafterprint attribute to execute a script after the document is printed or it is printing.ExampleYou can try to run the following code to implement onafterprint attribute −                    function display() {             alert("Success!");          }          

How to specify an image as a client-side image-map in HTML?

Daniol Thomas
Updated on 03-Mar-2020 12:26:12

585 Views

Use the usemap attribute to specify an image as a client-side image-map in HTML. You can try to run the following code to implement usemap attribute −Example           HTML map Tag                                              

Set the text wrap in a form in HTML

Nikitha N
Updated on 03-Mar-2020 12:27:38

796 Views

Use the wrap attribute to set the text wrap in HTML. You can try to run the following code to implement wrap attribute −Example                              This is demo text This is demo text This is demo text This is demo text                    

Advertisements