How can I properly add CSS and JavaScript to an HTML document? -
this might very stupid question.
i'm trying add empty css file, empty javascript file , jquery library basic of html files, follows:
<html> <head> <title>testing</title> <link rel="stylesheet" type="text/css" href="theme.css"> <script language="javascript" type="text/javascript" src="jquery-2.0.3.js" /> <script src="application.js" /> </head> <body> <h1 class=test>this test! hello, world!</h1> </body> </html>
however, doesn't work. h1
doesn't display in browser when link
or of script
s present, displays otherwise.
what doing wrong here? why doesn't work, , how can make work?
thank much,
eden.
your <script>
tags cannot self closing. try changing them <script src="..." type="text/javascript"></script>
Comments
Post a Comment