javascript - HTML and style sheet not linking -
ok no matter style sheet not link html document, both in same directory on computer , no matter do, no style applied <p>
tag. have stripped document bare bones , cannot find error is. i'm sure @ point extremely simple , complete idiot missing it. please help.
index.html
<!doctype html> <html> <link rel=sylesheet type=text/css href=style.css> <head> </head> <body> <p> hello, world! </p> </body> </html>
style.css
p { color: red; }
your format in html not correct. should be:
<!doctype html> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> </body> </html>
your <link rel="stylesheet" type="text/css" href="style.css">
should inside of <head></head>
tag
Comments
Post a Comment