Recall & Review
beginner Click to reveal answer
What is inline CSS?
Inline CSS is when you add style directly inside an HTML element using the
style attribute. It affects only that element.beginner Click to reveal answer
How do you add internal CSS to a webpage?
Internal CSS is added inside a
<style> tag within the <head> section of an HTML document. It styles the whole page.beginner Click to reveal answer
What is external CSS and why use it?
External CSS is a separate file with
.css extension linked to the HTML using a <link> tag. It helps keep styles organized and reusable across pages.intermediate Click to reveal answer
Which CSS method has the highest priority when styles conflict: inline, internal, or external?
Inline CSS has the highest priority, then internal CSS, and external CSS has the lowest priority.
beginner Click to reveal answer
Give a simple example of inline CSS to make a paragraph text red.
Example:
<p style="color: red;">This text is red.</p>Where do you place internal CSS in an HTML document?
✗ Incorrect
Internal CSS goes inside the section within a
