Using CSS
There are 3 different ways to add CSS to an HTML document:
• Inline style uses the style
attribute inside HTML elements
• Internal style uses a <style>
element in the <head>
section
• External style uses a <link>
element to link to an external CSS file[1]
The most common way is to use external styles, which we'll cover in a separate course. In this lesson, we'll cover inline styles as they're easier to demonstrate and can give you a good taste of CSS.