Locked lesson.
About this lesson
Learn how to style individual HTML elements with the CSS style tag.
Exercise files
Download this lesson’s related exercise files.
Styling HTML With Inline CSS.docx59 KB Styling HTML With Inline CSS - Solution.docx
59 KB
Quick reference
Styling HTML With Inline CSS
We won't learn CSS in this course, but in this video we'll learn how to use inline CSS with our HTML tags.
When to use
Anytime you want to add special styling to an HTML tag using CSS, an inline CSS tag can be used.
Instructions
CSS can be used in any HTML tag by adding a style="" attribute to the tag.
Hints & tips
- Inline CSS is a quick and easy way to add some special styling to an HTML element.
- style="" is the attribute that you'll add to your tag.
- <p style="font-size: 32px;"> will create larger text in a paragraph tag.
- Inline CSS overrides internal CSS stylesheets and external CSS stylesheets.
Lesson notes are only available for subscribers.