I’m looking for instructions of how to link an external style sheet file to my html page. Also instructions on where to place the link within the html document.
instructions of how to link an external style sheet
Collapse
X
-
You must place your links to external css itno the head part of your html page and here is the code:
Code:<head> <link rel="stylesheet" type="text/css" href="path/to/your/css/file/index.css"/> </head>
Very good idea is to check source code of the pages you find interesting. You'll find loads of interesting html,css and JavaScript. You can do it by view->source through your browser but for loads more useful information you should really install firebug. -
Zorgi gave a good idea to including a external CSS file into document.
There is one more idea to including a external CSS file into any documents and that is:
<style type="text/css" media="all">@im port "path/to/your/css/file/index.css";</style>
You have to use this into header section of your document. This will also work fine for you.Comment
-
not in any. you can use it in any Markup Language*, as long as it is not violating the syntax and/or validation rules. whether it makes sense or has any effect on the document is questionable, though.
* – of the XML and HTML family, maybe even SGML.Comment
Comment