Link a Style Sheet to an HTML File
Collapse the table of content
Expand the table of content

Link a Style Sheet to an HTML File

You can include style sheet information in an HTML file in two ways:

  • Use the <LINK> tag to reference an external style sheet contained in a separate file.
  • Include style sheet information between the <STYLE> start and end tags inside the file.

The formatting appears the same with either method. If you are managing a large help system or Web site, the advantage to using an external style sheet is that the same styles can be used by many different files, without duplicating the information between the <HEAD> start and end tags of every file.

What do you want to do?

Related topics

About Using Cascading Style Sheets

 

 

Show:
© 2016 Microsoft