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
Post a Comment