Images part 2

HTML Fundamentals
HTML Basics
Images
58
2/4
               

Image Location



You need to put in the image location for the src attribute that is between the quotation marks. 

For example, if you have a photo named "tree.jpg" in the same folder as the HTML file, your code should look like this:
<html>
<head>
<title>first page</title>
</head>
<body>
<img src="tree.jpg" alt="" />
</body>
</html>
Try It Yourself

In case the image cannot be displayed, the alt attribute specifies an alternate text that describes the image in words. The alt attribute is required.

Comments

Popular posts from this blog

article, section & aside part 1

Image part 3