Exercise 26 link and decorations


#1

<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<a href="stylesheet.css"></a>
		</link>
	</head>
	<body>
	<h1> ENA LECTURE</h1>
	<p> Boring lecture :(... </p>
	<P> Feeling sleepy ... </p>
	<img src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSS1iqIrzrubrHyjoy6oID9FL8fi88eO2XBrn2y47PAVbzcTbhj"/>
	<a href="https://www.google.com.pk/?gws_rd=cr,ssl&ei=UCIjV8alO4S8swGW-I6YAg">GOOGLE</a>
	
	</body>
</html>

h1{
font-family:Verdana,sans-serif;
color:#576d94;
}
p{
font-size:18px;
color:#4a4943;
font-family:Garamond,serif;
}
img{
height:100px;
width:300px;
border:1px solid #4682b4;
}

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

what is wrong in this ?? i always get an error message that link text between is missing ??


#2

remove this line:

<a href="stylesheet.css"></a>

it serves no purpose, it also causes the error since there is not text between the anchor tags


#3

thankyou so much .... Now i get it right :slight_smile: