Unlike HTML 4.01, HTML 5 does not support the tag. The makes the text font size one size smaller down to the browser's minimum font size. For example, the use of the tag in a text which is of large font size makes the font size to medium. In HTML5, this element is repurposed to represent side-comments and small print. It also supports the global attributes and event attributes in HTMLOn the contrary, the tag would make the text appear one size larger than the actual font size of the text. Though this tag is not ... Read More
Use the tag to define a dialog box in HTML. The following are the attributes −AttributeValueDescriptionopenopenopens a dialog box and user can interact with itExampleYou can try to run the following code to learn how to work with tag − HTML dialog Tag Tutorialspoint We provide tutorials, quizzes, learning videos, etc. Tutorials are free for all
Use the onmousedown attribute to in HTML to execute a script when a mouse button is pressed down on an element.ExampleYou can try to run the following code to implement onmousedown attribute − This is demo heading. Click above and then release. function mouseDown() { document.getElementById("myid").style.color = "yellow"; } function mouseUp() { document.getElementById("myid").style.color = "blue"; }
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
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
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
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"); }
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....
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!"; }
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!"); }