style attribute

style=style_definitions

Explanation

Style attribute is used to fix the "Inline Style" for a particular element. Use this attribute to overrule the default style mentioned in an element.
<ele style="style_definitions">
Values added with this attribute are:
ValueDescription
StyleCSS declarations segmented by zero and semi colon.

Example Code:

Result :

HTML5

  • Text can be added with color and justified.
  • It should contain only semi colon seperated CSS declarations with a group of zero.
It is supported most of the elements in HTML5 and it exists in older versions of the HTML.

Limitations:

It is applicable to all browsers.

Ask Questions

Ask Question