Stuck at exercise 26


#1

I've been stuck at exercise 26 for a while now, I've gone around and checked whether my code is wrong or anything among those lines, but I haven't found an error. I'd even tried copying an answer which looked exactly like mine and that didn't function either. The solutions on the forums didn't work for me either, for example, resetting your code, refreshing the page, using different browsers. This is the error mesage I'm getting: Oops, try again. Did you remember to set your link's text-decoration to none;?

HTML;

<!DOCTYPE html>
<html>
	<head>
	<link rel="stylesheet" type="text/css" href="stylesheet.css" />
		<title>Result</title>
	</head>
	<body>
	<a href="https://google.com">Hey</a>
	<h1>Anything you want!</h1>
	<p>Yo waddup guys, it's Scarce here</p>
	<img src="http://www.famousbirthdays.com/faces/scarce-john-image.jpg" />
	</body>
</html>

CSS;

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

Greetings
Yusuf


#2

An attribute has no height, width or border properties. Use just the type selector, img.


#4

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