[solved]lesson 23 error code


#1

I have the same problem.

html code:

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css";rel="stylesheet";href="stylesheet.css"/>
        <title>Result</title>
    </head>
    <body>
        <h1>Result </h1>
        <p>This is the first paragraph.</p>
    </body>
</html>

css code:
h1{
font-family:Verdana;
color:#576d94;
}

p{
font-size:18px;
color:#4a4943;
}


Lesson 23 error code
#2

attributes (type, rel, href) are separated by spaces, not semi-colons. You use semi-colons when using thet style attribute: <p style="color: red; font-size: 16px">, not to separate attributes

for next time, use one of the two following options to make your code/indent is visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard


#3

Aha!Thanks!

But in lesson 22, it did't tell me the error.


#4

each exercise has its own SCT (submission correctness test) so yea, not all might check already existing code/validate different, i can look into it if it is really a must (or you can do it yourself if you really would like to know why, i can tell you how to view SCT)


#5

:sweat:There is an error in lesson 25 too.

my html code:

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>Result</title>
    </head>
    <body>
        <h1>Result </h1>
        <p>This is the first paragraph.</p>
        <img src="http://bit.ly/NnVbxt"/>
    </body>
</html>

my css code:
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;
}

error is "Did you remember to give your image a 1px solid #4682b4 border?"


#6

Make sure the browser zoom is set to 100% (ctrl + 0 or cmd + 0 for mac, or in your browser settings)


#7

I tried,but It does't help.


#8

Then you hit a glitch, try a different browser


#9

:joy:Bad luck.
But the IE is OK.