Enriching Web Pages: Adding Images
In this lesson, we will learn how to add images to our webpage. Let's begin!
We'll cover the following...
The above is especially true for web pages.
HTML provides the <img>
tag to display images in your pages. The src
attribute of <img>
describes the URL, relative to the current page ,where the picture can be loaded from.
For example, if you have two image files named picture1.png and picture2.jpg stored in the content\images folder, and your document is in the root web folder, you can use the following markup to display them:
<img src="content/images/picture1.png" />
...