HTML and CSS Reference
In-Depth Information
Pizza image reproduced by permission of William Rogers
Figure 2-13 The home page template, with CSS.
You can use multiple <link> elements to reference multiple stylesheets. However, it is considered a good practice
to minimize the number of external files that your web page needs. The reason? The more external files that you
have, the longer the page takes to load.
Relative and Absolute Paths
As you build up your HTML pages, you will need to reference external files such as CSS stylesheets, images,
JavaScript files, or even other pages within your website. You use relative and absolute paths to tell the browser
where it can locate these files. Figure 2-15 shows a sample directory structure that I will be using when explaining
how these different types of paths work.
Search WWH ::

Custom Search