This Web Design 1 lesson shows how to define a CSS class in an external stylesheet, apply it to HTML elements with the class attribute, and use text-align to centre content. It is aimed at beginners learning basic CSS in Visual Studio Code.
What you’ll learn
✓Apply a CSS class selector to several HTML elements at once
✓Connect an HTML document to an external stylesheet
✓Centre content with text-align and check the result in a browser