HTML & CSS Fundamentals
HTML & CSS Fundamentals
<html>
<head>
<title>My Page</title>
<style>
</style>
</head>
<body>
<h1>I am a heading</h1>
<p>I am a paragraph</p>
</body>
Common Tags
• Headings: <h1></h1> through <h6></h6>
• Paragraph: <p></p>
• Image: <img />
• Line Break: <br />
• Unordered List: <ul></ul>
• Ordered List: <ol></ol>
• List Tags: <li></li>
• GeoLocation
• Web Storage
• AppCache
• Canvas
• SVG
• Audio and Video Support
What is CSS?
• CSS stands for Cascading Style Sheets
• CSS is used for describing presentation semantics
of a web page, usually written in HTML
• CSS was created to separate presentation from
content
• It is now considered bad practice to use inline
styling such as <p bgcolor=“red”>Some text</p>
CSS History Timeline
Dec 1996 – CSS 1 was published as W3C recommendation
May 1998 – CSS2 was published as W3C recommendation
April 2011 – CSS 2.1 published as W3C recommendation
CSS 3 is divided into several separate documents called "modules". Each
module adds new capabilities or extends features defined in CSS 2, over
preserving backward compatibility.
• Media Queries 2012-06-19
• Namespaces 2011-09-29
• Selectors Level 3 2011-09-29
• Color 2011-06-07
Implementing CSS
CSS can be used inline like so
P#myid{
background:#f4f4f4;
}
New CSS3 Features
Media Queries
Rounded Corners
Text Effects
Animations
Colors & Gradients
Pseudo-Classes
THAT’S IT!