Tag Archives: html reference

How to add an image in an HTML page

In order to insert images in HTML, you need to make use of the <img> tag.
Tags in HTML are the statements enclosed in <> and </> For instance <strong> peter</strong> makes the word peter appear bold on the web page. You can even have audio and video embedded to your web page using tags.

Well, let us dive right into the code and see how we can insert the image into our web page.

relative reference: <img src="images/pic.jpg"/> 
absolute reference: <img src="http://www.website.com/images/pic.jpg"/>

Continue reading