Style A Style B Style C Exit

Choose Your Style

A style sheet is a file which tells a browser how to render a page. You can think of it like a template, that allows us to specify generally how and where something is presented, in a simpler and more efficient way than we can with HTML.

This example demonstrates how easy it is to apply different styles from different style templates to different elements in the same page.

Advantages

Keeping styles defined in a separate file has distinct advantages.

  • a single style sheet can be used for any or all documents in a Web;
  • writing format definitions in a single file reduces the amount of code on individual pages; and less data to be transmitted and parsed means faster download time;
  • a style sheet simplifies site maintenance: a style change to any or all elements in a Web needs only a change in the style sheet;
  • style sheets can be used to establish conventions within a series of publications, that tie a given look to documents of related content, essential to effective communication;

View Source   Exit

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.