Complete the code to apply a red color using inline CSS.
<p style="color: [1];">This text is red.</p>
The inline style color: red; directly sets the text color to red, which has the highest precedence over external styles.
Complete the external CSS rule to make all paragraphs blue.
p { color: [1]; }The CSS rule p { color: blue; } sets all paragraph text to blue unless overridden by inline styles.
Fix the error in the inline style to make the text green.
<p style="color: [1]">This text should be green.</p>
The correct CSS color name is green. Misspelling it as gren causes the style to fail.
Complete the code to create an external CSS rule that sets paragraph text to blue, but inline style overrides it to red.
<style>
p { color: [1]; }
</style>
<p style="color: red;">This text is red.</p>The external CSS rule must open with { and set color: blue;. The inline style color: red; overrides this.
Complete the code to complete the HTML and CSS so the paragraph text is green due to inline style overriding external blue.
<style>
p { color: [1]; }
</style>
<p style="color: green;">This text is green.</p>The external CSS sets paragraph color to blue inside curly braces. The inline style color: green; overrides it, so the text appears green.