diff --git a/curriculum/challenges/english/blocks/lecture-what-is-css/672acbf7490c054d213a8c1f.md b/curriculum/challenges/english/blocks/lecture-what-is-css/672acbf7490c054d213a8c1f.md index fbf57b18f6c..3f4546ff396 100644 --- a/curriculum/challenges/english/blocks/lecture-what-is-css/672acbf7490c054d213a8c1f.md +++ b/curriculum/challenges/english/blocks/lecture-what-is-css/672acbf7490c054d213a8c1f.md @@ -5,7 +5,7 @@ challengeType: 19 dashedName: what-are-inline-internal-and-external-css --- -# --description-- +# --interactive-- CSS can be applied to a webpage in three main ways: inline, internal, or external. @@ -17,11 +17,15 @@ Inline CSS is written directly within an HTML element using the `style` attribut Here's an example using inline CSS: +:::interactive_editor + ```html -
This is an inline-styled paragraph.
+This is an inline-styled paragraph.
``` -In this example, we are using the `style` attribute to set the paragraph text to `red`. +::: + +In this example, we are using the `style` attribute to set the paragraph text to `green`. Inline CSS is generally used for quick, one-off styles or to override other styles for a specific element. @@ -33,6 +37,8 @@ Internal CSS is written within the `style` tags inside the `head` section of an Here's an example of internal CSS: +:::interactive_editor + ```html