HTML Style

Updated:01/17/2024 by Computer Hope

Features of HTML ,HTML Living Standard allow for the style

The <style> tag is used to define style or design (CSS) for a html web page .

HTML Living Standard allow for the <style> tag to be used outside of the <head> tag. It can reside within the <body> element (or its child elements) as long as the scoped attribute is used. If the scoped attribute is not used, each <style> tag must be located between the <head> tags (or a <noscript> element that is a child of a <head> element).

Below is an example of a basic web page written in HTML with a description of each section and its function.
   <!-- 
Example contain a Style tag and property in html.
It is  just create a simple web page in web browser
Note : open note paid and Save this code on notepad with extension of .html 
then right click and select option of Open with in Window user ,run with any browser and display output .
   -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
 <html>
  <head>
  <style>
    h2 {color:yello;}
    p {color:green;}
  </style>
  <style>
    h2 {color:green;}
    p {color:pink;}
  </style>
  </head>
  <body>
  
  <h2>This is a heading</h2>
  <p>This is a paragraph.</p>
  
  </body>
  </html>
  

Features of HTML Style

  • HTML Stylemodification includes changing font size, font family, font color etc.
  • It is Using attribute we can change the color of the background page or web page.

Latest Html Article