When writing in HTML, the

Element with a style attribute example code

This paragraph contains orange text!

Example result

This paragraph contains orange text!

  • Style tag with CSS.
  • Element with a style attribute example code.
  • Example result.
  • Attributes.
  • Compatibility.
  • Related information.

With HTML5, you no longer need to specify the type=“text/css” attribute in the tag.

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the