
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2202 Articles for HTML

197 Views
When an element is scrolled, the onscroll attribute triggers. You can try to run the following code to implement onscroll attribute −Example #myid { width : 250px; height : 80px; border : 2px solid blue; overflow: scroll; } Scroll the box. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. function display() { document.getElementById("myid").style.color = "blue"; }

178 Views
The onpause attribute trigger when the media is paused. You can try to run the following code to implement the onpause attribute −Example Play Your browser does not support the video element. function myFunction() { document.getElementById("test").innerHTML = "Media paused!"; }

351 Views
The onmouseover attribute triggers when a mouse pointer moves over an element in HTML.ExampleYou can try to run the following code to implement onmouseover attribute − This is demo heading. Keep the mouse cursor on the heading to change the color. function display() { document.getElementById("myid").style.color = "red"; }

129 Views
The onwaiting attribute triggers when a video pause and buffers to reume again. You can try to run the following code to implement the onwaiting attribute −Example Play Your browser does not support the video element. function myFunction() { document.getElementById("test").innerHTML = "Media resumes again"; }

588 Views
Use the HTML tag is used for displaying the human-readable date and time. The following is the attribute −AttributeValueDescriptiondatetime datetimeit is machine readable date timeExampleYou can try to run the following code to display time − HTML time Tag The time is 18:16 pm

132 Views
The onvolumechange attribute trigger when the user change the volume of the video or audio accessed on the web page. This change can be volume up, volume down, mute, etc.ExampleYou can try to run the following code to implement onvolumechange attribute − Play Your browser does not support the video element. function myFunction() { document.getElementById("test").innerHTML = "Volume changed"; }

139 Views
The onwheel attribute triggers when the mouse wheel rolls up or down over an element. You can try to run the following code to implement onwheel attribute −Example This is demo heading. Click above and use mouse wheel to change the heading color. function mouseWheel() { document.getElementById("myid").style.color = "red"; }