css - My Html file is not showing any style -
i starting simple static html website, realized that, reason, doesn't show css style. @ first though linking problem, realized style attribute not working in html file. here's simple example:
<!doctype html> <head> <link rel="stylesheet" type="text/css" href="../style.css"> <meta charset="utf-8" /> </head> <body> <p style="text-decoration: underlined;">this body green</p> <p>this body </p> <p>this body </p> <p>this body </p> <p>this body </p> <p>this body </p> <p>this body </p> <p>this body </p> <p>this body </p> <p>this body </p> </body>
and stylesheet:
body { background: #c9c9c9; }
any suggestion?
you have <p style="text-decoration: underlined;">this body green</p>
you need <p style="text-decoration: underline;">this body green</p>
it's underline
not underlined
.
that solve inline css problem, after follow tieson t.'s advice , use proper html markup.
Comments
Post a Comment