Introduction To Web Development Lecture 3
Introduction To Web Development Lecture 3
Suit up!
•Text Editor
ANY Text Editor e.g. TextEdit (plain text), Notepad
Preferably with syntax highlighting
TextWrangler (Free, Mac) TextMate ($, Mac)
NotePad++ (Free, Win) GEdit (Free, Linux)
REVIEW (1)
Image Link
<a href=”http://www.mysite.com”>
! < img src=”logo.png” />
</a>
Relative Address
Form
<form >
<input type=”text ” maxlength= 140><br />
<input type=”submit ” value= ”Tweet”><br />
</form >
HISTORY OF CSS
CSS 1 CSS 3
CSS 2
(1996)
XHTML XHTML
XHTML5
1.X 2.0
... HTML
(1995) 4.0
HTML5
HTML5
Element
{ Property
: Value(s)
; ... }
<head>
<style type=”text/css”>
CSS Declarations
</style>
</head>
CSS IN 3 FLAVORS! (2)
<style> Tag Color Hex Color Codes
http://www.color-hex.com/
Much better!
Cannot apply to many documents
Does not separate content from style
background:#BADA55
padding:20px
text-indent:50px
CSS IN 3 FLAVORS! (3)
External CSS File
<head>
<link rel=”stylesheet”
type=”text/css”
href=”master.css” />
</head>
<span>
Serves as in-line style container
<div>
Serves as block-level style container
GIVE ME A BREAK! I NEED SOME SPACE...
<span></span>!! ! group in-line elements
no visual change
great way to stylize
indent: 50px
align: justify
USEFUL RESOURCES
W3C School - HTML5
http://www.w3schools.com/html5/