-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(learn-html): add exercise to styles lesson #873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -124,10 +124,10 @@ For example: | |||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Exercise | ||||||||||||||||||||||||||||||||||||||
| -------- | ||||||||||||||||||||||||||||||||||||||
| 1. change the `font-family` of `Paragraph 1` to `sans-serif` using the Inline Method. | ||||||||||||||||||||||||||||||||||||||
| 2. change the `font-family` of `Paragraph 2` to `monospace` using the CSS Stylesheets and CSS selectors. | ||||||||||||||||||||||||||||||||||||||
| 3. change the `font-family` of `Paragraph 3` to `serif` using JavaScript (programmatically). | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| This page does not have an exercise yet. You are welcome to contribute one by sending me a pull request: | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| [[https://github.com/ronreiter/interactive-tutorials]] | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Tutorial Code | ||||||||||||||||||||||||||||||||||||||
|
|
@@ -138,6 +138,15 @@ Tutorial Code | |||||||||||||||||||||||||||||||||||||
| <head> | ||||||||||||||||||||||||||||||||||||||
| </head> | ||||||||||||||||||||||||||||||||||||||
| <body> | ||||||||||||||||||||||||||||||||||||||
| <p> | ||||||||||||||||||||||||||||||||||||||
| Paragraph 1. | ||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||
| <p class="p2"> | ||||||||||||||||||||||||||||||||||||||
| Paragraph 2. | ||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||
| <p id="p3"> | ||||||||||||||||||||||||||||||||||||||
| Paragraph 3. | ||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+141
to
+149
|
||||||||||||||||||||||||||||||||||||||
| <p> | |
| Paragraph 1. | |
| </p> | |
| <p class="p2"> | |
| Paragraph 2. | |
| </p> | |
| <p id="p3"> | |
| Paragraph 3. | |
| </p> | |
| <p> | |
| Paragraph 1. | |
| </p> | |
| <p class="p2"> | |
| Paragraph 2. | |
| </p> | |
| <p id="p3"> | |
| Paragraph 3. | |
| </p> |
Copilot
AI
Apr 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most lessons keep the standard <title>Hello, World!</title> in the Expected Output template (and this file previously did as well). Consider keeping the <title> alongside the new <style> block for consistency across tutorials.
Copilot
AI
Apr 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable name seriftext doesn’t follow the camelCase style used elsewhere in this tutorial (e.g., sansSerifText above). Consider renaming it to something like serifText / serifTextEl for readability.
Copilot
AI
Apr 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with other tutorials’ Solution templates, consider keeping the standard <title>Hello, World!</title> in the <head> in addition to the new <style> block.
Copilot
AI
Apr 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above: seriftext would be clearer as camelCase (serifText / serifTextEl) to match naming used elsewhere in the tutorial.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exercise instructions should match the terminology used earlier in the page and be consistently capitalized. Consider capitalizing the sentence starts ("Change...") and referring to the methods using the section names (e.g., "Inline" / "Using a CSS tag" or "embedded stylesheet") instead of "CSS Stylesheets" to avoid ambiguity.