I am so stuck please help me


#1

Please help me...i am so stuck....the error: Oops, try again. Did you remember to set your link's text-decoration to none;?

<!DOCTYPE html>
<html>
	<head>
	    <link type="text/css" rel="stylesheet" href="stylesheet.css"/> 
		<title>Result</title>
	</head>
	<body>
	    <h1>HTML & CSS</h1>
	    <center><img src="http://bit.ly/NnVbxt"></img></center>
	    <p>HTML and CSS are perfect together</p>
	    <a href="link.com">codes</a></div>
	</body>
</html>

h1 {
font-family:Verdana,sans-serif;
color:#576D94;
text-align:center
}

p {
font-size: 18px;
color:#4A4943;
font-family:Garamond,serif;
text-align:center;
}

img {
height:100px;
width:300px;
border:1px solid #4682b4;
}

a {
text-decoration:none;
color:#cc0000;
}


#2

<center></center> is very outdated.

which browser are you using? This exercise currently doesn't work in chrome and opera, try IE or FF


#3

Hi devjumper93403,

Maybe it's because there's a ";" missing in h1.

Your code:

h1 {
  font-family:Verdana,sans-serif;
  color:#576D94;
  text-align:center
}

The corrected code:

h1 {
  font-family: Verdana,sans-serif;
  color: #576D94;
  text-align: center;
}

Some random comments, <center></center> is no longer supported as an html5 tag. And remember that <img /> is a self-closing tag, so you can omit </img>. So your code should look like:

        <h1>HTML & CSS</h1>
        <img src="http://bit.ly/NnVbxt" />
        <p>HTML and CSS are perfect together</p>

And then center the image in your css stylesheet.


#4

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