 
 Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP 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
HTML Articles - Page 167 of 221
 
 
			
			206 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"; }
 
 
			
			184 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!"; }
 
 
			
			361 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"; }
 
 
			
			136 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"; }
 
 
			
			595 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
 
 
			
			140 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"; }
 
 
			
			149 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"; }


