How do I attach a Style.css and JS File with my HTML5 Document?

Author Topic: How do I attach a Style.css and JS File with my HTML5 Document?  (Read 3012 times)

Offline kusonpadamTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
    • thiet ke web
Like how would I do it exactly? Do I create the files alone then attach them or attach them then create them?

newbielink:http://thietkeweb.congay.com/ [nonactive]
newbielink:http://thietkeweb.congay.com/thiet-ke-website-chuan-seo.html [nonactive]


Offline dd64ru

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
  • Gender: Male
  • Создание сайтов под ключ - веб-студия FlyART
    • Веб-студия FlyART
Put files in the root directory at first.
Than in html write:

<head>
<link href="YOUR_FILE.css" rel="stylesheet" type="text/css" /> for css
<script type="text/javascript" src="YOUR_FILE.js"></script> for js
</head>
newbielink:https://flyart-studio.ru/ [nonactive] под ключ и продвижение в сети: веб-студия FlyART

Offline Shikha Singh

  • Trade Count: (0)
  • Sr. Member
  • ****
  • Thank You 51
  • Posts: 323
  • Karma: 0
  • Gender: Female
  • solution to start online business
    • solution to start online business
Put the CSS in a separate file and link to it with the <link> tag.
Put the JS in a separate file and call it with the <script> tag.

Src should be "js/vacation.js"
<script type="text/javascript" src="js/vacation.js"></script>

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1457 Views
Last post 01-28-2011, 03:05:53
by Corwin
1 Replies
3210 Views
Last post 08-16-2013, 11:47:05
by Patrecia
18 Replies
11676 Views
Last post 09-04-2014, 21:28:02
by phooeep
4 Replies
2361 Views
Last post 03-23-2017, 05:32:39
by ORLOVA
3 Replies
1058 Views
Last post 08-10-2016, 07:29:31
by TomClarke