Web Development Articles

Page 133 of 801

HTML option value Attribute

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 454 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 −Example    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

Read More

HTML reserved Attribute

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 430 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 −Example    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

Read More

HTML Screen availHeight Property

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 289 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:    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 Screen availWidth Property

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 161 Views

The HTML Screen availWidth property returns the available width of the user’s screen that means it excludes interface features of the browser.SyntaxFollowing is the syntax −screen.availWidthExampleLet us see an example of HTML Screen availWidth Property −    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 Screen height Property

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 227 Views

The HTML Screen height property returns the total height of the user’s screen.SyntaxFollowing is the syntax −screen.heightExampleLet us see an example of HTML Screen height Property -    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%;       display: block;       color: ...

Read More

HTML Screen colorDepth Property

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 200 Views

The HTML Screen colorDepth property returns the bit depth of the color palette for displaying images(in bits per pixel).SyntaxFollowing is the syntax −screen.colorDepthExampleLet us see an example of HTML Screen colorDepth Property −    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 Screen pixelDepth Property

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 144 Views

The HTML Screen pixelDepth property returns the color resolution of the visitor’s screen.SyntaxFollowing is the syntax −screen.pixelDepthExampleLet us see an example of HTML Screen pixelDepth Property −    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%;       display: block;       color: ...

Read More

HTML view Event Property

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 143 Views

The HTML view Event property returns a cite to the Window object where the event occured.SyntaxFollowing is the syntax −event.viewExampleLet us see an example of HTML view Event Property −    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%;       display: block;   ...

Read More

HTML Viewport meta tag for Responsive Web Design

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 4K+ Views

The HTML Viewport meta tag is used for creating responsive website. So that web page can adjust its width according to viewport.SyntaxFollowing is the syntax −< meta name=”viewport” content=”width=device-width, initial-scale=1.0” >Attributes of viewport meta tagAttributeExplanationwidthIt specifies the virtual viewport width of the device.heightIt specifies the virtual viewport height of the device.initial-scaleIt specifies the zoom level when the page is first visited.minimum-scaleIt specifies the minimum zoom level to which the user can zoom the page.maximum-scaleIt specifies the maximum zoom level to which the user can zoom the page.user-scalableIt specifies whether the user can zoom in or out.ExampleLet us see an example ...

Read More

HTML onblur Event Attribute

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 327 Views

The HTML onblur attribute is used when an HTML element loses focus in an HTML document.SyntaxFollowing is the syntax −ExampleLet us see an example of HTML onblur event Attribute −    body {       color: #000;       height: 100vh;       background-color: #FBAB7E;       background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);       text-align: center;       padding: 20px;    }    .btn {       background: #db133a;       border: none;       height: 2rem;       border-radius: 2px;       width: ...

Read More
Showing 1321–1330 of 8,008 articles
« Prev 1 131 132 133 134 135 801 Next »
Advertisements