Академический Документы
Профессиональный Документы
Культура Документы
CODA
TEXT WRANGLER
TExTMATE
EXPRESSION WEB
DREAMWEAVER
BROWSERS
the big four
building blocks
HTML
<html>
html tag
<html> </html>
<head>
head definitions
<title>
page title
<body>
document body
<!-- # -->
comments
<html> <head> <title>Our Page</title> </head> <body> <!-- code body here --> </body> </html>
<p>
paragraph tag
<p>My paragraph</p>
<br>
line break
<br />
line break
<h1>
heading tag
<h2>
heading tag
<h3>
heading tag
<h4>
heading tag
<h5>
heading tag
<small>
small font style tag
<div>
division/container tag
<span>
inline container
BUILD TIME
<ul>
unordered list
<li>
list item
<table>
table definition
<thead>
table header
<th>
table header cell
<tbody>
table body
<tr>
table row
<td>
table cell
<tfoot>
table footer
<table> <thead> <th>Name</th> <th>Price</th> </thead> <tbody> <tr> <td>Latte</td> <td>$3.95</td> </tr> </tbody> </table>
NAMING CONVENTION
ids
singular
classes
many
SEMANTIC WEB
documenting
SELF
BUILD TIME
ADDING STYLE
stylesheets
.css files
selectors
by element
by class
by ID
style options
structure
height
50px;
width:
100px;
margin:
5px 5px 5px 5px
WAIT!
introducing
the box model
margin padding
height
width
padding:
5px 5px 5px 5px
div { height: 50px; width: 100px; padding: 5px 10px 5px 10px; margin: 5px 10px 5px 10px; }
5px 5px
10px
10px
10px
10px
Height + padding-top + padding-bottom + margin-top + margin-bottom 50px + 5px + 5px + 5px + 5px =
HEIGHT
70px
Width + padding-left + padding-right + margin-left + margin-right 50px + 10px + 10px + 10px + 10px =
WIDTH
90px
div { margin: top right bottom left; } div { margin: 5px 10px 5px 10px; }
Shorthand
div { margin: 5px 10px; } div { margin: 5px; }
OK!
BUILD TIME
FLOATS
fonts
font-family:
helvetica, arial, sans-serif;
font-size:
12px;
font-size:
12pt;
font-size:
1em;
font-size:
70%;
font-weight:
bold;
font-weight:
normal;
text-decoration:
underline;
text-decoration:
none;
color
color:
black;
color:
#000000;
color:
#000;
color:
rgb(0,0,0);
background-color:
black;
BUILD TIME