The Style Attribute

As we know from our 'HTML Basics and Tags Lesson' we have a core attribute 'style' and we described it there that it is used with CSS. So we will be discussing it below thus showing how it works.

Actually when you want to apply the HTML element styling using the attribute 'style' and not through the CSS Selectors, its done as in the below example code .

Get hands-on with 1200+ tech skills courses.