HTML style attribute

HTML style attribute

In this tutorial, we will learn about style attribute in HTML with the help of examples.

style attribute

The style attribute is used to specify inline style for an element.

Note : The style attribute will automatically overide any style set globally i.e. inside <style> tag or in an external stylesheet.


<a style = "border:2px solid red;">......</a>

Attribute values

Value Description
style_definations One or more CSS properties and values seperated by semicolons

Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of Style Attribute in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML tabindex Attribute.

- Related Topics