Difference between revisions of "Including a file"
Jump to navigation
Jump to search
m (more computer tips) |
(adding links to remove from deadend pages list) |
||
| Line 5: | Line 5: | ||
<link rel="stylesheet" type="text/css" href="class.css" /><ref> [http://www.webstartcenter.com/howto/css_inc.php Ways to include CSS in your page]</ref> | <link rel="stylesheet" type="text/css" href="class.css" /><ref> [http://www.webstartcenter.com/howto/css_inc.php Ways to include CSS in your page]</ref> | ||
| − | ==Javascript in HTML== | + | ==[[Javascript]] in [[HTML]]== |
<script src="myscript.js"></script> | <script src="myscript.js"></script> | ||
Revision as of 07:29, April 22, 2013
Including a file in source code is a very common practice, especially in web page design. However, there are so many ways to do this, that it can be hard for the beginner to keep track.
CSS in HTML
<link rel="stylesheet" type="text/css" href="class.css" />[1]
Javascript in HTML
<script src="myscript.js"></script>
PHP
include 'NiceScript.php';
include 'anything.html';