Image tag


#1


Replace this line with your code.


#2

Post your code, please.


#3

If you are stuck on a certain exercise, please post the link to it, the error message, and the code you have tried, please.

Syntax for a basic image tag is as follows:

<img src="penguin.jpg" />

but width and height can be manipulated through the tag

<img src="penguin.jpg"  width="200px" height="200px" />

as well as the text that shows up when the image is hovered over

<img src="penguin.jpg"  width="200px" height="200px"  title="This is a penguin." />

and various other attributes.


#4

code:

<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
		<img src ="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Status_iucn_DD_icon.svg/2000px-Status_iucn_DD_icon.svg.png" />
		<img src ="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg" />
	</body>
</html>

error message: Oops, try again. Your tag needs an image url in place of the ...

this should work.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.