Images.

The syntax for an image tag is <img>. This tag DOES NOT have a closing tag.

This how the code goes. 

<html>
<head>
</head>
<body>
<center><img src=”Heading.jpg” width=200 height=400 alt=”Heading”></center>
</body>
</html>

It’s Attributes:

  • <img src=” “>. This gives the file path for the image.
  • <img alt=” “>. Incase the image doesn’t work, this text pops up.
  • <img width = height = > indicates the width and height of the image.
Advertisements
Categories: Uncategorized | Tags: , , , , , , , , , | Leave a comment

Post navigation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: