Home > Mobile >  Im trying to complete my HTML/CSS assessment. But Im not sure if my HMTL and CSS code is done correc
Im trying to complete my HTML/CSS assessment. But Im not sure if my HMTL and CSS code is done correc

Time:01-08

Im trying to complete my HTML/CSS asessment. But Im not sure if my HMTL and CSS code is done correctly. My pics won't show up. I don't know what to do. Looking for some guidance. Attached is my HTML code and my CSS code. [enter image description here](https://i.stack.imgur.com/bSBuD.png)

Ive refreshed the page a few times and reread the lectures but I do not what to do, and I'm extremely new to the craft of programming

CodePudding user response:

you need img tag in your html file

or add img in your css file

CodePudding user response:

This should do the trick, assuming you make sure to include an image in the same folder as the html file.

 <img src="yourPicture.jpg" alt="A very shot description of your picture">

Further explanation: To include images in HTML files, we use the <imag> tag. The image tag must have a valid src attribute, as it is telling the browser to where to look for the image.

The alt attribute is not mandatory but very useful for making accessible HTMLs. You can learn more here

  • Related