Cascading Style Sheet summarized!

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

Cascading Style Sheet summarized!

Rating:

A Cascading Style Sheet (CSS) is a separate text file that keeps track of design and formatting information such as colors, fonts, font sizes, and margins used in Web pages. CSS is used to provide Web site authors greater control on the appearance and presentation of their Web pages. It has codes that are interpreted and applied by the browser on to the Web pages and their elements. CSS files have the .css extension and can be edited using a text editor such as Notepad.

There are three types of Cascading Style Sheets:

  • External Style Sheet: External Style Sheets are used whenever consistency in style is needed throughout a Web site.

  • Embedded Style Sheet: Embedded Style Sheets are used to define styles for a Web page where style definitions are saved as part of the Web page.

  • Inline Style Sheet: Inline Style Sheets are used to define individual elements of a Web page.
To call and apply the styles, the <LINK> tag is used that is placed between the <HEAD> start and end tags.

<HTML>
<HEAD>
<LINK REL="StyleSheet" HREF="stylesheet1.css" TYPE="text/css">
</HEAD>
<BODY>
This is the rest of the document.
</BODY>
</HTML>


The <LINK HREF> tag creates the link to the location of the style sheet, and the REL=STYLESHEET TYPE provides the type of the referred style sheet.

Following are some of the key points to remember about a style sheet:
  • External style sheets allow the use of styles across multiple Web pages.

  • While using an imported style sheet, multiple style sheets can be applied using a single style declaration.

  • An external style sheet is a text file having the .css extension and contains only style definitions.

  • An external style sheet can be edited through any text editor such as Notepad.

  • The STYLE attribute can be used to add definition to HTML tags.

  • Linked styles are overridden by inline or embedded styles on a page.

  • One of the elements that HTML4 uses to extend HTML is style sheet.

Remember, a CSS is a set of additional tags used to describe the appearance of individual HTML tags. These tags can be embedded in Web pages or can be kept in a separate text file having the .css extension.


Rating:



Other articles

Click here to Article home

MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW Certification: CIW foundation, CIW Professional, Site Designer    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.
 
HACKER SAFE certified sites prevent over 99.9% of hacker crime.