CSS Tutorial:
-CSS is the language we use to style an HTML document.
-CSS describes how HTML elements should be displayed.
-This tutorial will teach you CSS from basic to advanced.
CSS Introduction:
CSS is the language we use to style a Web page.
What is CSS?
-CSS stands for Cascading Style Sheets
-CSS describes how HTML elements are to be displayed on screen, paper, or in other media
-CSS saves a lot of work. It can control the layout of multiple web pages all at once
-External stylesheets are stored in CSS files
CSS Syntax:
A CSS rule consists of a selector and a declaration block.
-The selector points to the HTML element you want to style.
-The declaration block contains one or more declarations separated by semicolons.
-Each declaration includes a CSS property name and a value, separated by a colon.
-Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.
How to add CSS:
Three Ways to Insert CSS
There are three ways of inserting a style sheet:
External CSS
Internal CSS
Inline CSS
CSS Borders:
CSS Border Style
The border-style property specifies what kind of border to display.
The following values are allowed:
dotted
dashed
solid
double
groove
rigde
inset
outset
none
hidden
CSS Margins:
-The CSS margin properties are used to create space around elements, outside of any defined borders.
-With CSS, you have full control over the margins. There are properties for setting the margin for each side of an element (top, right, bottom, and left).