Change the link's text-decoration to none


#1

Hi all,

I'm stuck in the same place as dhocode was. I tried to compare both our codes but can't find my error.

I'm trying to change the link's text-decoration to none.

Here's my HTML:

<!DOCTYPE html>
<html>
	<head>
	     <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
	   <h1>This is a Header</h1>
	   
	      <img src="https://upload.wikimedia.org/wikipedia/commons/1/16/HDRI_Sample_Scene_Balls_%28JPEG-HDR%29.jpg"/>
	      
	      <p1>This is a Paragraph</p1>
	      
	      <a href="https://commons.wikimedia.org/wiki/File:HDRI_Sample_Scene_Balls_(JPEG-HDR).jpg">click to link
	       </a>
	</body>
</html>

And Here's my CSS:

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 {
        color: #cc0000;
    text-decoration: none;
    }

Ch26 changing link's text-decoration
#2

Hello Guys,
i'm still stuck in this part of the course, but I can see the text-decoration applied to the html file.
The problem is that when i click "save and submit code" an error message appears, which says: "Oops, try again. Did you remember to set your link's text-decoration to none;?".
But when i type in the file css I can see the differences.
Please help me!
p.s. sorry for my bad English


#3

I read about this and i discovered that it is a bug.
To resolve this open the page with another browser different from Chrome and Opera.


#4

2 posts were split to a new topic: I'm thinking there's a problem in my code


#6

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