0
How to add css file and javascript file on html file?
6 ответов
+ 5
<link rel="stylesheet" href="cssfilepath.css">
<script src="JavaScript filefath.js" ></script>
+ 17
Put this in the head section :
<script type="text/javascript" src="(any).js"></script>
<link href="(any).css" rel="stylesheet" type="text/css"/>
+ 1
Please add the corresponding keywords to add the external sample.js file to the web page.
<script type="text/javascript" src ="sample.js">
</script>
0
Please add the corresponding keywords to add the external sample.js file to the web page.
<="text/javascript"
="sample.js"></script>
answer will be : //script, //type, //src
- 1
Path to file (attribute src for JS and href for CSS) might be relative (i.e. "../css/custom.css") and absolute ("~/www/site/static/css/custom.css").
- 3
for css file add this line to the head tag :
<link href="" rel="stylesheet" type="text/css">
where href should include the url to your css file
for script file add this line to the head tag :
<script src="" type="text/javascript">
where src should include the url to your javascript file