You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LAYOUT_STYLE_GUIDE.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -454,6 +454,32 @@ See the [lesson template](./templates/lesson-template.md) for a more easily copy
454
454
Or, check out the [project template](./templates/project-template.md) for a more easily copyable project file.
455
455
~~~
456
456
457
+
Typically you want to ensure the link text describes the purpose of the link or where the link will redirect a user, and can often be the title of a blog article or video. You should also do your best to avoid including "this" and "here" in the link text to avoid our linter from flagging it as an error, even if the link text is descriptive. Often times "this" or "here" aren't necessary as part of the link text, and may cause some confusion despite a descriptive text ("Where's here??").
458
+
459
+
```markdown
460
+
// Sufficient, but could be tweaked further
461
+
Check out [this video on flex-grow from CoolYoutuber](...url)
462
+
Go look at our [installations guide here](...url)
463
+
464
+
// After a slight change
465
+
Check out this [video on flex-grow from CoolYoutuber](...url)
466
+
Go look at our [installations guide](...url)
467
+
```
468
+
469
+
Additionally, if there are multiple links in a lesson that redirect to the same `href`, the link text for each link must be the same. For example:
470
+
471
+
```markdown
472
+
// Not great :(
473
+
Go to [Google](www.google.com)
474
+
Try [searching on Google](www.google.com)
475
+
First go to the [Google homepage](www.google.com)
476
+
477
+
// Better! :)
478
+
Go to [Google](www.google.com)
479
+
Try searching on [Google](www.google.com)
480
+
First go to the [Google](www.google.com) homepage
481
+
```
482
+
457
483
### Don't scatter links throughout lessons
458
484
459
485
Links to required reading should not be scattered throughout a lesson, and should instead be placed in either the `### Assignment` or `### Additional resources` section. Links that refer a user to a previous lesson as a refresher, or a link to a Wikipedia page that offers a definition/explanation of a term are fine to place outside of these two sections.
Copy file name to clipboardExpand all lines: advanced_html_css/accessibility/semantic_html.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,10 @@ Headings are the `<h1>` through `<h6>` elements, and like the name implies, thes
76
76
-`<nav>`
77
77
-`<section>`
78
78
79
+
As an example, consider the following image which shows how this lesson in particular uses semantic HTML for the different areas in the page. If you want to examine the page in more detail, feel free to use the developer tools to do so.
80
+
81
+

82
+
79
83
By properly using landmarks and headings, you provide users of assistive technologies a more operable and understandable page: not only can screen reader users navigate a page via landmarks and headings by using navigation keyboard commands (or opening a menu in their screen reader), but these elements also have their roles announced to provide additional context.
80
84
81
85
If you were to use only `<div>` elements to act as these landmarks and headings, maybe adding in some CSS to visually style them, then a screen reader user would have to go through the entire page just to get to a specific section, and they may not be able to actually tell what is a heading or a landmark on the page.
@@ -89,17 +93,17 @@ If you were to use only `<div>` elements to act as these landmarks and headings,
89
93
90
94
### Knowledge check
91
95
92
-
This section contains questions for you to check your understanding of this lesson. If you’re having trouble answering the questions below on your own, review the material above to find the answer.
96
+
The following questions are an opportunity to reflect on key topics in this lesson. If you can't answer a question, click on it to review the material, but keep in mind you are not expected to memorize or master this knowledge.
93
97
94
98
-[Why is semantic HTML important for accessibility?](#the-importance-of-semantics)
95
99
-[What are the seven HTML elements that define landmarks on a page?](#headings-and-landmarks)
96
100
97
101
### Additional resources
98
102
99
-
This section contains helpful links to other content. It isn’t required, so consider it supplemental.
103
+
This section contains helpful links to related content. It isn't required, so consider it supplemental.
100
104
101
105
-[NVAccess](https://www.nvaccess.org/download/) provides a download of the NVDA screen reader, one of the more popular (and free!) screen readers available, though it's only available for the Windows OS. If you're using a macOS device, you should have the VoiceOver screen reader available to you by default. While the lessons in this section will provide you with what a screen reader will generally announce, it can be invaluable to start using a screen reader yourself to test out your projects and see how they might be perceived.
102
106
-[Screen Reader Basics: VoiceOver](https://www.youtube.com/watch?v=5R-6WvAihms&list=PLNYkxOF6rcICWx0C9LVWWVqvHlYJyqw7g&index=8) and [Screen Reader Basics: NVDA](https://www.youtube.com/watch?v=Jao3s_CwdRU&list=PLNYkxOF6rcICWx0C9LVWWVqvHlYJyqw7g&index=9) go over some basics for getting started with both brands of screen readers. Both videos are worth watching regardless of which screen reader you choose/is available to you, as they contain some universal information as well.
103
107
-[Screen reader basics: Orca](https://www.youtube.com/watch?v=UI76P-KPZec) is a good video to get you started using Orca, the Linux GUI screen reader.
104
108
-[Screen reader basics: ChromeVox](https://www.youtube.com/watch?v=fpbIsN31hLM) is a starting place for learning to use ChromeVox, the screen reader on ChromeBooks.
105
-
-[ARIA Landmarks Example](https://www.w3.org/WAI/ARIA/apg/patterns/landmarks/examples/HTML5.html) lists the native HTML elements that define landmark regions as well as what their role is. If you check this resource out, be sure to enable the button toggles at the top of the page to see how the page is sectioned by landmarks and how it uses headings.
109
+
-[ARIA Landmarks Example](https://www.w3.org/WAI/ARIA/apg/patterns/landmarks/examples/HTML5.html) lists the native HTML elements that define landmark regions as well as what their role is. If you check this resource out, be sure to enable the button toggles at the top of the page to see how the page is sectioned by landmarks and how it uses headings.
Copy file name to clipboardExpand all lines: advanced_html_css/animation/transforms.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -250,7 +250,7 @@ Another benefit of `transform` is that it can be hardware-accelerated via a devi
250
250
1. To learn about how `rotate3d` works, check out this great [demonstration on MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotate3d()) and this [Quackit article](https://www.quackit.com/css/functions/css_rotate3d_function.cfm).
251
251
1. For more details on how `perspective` works in regards to 3D transforms, check out this [CSS Tricks article](https://css-tricks.com/how-css-perspective-works/).
252
252
1. For a great demonstration on `translate3d` checkout the [MDN cube again](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translate3d())!
253
-
1.Skim [this article](https://www.quackit.com/css/functions/css_matrix_function.cfm) to get the gist of `matrix`.
253
+
1.Go through [The World of CSS Transforms](https://www.joshwcomeau.com/css/transforms/) by Josh Comeau.
254
254
</div>
255
255
256
256
### Knowledge check
@@ -266,6 +266,6 @@ The following questions are an opportunity to reflect on key topics in this less
266
266
267
267
This section contains helpful links to related content. It isn't required, so consider it supplemental.
268
268
269
-
-Here's a good resource that summarizes [most common transform functions with some additional insight](https://www.joshwcomeau.com/css/transforms/) to how you may use them.
269
+
-Learn more about `matrix` by checking Quackit's article on the [matrix function](https://www.quackit.com/css/functions/css_matrix_function.cfm).
270
270
- For a full reference, there's always [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function).
271
271
- For more on the 3D transform functions, [W3Schools](https://www.w3schools.com/css/css3_3dtransforms.asp) has a good article demonstrating how they work.
You have probably noticed that the common keyboard shortcut: <kbd>Ctrl</kbd> + <kbd>V</kbd> to paste something doesn't work in the terminal. In order to paste your text input into your terminal you can use: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>V</kbd> keyboard shortcut combination, instead. It is also very handy to know that the: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>C</kbd> keyboard combination will copy any highlighted text from your terminal, which can then be pasted later.
375
+
</div>
376
+
372
377
#### Step 2: Install Google Chrome
373
378
374
379
- Enter the following command in your terminal to install **Google Chrome**`.deb` package
0 commit comments