Skip to Main Content or Page Contents
Internal Style Sheets Introduction
Where to place CSS Internal Style Sheet in an HTML page
/html>
HTML element style="{ property: value; property: value; }"
Any HTML Element. In this Lesson we will use the body, p paragraph and some of the headings h1, h2 etc.
Only the curly brackets must be used.
Do not use ( ) or [ ]
There are 100s of different properties that style sizes, fonts, text styles, borders, padding, margins, positioning, color (CSS uses the American spelling), etc.
Each property has a selection of values
E.g. Color has 140 different color names such as red, green, blue, yellow, cyan, magenta, white, black, lightgray etc. With a total of over 16 million colours using the hex color system e.g. #000000 to #FFFFFF
The Look of an Element
ALL Elements look like a box. In the centre is the content, this can be surrounded all 4 sides or on selected sides, by padding, then a border, then on the outside margins which is space between elements
All these sections can be styled with CSS
See a diagram of the Box Model
Main Content.
More Content
This site is hosted on Hostgator