
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

221 Views
The HTML Screen availHeight property returns the available height of the user’s screen that means it excludes interface features of the browser.SyntaxFollowing is the syntax −screen.availHeightExampleLet us see an example of HTML Screen availHeight Property:Live Demo body { color: #000; height: 100vh; background-color: #FBAB7E; background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%); text-align: center; } .btn { background: #db133a; border: none; height: 2rem; border-radius: 2px; width: 40%; ... Read More

688 Views
The HTML Links are hyperlinks that means when you click on a link, it jump son another document.SyntaxFollowing is the syntax −Link ContentHere URL specifies the destination address and it can be either local or external address. target attribute defines where to open the linked document and it can take the following values:ValueExplanation_blankIt opens the linked document in a new tab or window._parentIt opens the linked document in the parent frame._selfIt opens the linked document in the same window._topIt opens the linked document in the full body of the window.ExampleLet us see an example of HTML Links −Live Demo ... Read More

970 Views
The HTML Text Formatting refers to the HTML elements that are designed specially for formatting content in an HTML document.SyntaxFollowing is the syntax −contentFollowing are the text formatting tags in HTML:Sr.No.Tag & Explanation1It specifies bold text in an HTML document.2It specifies emphasized text in an HTML document3It specifies italic text in an HTML document.4It specifies smaller text in an HTML document.5It specifies important text in an HTML document.6It specifies subscripted text in an HTML document.7It specifies superscripted text in an HTML document8It specifies inserted text in an HTML document.9It specifies deleted text in an HTML document.10It specifies highlighted text in ... Read More

366 Views
The HTML reserved attribute define that the list order in ol HTML element should be descending in an HTML document.SyntaxFollowing is the syntax −Let us see an example of HTML reserved Attribute −ExampleLive Demo body { color: #000; height: 100vh; background-color: #8BC6EC; background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%); } HTML reversed Demo List of subjects: Physics Chemistry Maths Biology Economics Output

420 Views
The HTML option value attribute define the value of the option HTML element which is to be sent on a server when the form is submitted in an HTML document.SyntaxFollowing is the syntax −Let us see an example of HTML option value Attribute −ExampleLive Demo body { color: #000; height: 100vh; background-color: #8BC6EC; background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%); text-align: center; } .btn { background: #db133a; border: none; height: 2rem; border-radius: 2px; width: 40%; display: block; color: #fff; outline: none; cursor: pointer; margin: 1rem auto; } HTML optimum Attribute Demo Select your favourite subject: Physics Chemistry Biology Output

155 Views
The HTML DOM Textarea select() Method selects the content of a text area in an HTML document.SyntaxFollowing is the syntax −object.select()Let us see an example of HTML DOM Textarea select() Method −ExampleLive Demo body { color: #000; height: 100vh; } .btn { background: #db133a; border: none; height: 2rem; border-radius: 2px; width: 40%; display: block; color: #fff; outline: none; cursor: pointer; } DOM Textarea select() Method Demo Hi! I'm a text area element with some dummy text. Select textarea content function set() { document.querySelector("textarea").select(); } OutputClick on “Select textarea content” button to select the content of the textarea element.

196 Views
The HTML DOM Textarea maxLength property returns and modify the value of maxLength attribute of a text area element in an HTML document.SyntaxFollowing is the syntax −1. Returning maxLengthobject.maxLength2. Modifying maxLengthobject.maxLength = “number”Let us see an example of HTML DOM Textarea maxLength Property:ExampleLive Demo body { color: #000; height: 100vh; } .btn { background: #db133a; border: none; height: 2rem; border-radius: 2px; width: 40%; display: block; color: #fff; ... Read More

136 Views
The HTML DOM Textarea required property returns and modify the value of the required attribute of a text area in an HTML document.SyntaxFollowing is the syntax −1. Returning requiredobject.required2. Modifying requiredobject.required = true | falseLet us see an example of HTML DOM Textarea required Property:ExampleLive Demo DOM Textarea required Property body { text-align: center; } .btn { display: block; margin: 1rem auto; background-color: #db133a; color: #fff; border: 1px solid #db133a; padding: 0.5rem; ... Read More

209 Views
The HTML DOM Textarea form property returns the cite of the form which enclose the text area.SyntaxFollowing is the syntax −object.formLet us see an example of HTML DOM Textarea form Property:ExampleLive Demo body { text-align: center; background-color: #363946; color: #fff; } form { margin: 2.5rem auto; } button { background-color: #db133a; border: none; cursor: pointer; padding: 8px 16px; color: #fff; border-radius: 5px; ... Read More

179 Views
The HTML DOM Textarea autofocus property returns and modify whether the text area should automatically get focused or not when the page loads.SyntaxFollowing is the syntax −1. Returning autofocusobject.autofocus2. Modifying autofocusobject.autofocus = true | falseLet us see an example of HTML DOM Textarea autofocus Property:Example body { color: #000; height: 100vh; } .btn { background: #db133a; border: none; height: 2rem; border-radius: 2px; width: 40%; display: block; color: #fff; ... Read More