Including a file

From Conservapedia
This is the current revision of Including a file as edited by DavidB4-bot (talk | contribs) at 14:17, July 13, 2016. This URL is a permanent link to this version of this page.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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';

Notes