Use the onseeking attribute to indicate that seeking is active in a video in HTML.ExampleYou can try to run the following code to execute a script when the seeking attribute is set to true indicating that seeking is active in HTML − Your browser does not support the video element. function display() { alert("Seeking starts!"); }
The lang attribute in HTML allows you to set content for languages other than English. You can try to run the following code to implement lang attribute.ExampleHere, we have added content in French and Spanish as well. English This is demo text French Ceci est un texte de démonstration Spanish Este es un texto de demostración
Use the hidden attribute in HTML5 to create a hidden paragraph in HTML5 i.e. an element no longer relevant.ExampleYou can try to run the following code to implement hidden attribute in HTML5 − Heading This is a demo paragraph and visible. This is a demo paragraph and hidden.
Use the dropzone attribute to set whether the dragged data is copied, moved or linked.Copy − The drop will create a copy of the dragged element.Move − The dragged element will get moved to the new location.Link − It creates a link to the dragged data Try the following to work with dropzone attribute in JavaScript − None of the browsers supports this attribute now.
The cite attribute allows you to add URL and explain why the text was deleted or inserted.ExampleYou can try to run the following code to implement cite attribute − Define WordPress WordPress is open source software you can use to create a beautiful website, blog, or app.
Use the checked attribute to specify an element is to be pre-selected on page load. The attribute works with − .ExampleYou can try to run the following code to implement checked attribute in HTML − Live Demo Which sports do you like? Football Cricket Hockey
Use the tag in HTML to create table header. The HTML tag is used in adding a header to a table. The thead tag is used in conjunction with the tbody tag and the tfoot tag in determining each part of the table (header, footer, body).The HTML tag also supports the following additional attributes −AttributeValueDescriptionalignrightleftcenterjustifycharDeprecated − Visual alignment.charcharacterDeprecated − Specifies which character to align text on. Used when align = "char"charoffpixels or %Deprecated − Specifies an alignment offset (either in pixels or percentage value) against the first character as specified with the char attribute. Used when align = "char"valigntopmiddlebottombaselineDeprecated − Vertical ... Read More
Use the tag to create subscripted text. The HTML tag is used for defining subscript text like,x1+ x2ExampleYou can try to run the following code to display subscripted text in HTML − HTML sub Tag Value of x1 + x2 = 17
Use the tag to include information about the document. The HTML tag is used for indicating the head section of the HTML document. Tags included inside head tags are not displayed in the browser window.ExampleYou can try to run the following code to include information about the document in HTML − HTML head Tag This is demo text.
In this tutorial, we will be discussing a program to find sum of first n natural numbers.For this we will be provided with an integer n. Our task is to add up, find the sum of the first n natural numbers and print it out.Example Live Demo#include using namespace std; //returning sum of first n natural numbers int findSum(int n) { int sum = 0; for (int x=1; x
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP