fix: updated the note sections for responsive web design english (#35528)
This commit is contained in:
committed by
Oliver Eyton-Williams
parent
6d43682397
commit
bc72c86dc6
@ -12,7 +12,7 @@ An example of this would be:
|
||||
<code><img src="https://www.your-image-source.com/your-image.jpg"></code>
|
||||
Note that <code>img</code> elements are self-closing.
|
||||
All <code>img</code> elements <strong>must</strong> have an <code>alt</code> attribute. The text inside an <code>alt</code> attribute is used for screen readers to improve accessibility and is displayed if the image fails to load.
|
||||
Note: If the image is purely decorative, using an empty <code>alt</code> attribute is a best practice.
|
||||
<strong>Note:</strong> If the image is purely decorative, using an empty <code>alt</code> attribute is a best practice.
|
||||
Ideally the <code>alt</code> attribute should not contain special characters unless needed.
|
||||
Let's add an <code>alt</code> attribute to our <code>img</code> example above:
|
||||
<code><img src="https://www.your-image-source.com/your-image.jpg" alt="Author standing on a beach with two thumbs up."></code>
|
||||
|
@ -15,8 +15,7 @@ You can create a paragraph element like this:
|
||||
## Instructions
|
||||
<section id='instructions'>
|
||||
Create a <code>p</code> element below your <code>h2</code> element, and give it the text "Hello Paragraph".
|
||||
Note:
|
||||
As a convention, all HTML tags are written in lowercase, for example <code><p></p></code> and not <code><P></P></code>.
|
||||
<strong>Note:</strong> As a convention, all HTML tags are written in lowercase, for example <code><p></p></code> and not <code><P></P></code>.
|
||||
</section>
|
||||
|
||||
## Tests
|
||||
|
@ -10,7 +10,7 @@ videoUrl: 'https://scrimba.com/p/pVMPUv/c4Ep9Am'
|
||||
HTML5 introduces more descriptive HTML tags. These include <code>header</code>, <code>footer</code>, <code>nav</code>, <code>video</code>, <code>article</code>, <code>section</code> and others.
|
||||
These tags make your HTML easier to read, and also help with Search Engine Optimization (SEO) and accessibility.
|
||||
The <code>main</code> HTML5 tag helps search engines and other developers find the main content of your page.
|
||||
<strong>Note</strong><br>Many of the new HTML5 tags and their benefits are covered in the Applied Accessibility section.
|
||||
<strong>Note:</strong> Many of the new HTML5 tags and their benefits are covered in the Applied Accessibility section.
|
||||
</section>
|
||||
|
||||
## Instructions
|
||||
|
Reference in New Issue
Block a user