Where should I put the CSS and Javascript code in an HTML webpage? -
Where should I put the CSS and Javascript code in an HTML webpage? -
while designing webpage, should set next code?
<link rel=stylesheet type="text/css" href="css/layout.css">
should set in <head>
or should set in <body>
? please clarify next questions:
<head>
or anywhere else around html code? what if having 2 css (or javascript) files? since can include 1 file before one, file used web-browser display webpage?
in sentiment best practice place css file in header
<head> <link rel="stylesheet" href="css/layout.css" type="text/css"> </head>
and javascript file before closing </body>
tag
<script type="text/javascript" src="script.js"></script> </body>
also if have, said 2 css files. browser utilize both. if there selectors, ie. .content {}
same in both css files browser overwrite similar properties of first 1 sec one's properties. if makes sense.
javascript html css css3
Comments
Post a Comment