Inline Styling
This part of the class marks a milestone where your pages will start to actually look good and that's pretty rad if you ask me!
You do this by adding CSS (cascading style sheet) rules to your code. CSS is a language for describing how your HTML should be styled and displayed. This can be done generally in two ways, the inline method and using external style sheets which we will explore in the next section.
For the inline method you will be working with a new attribute; style
.
The style
attribute accepts all the CSS rules as values separated by semicolons.
<h1 style="font-weight: bold; color: #000000">This is a top level title</h1>
CSS rules can be applied in different combinations to customize the look and feel of almost any element.
The best thing to do as a beginner is Google what you want to do...really! So if you want to learn how to set a background color in css, you can Google
CSS background color
I guarantee you'll find the answer in the first few results on the first page ;).
info
You can also get more of a deep dive on CSS by going to https://www.w3schools.com/css/default.asp