Issues connecting CSS with HTML -
so have been having issues using external stylesheet , connecting html (really simple, right).
i've been copying simple examples off internet few lines long see if wrong code , while html part works (i see words), when use external css, none of styles applied.
see code below. trying not use <style></style>. trying red text:
h1 { color: red; } <!doctype html> <html> <head> <link rel="stylesheet" type="text/css" href="main.css"> </head> <body> <h1>framework test page</h1> </body> </html>
chaeck whater css file contain css rules html element , css file in same folder. because there no css rule(css) aply html file. thing can not use
h1{ color:red; } like this. sholud use part inside <style></style> tag.
Comments
Post a Comment