","upvoteCount":5},"suggestedAnswer":[{"@type":"Answer","text":"Put this in the head section :\n\n\n\n","upvoteCount":17},{"@type":"Answer","text":"Please add the corresponding keywords to add the external sample.js file to the web page.\r\n\r\n","upvoteCount":1},{"@type":"Answer","text":"Please add the corresponding keywords to add the external sample.js file to the web page.\r\n\r\n<=\"text/javascript\" \r\n =\"sample.js\">\r\n\r\nanswer will be : //script, //type, //src","upvoteCount":0},{"@type":"Answer","text":"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\").","upvoteCount":-1},{"@type":"Answer","text":"for css file add this line to the head tag :\r\n\r\nwhere href should include the url to your css file\r\n\r\nfor script file add this line to the head tag :\r\n
0
How to add css file and javascript file on html file?
Put this in the head section :
<script type="text/javascript" src="(any).js"></script>
<link href="(any).css" rel="stylesheet" type="text/css"/>
25th May 2017, 5:00 AM
Dev
+ 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>
1st Jul 2020, 6:25 PM
Rustamjon Kosimov
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
1st Mar 2020, 10:37 AM
Sadman Fahim
- 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").
25th May 2017, 5:31 AM
Александр Холодов
- 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