CSS Introduction
来源:互联网 发布:sai绘画软件官网 编辑:程序博客网 时间:2024/05/22 19:04
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 Introduction
- Introduction to CSS
- Introduction to Browser-Specific CSS Hacks
- Introduction
- Introduction
- Introduction
- Introduction
- Introduction
- Introduction
- Introduction
- Introduction
- Introduction
- Introduction
- introduction
- Introduction
- Introduction
- introduction
- Introduction
- 关于win32的C++ 类封装
- Ubuntu11.04下编译最新Linux-3.0-rc7内核
- 自定义ProgressBar
- vs2008 编译 directshow baseclasses
- 日期选择控件
- CSS Introduction
- GCC工具链
- MS SQL 2005基本操作(一):SQL语句对表、视图、索引和同义词的操作
- CSS Id and Class
- poj1661Help Jimmy
- RadioButtonList控件取值和根据值选择
- BM25算法浅析
- kvm的一些配置情况
- java.io.IOException: response already committed