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

    Nt1310 Final Exam

    • 746 Words
    • 3 Pages

    If you have several Web pages and need a consistent style that can be easily updated, __________ is a good choice.…

    • 746 Words
    • 3 Pages
    Good Essays
  • Good Essays

    It237 Week 2 Checkpoint

    • 414 Words
    • 2 Pages

    Throughout this paper I will be describing external, embedded, and inline types of cascading style sheets. Also, I will be providing a pro and a con for each type of cascading style sheet.…

    • 414 Words
    • 2 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

    External CSS is a file that contains only CSS code and is saved with a .css file extension. In your HTML you will use the <link> not the <style> tag to insert the style sheet. The code would look like this:…

    • 520 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Acct 3563 Summary

    • 7433 Words
    • 30 Pages

    Background In previous accounting subjects, we explored what should happen when a firm uses a particular set of accounting principles and practices. However, in real life, we know this is not always the case. Hence, Positive Accounting Theory (PAT) tries to explain, and possibly predict, accounting practices. Assumptions As always there are some assumptions that PAT takes: • • • • Everyone takes measures to maximise their own self-interest; even at the expense of others. Rational behaviour. Efficient markets in that prices for shares and debt will adjust instantly to changes in the business. Price protection in that markets will continually and accurately adjust prices to reflect managerial actions.…

    • 7433 Words
    • 30 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
  • 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
  • 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
  • Good Essays

    WFV1 Notes

    • 4474 Words
    • 16 Pages

    Jpeg/png/gif Site Development Associate v2.0, Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements, section "Images in Web Pages.”…

    • 4474 Words
    • 16 Pages
    Good 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
  • 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
  • Satisfactory Essays

    CSS Description Types

    • 427 Words
    • 2 Pages

    The three types of CSS are internal (embedded) styles, inline styles, and external styles. Internal Styles are placed inside the section of a particular web page via the style tag. These styles can be used only for the web page in which they are embedded; therefore, you would need to create these styles over and over again for each web page you wish to style.…

    • 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