LESSON 25 size and borders , 26 links and text decoration


#1

Hello, I can't pass both of these lessons even If I've done everything according instructions. What can I do in this case ? Here is my code:




some heading


some paragraph




My webpage


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

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

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


#2

@gaspernator

Can you post in the instructions and the code in this format:

```
Replace this line with your code. Do not remove the backtips.
```

#3

<!DOCTYPE html>
<html>
	<head>
	    
	    <img src="http://projectbritain.com/britain/england.png"/>
	    <h1>some heading</h1>
	    <p>some paragraph</p>
	    <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
		<a href="https://www.learnbypractice.com">My webpage</a>
	</head>
	<body><a href="http://www.learnbypractice.com">Link text</a></body>
</html>

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

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

img {
    height: 100px;
    width: 300px;
    border: 1px solid #4862b4;
    
a {
    text-decoration: none;
    color: #cc0000;
}

#4

Oops, try again. Did you remember to give your image a 1px solid #4682b4 border?
Oops, try again. Did you remember to set your link's text-decoration to none;?


#5

@gaspernator

Do not put your img, h1, p, and a tag inside head tag otherwise it's not going to get shown. Move this section inside the body tag.


#6

<!DOCTYPE html>
<html>
	<head>
	    <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<a href="https://www.learnbypractice.com">My webpage</a>
	<img src="http://projectbritain.com/britain/england.png"/>
	    <h1>some heading</h1>
	    <p>some paragraph</p>
	</body>
</html>

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

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

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

the same result : Oops, try again. Did you remember to give your image a 1px solid #4682b4 border?


#7

@gaspernator

Is the part of CSS is found in stylesheet.css or is it in index.html?


#8

This is two questions in one? For 26:

img {
    height: 100px;
    width: 300px;
    border: 1px solid #4862b4;
    
a {
    text-decoration: none;
    color: #cc0000;
}

your img css selector is missing a closing curly bracket (})

For exercise 25, make sure your browser zoom is set to 100% (ctrl + 0 or cmd + 0 for mac should achieve this, in most cases)


#9

It just didn't work yesterday, today was ....that brackets were there already I just deleted one by mistake. Thanks anyway for all adviceses