There are three ways in which we can add CSS to an HTML page.
Inline styles are applied directly to the tag as another attribute. Below is an example.
<a href="https://www.ebay.com" style="text-decoration:none" target="_blank">Ebay</a>
This style removes the underline from the link to eBay. It is important to note that style attribute only applies to this particular tag and no other tags on this page. We will return to this point later.
Remember An attribute is just a property of the tag, which provide more information about a tag.
What do we need to consider when we use inline styles? If we use inline styles and want that style on another page, we will need to duplicate the style on that page. Not bad unless we have many pages with multiple tags that need to be changed.
See the Pen Inline Style by Michael Cassens (@retrog4m3r) on CodePen.