Social Icons

Wednesday, January 1, 2014

External Style Sheet

linking to style sheets from and HTML file


With the linking method, a single style sheet controls multiple web pages. However, each page must be linked to the style sheet, which is a plain text file with the .css file name extension. To link a Web site file to the style sheet, use the following syntax:

css link

Style sheet files should include only style information. HTML tags should not be included in your plain-text style sheet file.


Importing style information


Another method for accessing and external style sheet file involves using the @import statement. Using the import method allows you to apply multiple style sheets using one style element. The syntax for using the import method is as follows:

css link

Note that in this method, a semicolon is needed at the end of the @import statement to separate it from any following style information. CSS link to HTML.

No comments:

Post a Comment