HTML Tutorial | Structure attribute Introduction


In HTML, style attribute is used to give style (like text color, text fonts, background color etc.) to the content on web page.

  • HTML Style attributes are define by style="property:value;" syntax.
  • It can be used in any HTML element inside Opening tag.
Example:
   <p style="color:blue;">Text comes in blue color</p>

Two or more style attribute can be used in same HTML element and each style should be separated with (;) semi-colon.

Example:
   <p style="color:blue; font-family:courier;">Text comes in blue color with courier font</p>

Video-English
Best Use:360p or more (480p or 720p)



Video-Hindi
Best Use:360p or more (480p or 720p)