Complete the code to add an inline style that makes the text red.
<p style=[1]>This text is red.</p>The inline style uses the style attribute with CSS properties inside quotes. To make text red, use color: red;.
Complete the code to add an internal CSS style that makes all <h1> headings blue.
<style>
h1 { [1]: blue; }
</style>background-color instead of color.To change the text color of headings, use the CSS property color. Here, it sets all <h1> text to blue.
Fix the error in the external CSS link tag to correctly link the stylesheet.
<link [1]="styles.css">
src instead of href.rel attribute.The <link> tag uses the href attribute to specify the path to the CSS file.
Fill both blanks to create an internal CSS style that centers text and makes it bold.
<style> [1] { text-align: [2]; font-weight: bold; } </style>
div instead of p.left instead of center for alignment.The CSS rule targets all <p> elements and sets their text alignment to center and font weight to bold.
Fill all three blanks to create an external CSS link with correct attributes and path.
<link [1]="stylesheet" [2]=[3]>
rel and href attributes.The <link> tag needs rel="stylesheet" to specify it's a CSS file, href="styles.css" for the file path, and optionally type="text/css" but it's not required.