Step 6
The <style>
element
-
Suppose we write elaborate styling for a commonly used HTML element like the
<p>
element (which represents a paragraph). We may have several dozens<p>
elements. We would have to rewrite the same elaborate (lengthly) style attribute for each<p>
element. This way of writing style can quickly become unwieldy. -
A better way is to collect all the inline styles into what is called an internal Cascading Style Sheets or CSS using a
<style>
element. -
Add the following to the end of the
<head>
element (right before the closing tag</head>
):
<style>
body {
text-align: center;
color: #7FDBFF;
background-color: #001f3f;
}
</style>