Set an Image as a Server-Side Image Map in HTML

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

789 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.    

Set High-Value Range in HTML

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

131 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:                    

Execute a Script When the File is Unavailable in HTML

Arjun Thakur
Updated on 03-Mar-2020 09:51:09

226 Views

Use the onemptied attribute in HTML to execute a script when the file is unavailable in HTML or it is empty.ExampleYou can try to run the following code to implement the onemptied attribute −                              Your browser does not support the video element.                      function display()          {             alert ("Sorry! Empty playlist!");          }          

Execute Script When Element is Dragged in HTML

Prabhas
Updated on 03-Mar-2020 09:50:12

197 Views

Use the ondragover attribute in HTML to execute a script when the element is being dragged in HTML.ExampleYou can try to run the following code to implement the ondragover attribute −                    .drag {             float  : left;             width  : 100px;             height : 35px;             border : 2px dashed #876587;             margin : 15px;             padding: 10px;       ... Read More

Execute a Script at the Start of a Drag Operation in HTML

Chandu yadav
Updated on 03-Mar-2020 09:44:59

132 Views

Use the ondragstart attribute in HTML to execute a script at the start of a drag operation in HTML.ExampleYou can try to run the following code to implement the ondragstart attribute −                    drag {          float: left;          width: 100px;          height: 35px;          border: 2px dashed #876587;          margin: 15px;          padding: 10px;          }                       ... Read More

Execute a Script When Media Reaches the End in HTML

Giri Raju
Updated on 03-Mar-2020 09:43:24

145 Views

Use the onended attribute in HTML to execute a script when the media has reached the end in HTML . You can add messages like “Thank you for watching”, “Stay tuned!”, etc.ExampleYou can try to run the following code to implement the onended attribute −                              Your browser does not support the video element.                      function display() {             alert ("Thank you for watching! Stay tuned!");          }          

Execute a Script When Dragging Over a Valid Drop Target in HTML

Rishi Rathor
Updated on 03-Mar-2020 09:41:42

162 Views

When an element is being dragged and dropped in HTML, the ondragover attribute fires.ExampleYou can try to run the following code to implement the ondragover attribute −                    .drag {             float: left;             width: 100px;             height: 35px;             border: 2px dashed #876587;             margin: 15px;             padding: 10px;          }         ... Read More

Specify URL of Resource in HTML Object

Sreemaha
Updated on 03-Mar-2020 09:40:41

179 Views

Use the data attribute in HTML to specify the URL of the resource to be used by the object in HTML.ExampleYou can try to run the following code to implement the data attribute −           Demonstration                

Include Audio and Video Controls in HTML

Nancy Den
Updated on 03-Mar-2020 09:38:51

497 Views

Use the controls attribute in HTML to include audio/ video controls in HTML.ExampleYou can try to run the following code to implement the controls attribute −           HTML video Tag               Online Compiler                                This browser doesn't support video tag.          

Get Value of http-equiv or name Attribute in HTML

Abhinanda Shri
Updated on 03-Mar-2020 09:38:01

165 Views

Use the content attribute in HTML to get the value associated with http-equiv or name attribute.ExampleYou can try to run the following code to implement the content attribute −                         This is demo text.    

Advertisements