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
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
Use the oncanplaythrough attribute to execute a script when a file can be played all the way to the end without pausing for buffering in HTML.ExampleYou can try to run the following code to implement oncanplaythrough attribute − Your browser does not support the video element. function display() { alert("Can be played without pausing for buffering."); }
The onbeforeunload event attribute’ fires when the document is ready to be unloaded.ExampleYou can try to run the following code to implement the onbeforeunload attribute − Close this window or press F5. function display() { return "Wanna stay here or leave?"; }
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.
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 −
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
Use the step attribute to include the legal number intervals for an input field in HTML. The HTML input type step attribute sets the legal number intervals. Steps are number steps like 0, 5, 10, 15, 20, etc. The step attribute can be used together with the max and min attributes to create a range of legal values.ExampleYou can try to run the following code to implement step attribute − HTML input step attribute
Use the onblur attribute execute a script when the element loses focus in HTML. You can try to run the following code to implement onblur attribute −Example Type text below! Country: function display() { var str = document.getElementById("myid"); str.value = str.value.toUpperCase(); }
Use the shape attribute to set the shape of the area in HTML. You can try to run the following code to implement shape attribute −Example HTML shape attribute