Skip to content

Commit

Permalink
fix typo in html-foundations/links-and-images.md
Browse files Browse the repository at this point in the history
height and width are attributes of img element (not tags on img element)
  • Loading branch information
csm-18 committed Jan 17, 2025
1 parent 663579c commit 6d60420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions foundations/html_css/html-foundations/links-and-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ attributes in image tags helps the browser layout the page without causing the p

It is a good habit to always specify these attributes on every image, even when the image is the correct size or you are using CSS to modify it.

Here is our Odin Project logo example with height and width tags included:
Here is our Odin Project logo example with height and width attributes included:

<p class="codepen" data-height="300" data-default-tab="html,result" data-slug-hash="PogmYGp" data-user="TheOdinProjectExamples" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">

Expand All @@ -292,7 +292,7 @@ Here is our Odin Project logo example with height and width tags included:

<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>

Go ahead and update the `odin-links-and-images` project with width and height tags on the dog image.
Go ahead and update the `odin-links-and-images` project with width and height attributes on the dog image.

### Assignment

Expand Down

0 comments on commit 6d60420

Please sign in to comment.