<!--If the image is in the same folder as the HTML file-->
<!--Always add the image type (png; jpg; etc)-->
<img src="your-image.png" alt="Description of the image" width="Width you want your image to be" height="Height you want your image to be">
<!--If the image is in a diffrent folder than the HTML file-->
<!--Always add the image type (png; jpg; etc)-->
<img src="../path to image folder/image folder/your-image.png" alt="Description of the image" width="Width you want your image to be" height="Height you want your image to be">
<!--How this works-->
<!-- src - Path to the image -->
<!-- alt - if the image doesn't load this is shown instead of it -->
<!-- width - Width of the image -->
<!-- height - Height of the image -->
<!--When the image is in the same folder as your html file-->
<img src="example.jpg">
<!--When the image is in a image folder-->
<img src="./image/example.jpg">
The <img> tag will help you add image in html coding... it contains attributes:
1) src - usage <img src="">, it states the source of the image..
2) alt - usage <img src="" alt=""> it is the alternative text if you image failed to load...
Thank you and HAPPY CODING.
Feel free to give a upvote.. ^^
<img src="[image link here]" alt="[alt text here]">
<!-- the src attribute defines an image link-->
<!-- the alt attribute shows text when the browser cannot show the image-->
<!-- When using semantics, the <img> should be surrounded by <figure> elements.-->
<figure>
<img src="link.jpg" alt="an image">
</figure>
<!--An image tag (img for short). The attributes src= and alt= are essential.
src= is short for source, which will be the link to the relative or absolute
image link, alt= is additional information for the users on screen readers etc.
Just so you know, you MUST have the src= attribute but the alt= attribute is optional.
Like the abbr tag, img also has the title= attribute. -->
<!--Also the height= and width= attributes to control the height and width separately.
Enough with the attributes, the img tag is a SELF-closing tag, meaning it doesn’t have
a closing tag, like so:-->
<img src=”hello-world.png” alt=”print(“Hello World!”)>
<!--Relative: The image is in the folder where your index.html file is located.
Write the file path down in the src= attribute. Example:-->
<img src=”images/hello-world.png>
<!--Absolute: The opposite of relative, this time, the image is a link to an
image somewhere on the internet. Write the file path down in the src= attribute.
Example: -->
<img src="https://d1y8sb8igg2f8e.cloudfront.net/images/shutterstock_1375463840.2e16d0ba.fill-1200x630.jpg">
<html>
// blah blah blah
<img src="insert image link here" width="how wide you want it to be" height="how tall you want it to be">
//replace the "how X you want it to be" with any number
</html>