Examine this code for example:
<!doctype html>
<html>
<body>
<h1>Our Proposed Company Logo Design
</h1>
<p>Following is our logo proposed design, we may make changes later:
</p>
<img src="myimages/mylogo.jpg" />
<p>And this is our business card template that I'm going to use:
</p>
<img src="myimages/mybusinesscard.jpg" />
<p>I stored the images mylogo.jpg and mybusinesscard.jpg in a folder called
myimages in the same place where I saved this HTML page.
</p>
</body>
</html>
The result will be:
In our previous example we could write the <img> tags in this better way:
<img src="myimages/mylogo.jpg" alt=”Thalji.net Logo” />
<img src="myimages/mybusinesscard.jpg" alt=”Thalji.net Business Card />
In our example, let’s make the logo and business card larger and give them and alternative text, the code becomes like follows:
<!doctype html>
<html>
<body>
<h1>Our Proposed Company Logo Design
</h1>
<p>Following is our logo proposed design, we may make changes later:
</p>
<img src="myimages/mylogo.jpg" alt=”Thalji.net Logo” width="200px" height="200px" />
<p>And this is our business card template that I'm going to use:
</p>
<img src="myimages/mybusinesscard.jpg" alt=”Thalji.net Business Card" width="350px" height="200px" />
<p>I stored the images mylogo.jpg and mybusinesscard.jpg in a folder called
myimages in the same place where I saved this HTML page.
</p>
</body>
</html>
The result is: