Found 2202 Articles for HTML

HTML Screen availHeight Property

AmitDiwan
Updated on 16-Feb-2021 04:59:22

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

HTML Links

AmitDiwan
Updated on 17-Feb-2021 05:17:17

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

HTML Text Formatting

AmitDiwan
Updated on 17-Feb-2021 05:23:29

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

HTML reserved Attribute

AmitDiwan
Updated on 17-Feb-2021 05:37:19

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

HTML option value Attribute

AmitDiwan
Updated on 17-Feb-2021 05:46:32

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

HTML DOM Textarea select() Method

AmitDiwan
Updated on 16-Feb-2021 05:22:10

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.

HTML DOM Textarea maxLength Property

AmitDiwan
Updated on 16-Feb-2021 05:24:01

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

HTML DOM Textarea required Property

AmitDiwan
Updated on 16-Feb-2021 05:28:26

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

HTML DOM Textarea form Property

AmitDiwan
Updated on 16-Feb-2021 05:30:53

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

HTML DOM Textarea autofocus Property

AmitDiwan
Updated on 20-Sep-2019 11:29:46

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

Advertisements