CodeClerks

Css code call failed in my html?



Write the reason you're deleting this FAQ

Css code call failed in my html?

there are my head-html:
<head>
<title>Chinese school in shanghai blog</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" rev="stylesheet" herf="blog/yzcss.css" type="text/css"/>
</head>

then my css named yzcss and this yzcss.css and blog.html in root file ,but html call failed.I am so confused about this route.

If you know this problem please tell me? many thx!

Comments

Please login or sign up to leave a comment

Join
Everett
Hello,

"Rev" attribute is NOT supported by the major browsers.

If your CSS is still not updating after rev to REL fix, than try adding full domain URL in 'href' attribute.

Kind Regards,
Everett



Are you sure you want to delete this post?

jakemadness
Make sure the path to your .css file is correct example below. . . .
My .css file is located in directory css, I place the directory which is css then the filename what is extras and the extension what is .css

//The html file I want styles is in the main directory I place this in my html file
<link href="css/extras.css" rel="stylesheet" type="text/css"/>
 
//The html file I want styles in is in a directory in my main directory I place this in my html file
<link href="../css/extras.css" rel="stylesheet" type="text/css"/>
 

The ../ skips a directory and ../../ would skip two Css code call failed in my html?



Are you sure you want to delete this post?