Images
Basic syntax
<img src="https://www.theodinproject.com/mstile-310x310.png"> |
![]() |
---|
For CSS, go here.
Use ../
to go to parent directory. Ex:
<img src="../images/dog.jpg">
Alt attribute
The alt attribute is used to describe an image. It will be used in place of the image if it cannot be loaded. It is also used with screen readers to describe what the image is to visually impaired users.
<img src="https://www.theodinproject.com/mstile-310x310.png" alt="The Odin Project Logo">