HTML Link with external CSS no working -


this question has answer here:

when try link following code css file, doesn't work.

<!doctype html> <html>     <head>         <link href="style.css" type="text/css" rel="stylesheet"/>     </head>     <body>         <div class="body"         </div>     <body> </html> 

style.css contents:

.body { background-color: blue; } 

in html file, following put in bold underlined red line in notepad++:
<-link href="style.css" type="text/css" rel="stylesheet"/> *note '-' in link href= demonstrational purposes.

doesn't seem work. background color stays white. help?

put content in div.

and close div this

<!doctype html> <html>     <head>         <link href="style.css" type="text/css" rel="stylesheet"/>       <style>         body {           background-color: blue;           }         </style>     </head>     <body>         <div class="body"> <!-- please check closed tag -->         </div>     <body> </html> 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -