Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS Introduction

CSS Introduction


Knowledge you need

Before continuing, you need to have a basic understanding of the following:

If you want to learn these topics first, please Home visit the relevant tutorials.


What is CSS?


CSS example

A single HTML document can display different styles: See how CSS works


Styles solve a big problem

HTML tags were originally designed to define document content, as in the following example:

这是一个标题

这是一个段落。

Stylesheets define how HTML elements are displayed, just as font tags and color attributes did in HTML. Styles are usually saved in external .css files. We only need to edit a simple CSS document to change the layout and appearance of all pages.