the video describes how to make a basic CSS Navigation for websites and then describes the properties, steps as well as some background history on HTML and CSS.
3. Welcome to CSS
CSS stands for Cascading Style Sheets
Styles define how to display HTML Elements
Styles were added to HTM4.0 to solve a
problem
4. HTML & CSS
HTML was never intended to have tags.
but instead to define the contents of a
document such as heading and paragraph
tags.
In HTML 3.2 <font> and <color> tags were
added which caused NIGHTMARES for
web developers
This was fixed in HTML 4.0 when the W3C
added CSS Style Sheets
5. Types of Stye Sheets
There are 3 ways to implement CSS on a web page.
External Style Sheet
Internal Style Sheet
Inline Style Sheet
6. EXTERNAL STYLESHEET
HTML CSS
<!DOCTYPE html>
<html> h1{
<head> color: blue;
<title>External Stylesheet</title> }
<link rel=”stylesheet”ref=”style.css” />
</head> p{
<body> margin: 10px;
}
<h1>This is a header.</h1>
<p>This is a paragraph.</p>
</body>
</html>
7. Internal Style Sheets
<!DOCTYPE html>
<html>
<head>
<title>Internal Stylesheet</title>
<style>
h1{
color: blue;
}
p{
margin: 10px;
}
</style>
</head>
<body>
<h1>This is a header.</h1>
<p>This is a paragraph.</p>
</body>
</html>
11. Lists - HTML
The menu is being constructed by an
Unordered List.
Unordered lists are used in so many ways in
web design such as navigation, lists, footers,
twitter feeds, image galleries etc.
Each list has a start and finish tag <ul>, </ul>.
Each list item has a start and finish tag as
well <li>,</li>.
They are used to identify lists and items.
12. Links - HTML
Each link has a start and end tag<a> and </
a>.
They also have other attributes such as: href,
rel, name .etc.
The hash tag “#” is used to represent a non
used link, like a filler link.
13. General CSS Information
Just like the HTML, CSS has beginning and
ending symbols.
CSS uses the Curly Brackets { and }.
Each CSS property requires a semicolon “;”
at the end of each property declaration.
14. Reset and 0
* selects ALL elements on a website. and it is
used for a reset such as margin:0; padding:
0;.
When declaring dimensions whether its size
or position, 0 does not need the prefix em,
in, px .etc.
15. Menu - CSS
There are many property options for list
items bullets, you can make them bullets,
numbers, letters, roman numerals and even
images.
The margin: 0; padding: 0; properties remove
the margin and padding from the un ordered
list as well as from every descendant
element.
Then there are some visual enhancement
properties that are customizable to your
liking.
16. Common Mistakes
You need to use a doctype (Preferably html5
doctype) <!DOCTYPE html> in your websites
when floating ANYTHING or else it will not
work properly.
* reset should NOT be used with Outline,
Border or anything of that sort because it
may slow your websites performance. the
Margin and padding is the most basic of
stylesheet resets. there are many available
on : http://css-tricks.com/8146-the-lean-
mean-css-reset-machine/.