This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by johnny5g
over 8 years

what am i doing wrong?

CSS:

p {
    font-family:Garamond, serif;
}
h1 {
    font-family:Verdana, sans-serif;
}
img {
    height:100px;
    width:300px;
    border:1px solid #4682b4;
}

HTML:

  <!DOCTYPE html>
<html>
    <head>
        <link="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>Result</title>
    </head>
    <body>
    <h1>welcome</h1>
    <p> this is my site!</h1>
    <img src="http://bit.ly/NnVbxt">
    
    </body>
</html>

what am i doing wrong?

Answer 561232409113cb83220001b5

0 votes

Permalink

check here how to format your code. Your html code is currently not visible. if you update your question please leave a comment so i get a notification. If you put your code i a comment, i am going to ask you to redo it, and use proper format.

points
Submitted by stetim94
over 8 years

4 comments

stetim94 over 8 years

your css is fine, i would like to see your html

stetim94 over 8 years

also, make sure your zoom is set to 100% (ctrl 0)

johnny5g over 8 years

i have

johnny5g over 8 years

it says “Oops, try again. Did you remember to give your image a 1px solid #4682b4 border?”

Answer 5612b91595e3780399000216

0 votes

Permalink

your link to stylesheet is faulty, it should be:

<link type="text/css" rel="stylesheet" href="stylesheet.css"/>

you forgot the type attribute

points
Submitted by stetim94
over 8 years

1 comments

johnny5g over 8 years

ok thanks! i will look into it/