Preview

Introduction to Css

Powerful Essays
Open Document
Open Document
14423 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Introduction to Css
CSS Introduction
« Previous
Next Chapter »

What You Should Already Know
Before you continue you should have a basic understanding of the following: * HTML / XHTML
If you want to study these subjects first, find the tutorials on our Home page.

What is CSS? * CSS stands for Cascading Style Sheets * Styles define how to display HTML elements * Styles were added to HTML 4.0 to solve a problem * External Style Sheets can save a lot of work * External Style Sheets are stored in CSS files

CSS Demo
An HTML document can be displayed with different styles: See how it works

Styles Solved a Big Problem
HTML was never intended to contain tags for formatting a document.
HTML was intended to define the content of a document, like:
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
When tags like <font>, and color attributes were added to the HTML 3.2 specification, it started a nightmare for web developers. Development of large web sites, where fonts and color information were added to every single page, became a long and expensive process.
To solve this problem, the World Wide Web Consortium (W3C) created CSS.
In HTML 4.0, all formatting could be removed from the HTML document, and stored in a separate CSS file.
All browsers support CSS today.

CSS Saves a Lot of Work!
CSS defines HOW HTML elements are to be displayed.
Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in a Web site, just by editing one single file!
CSS Syntax
« Previous
Next Chapter »

Examples * Look at Example 1 * Look at Example 2

CSS Syntax
A CSS rule has two main parts: a selector, and one or more declarations:

The selector is normally the HTML element you want to style.
Each declaration consists of a property and a value.
The property is the style attribute you want to change. Each property has a value.

CSS

You May Also Find These Documents Helpful

  • Good Essays

    <p> This paragraph would be in blue font. The background color for this page would be gray because we changed it with the CSS style sheet! </p>…

    • 520 Words
    • 3 Pages
    Good Essays
  • Good Essays

    HTML is currently in its fifth revision or HTML53. With HTML5 a standard is set for how to display the web page; where pictures are displayed, fonts used for text and total layout of the page. XML (extensible markup language) is used for web documents. CCS (cascading style sheet) is written into the HTML document or attached as a file to define the appearance of the displayed page.…

    • 897 Words
    • 4 Pages
    Good Essays
  • Good Essays

    WFV1 Notes

    • 4474 Words
    • 16 Pages

    Html css alignment Site Development Associate v2.0, Lesson 5: HTML Tables, section "CSS Properties for All Table Elements.”…

    • 4474 Words
    • 16 Pages
    Good Essays
  • Powerful Essays

    • Set the style for one or more sections. Refer to pp. 218–220 & 226 of New Perspectives on Blended HTML, XHTML, and CSS.…

    • 1146 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Color schemes of a website are very important; they need to remain consistent in which ever type of scheme has been chosen for the website. When a user visits a website and the colors clash it can be very displeasing to the eye if the user realizes it or not. Often users stick around to pleasantly colored website and are more attracted to them than if the colors do not match or are inconsistent throughout the whole site.…

    • 1154 Words
    • 5 Pages
    Good Essays
  • Good Essays

    The second key element to consider is contrast and focus. Focus is the center of interest. Web pages need a focal point. This is where you want your visitors to focus their attention. Creating Web pages with contrast using size and colors will help establish a focal point.…

    • 612 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Ipt Hsc Notes

    • 11818 Words
    • 48 Pages

    Hypertext mark up language: used to organise hypertext for the WWW, specifies how text, graphics and sound are displayed on a web page.…

    • 11818 Words
    • 48 Pages
    Powerful Essays
  • Good Essays

    Web standards include recommendations for HTML, XHTML, Cascading style sheets, Dom, and the standardized version of…

    • 425 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Cascading Style Sheets

    • 364 Words
    • 2 Pages

    There are three types of cascading style sheets, or CSS. The first is the inline style sheet, it is limited in it's abilities. The most common reference would be tag editing, this is a specified modification. This allows for different display options for sections in your pages. This isn't the easiest thing to use, I have had trouble getting some of these tags to line up the way I want them to on the page. The next is the embedded style. An embedded style is one that directs the entire page it is applied to. I see it as a universal styling, making it quicker to edit. An embedded style is just that, embedded into the head of the page. This can be good for editing multiple tags on one page, I like to use this when I can. I would have to say that I do not use it a lot, I tend to change many tags individually. The last style is external style and it too, is just like it says, a written external document, attached to different web documents. An external style is a more widespread option to use. It can effect the whole website site, defining different tags in different pages. I like to use this type, I have a theme that can keep many parts of it's main theme intact throughout the website. This makes for easy maintenance and since the site isn't intend for extravagance, I can use many of the same colors and displays. My viewers will be more interested in the site content in my opinion. Plus the sharing pages can be practically identical, maybe just a different picture. I will probably use all three for different aspects of my site. I think I want to keep the maintenance low and the purpose simple, so I will stick to many of the same styles for the pages. I think external is a good one as well, creating a document separately and using it for applying to multiple tags. It can be easy to replace if you want and…

    • 364 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    216. What pair of tags should encase the contents (e.g., text, images) of your HTML…

    • 376 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    life

    • 316 Words
    • 2 Pages

    I kind of like how you can create your own style in your own way and also you can you use Graphic style libraries to sort or pick different styles. You select, sort, and view items in a graphic style library the same as you do in the Graphic Styles panel. But the disadvantages of it are that you can’t add items to, delete items from, or edit the items in graphic style libraries.…

    • 316 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Blotskiy, A. (2010, November 5). Silverlight, HTML5, and Microsoft’s Opaque Development Strategy. Retrieved October 16, 2013, from Soft Theme Blog: http://blog.softheme.com/silverlight-html5-and-microsofts-opaque-development-strategy/…

    • 4922 Words
    • 20 Pages
    Powerful Essays
  • Powerful Essays

    Discuss how the design, function and content of web pages influence the meaning and value of information.…

    • 1924 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    CSS Description Types

    • 427 Words
    • 2 Pages

    PROS: One style sheet can define style for many web pages or an entire website. Change settings in the style sheet…

    • 427 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Extra, Extra read all about it! While millions of people still rely on the good old black and white every day, it is the perfect example of a static media. Once it is printed a newspaper can no longer be changed, its type has been set and one will simply have to wait until the next edition to recieve the quote unquote latest news even if it has broken minutes after the paper has been delivered to your doorstep. Similarly, once a static website has been published it too will not change until the next edition; whenever the webmaster or someone familiar with HTML, or flash edits the content.…

    • 5228 Words
    • 21 Pages
    Good Essays

Related Topics