Introduction To Web Development Lecture 2
Introduction To Web Development Lecture 2
•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)
<i></i>! ! ! ! italic
<b></b> bold
<u></u> underline
superscript
<sup></sup>
<sub></sub> subscript
<p></p> paragraph
<center></center>! align center
<h1-6></h1-6> heading
REVIEW (2)
<br /> line break
<a href=””></a> link
<ol> or <ul>! list
<li></li>
...
</ol> or </ul>
Relative Address
e.g.!
! <img src=”/image/chemistry.png”>
! ! <a href=”../page.html”>
width/height 30px
http://www.chemistry.com
BONUS: AUDIO/VIDEO
<audio or <video!
! ! ! !
! src=””! ! ! ! ! ! ! ! source
! controls! ! ! ! ! ! ! (optional)
! autoplay! ! ! ! ! ! ! (optional)
! loop>!! ! ! ! ! ! ! ! (optional)
Text! ! ! ! ! ! ! ! ! ! (alt text)
</audio> or </video>! ! ! !
* Different browsers support different types of media
** Refer to: http://en.wikipedia.org/wiki/HTML5_video#Table
TABULAR GOODNESS!
<table border=”” width=”” cellspacing=”” cellpadding=””>
! <tr>! ! ! ! ! row
! ! <th></th>!! header
! ! ...
! </tr>!! ! ! ! ! ! !
! <tr>
20
! ! <td></td>!! data
! ! ...
! </tr> border 1
</table>! ! ! !
10
BONUS: CAPTION
<table>
! <caption>
! Table 1: Bingo Board
</caption>
! <tr>
! ! <td>0</td>
! ! <td>4</td>
! ! <td>7</td>
! </tr>
! ...
</table>
CAN I HAZ MORE PAGES?
<frameset cols=”” or rows=””>!! px or %
! <frame src=”” />! ! ! ! ! source html
! ...
</frameset>
! ! ! !
* <frameset> and <frame> tags are not supported in HTML5
30%
70%
OMG!! WHAT, THEN?!
<iframe
! src=””! ! ! ! ! ! ! source html
! border=0 or 1! ! ! ! (optional) border
! width=””! ! ! ! ! ! (optional) % or px
! height=””!! ! ! ! ! (optional) % or px
! name=””>! ! ! ! ! ! (optional) % or px
</iframe>!! ! !
FORMTASTIC (A.K.A. LABELS, BUTTONS & BOXES)
<form> type=
“text“, “password”, “submit”,
! <input type=””> “search”, “radio”, “range”,
! ...!! !
“checkbox”, “number”, ...
</form> required
maxlength (text)
min/max (range, number)
Please fill out this field placeholder
value
...
STYLIN’ UP!
Style Attribute
style=”property:value;...”
e.g. <body>, <p>, <table>, ...
Style Properties
font-: family, size, style, ...
text-: color, align, transform, ...
* http://www.w3schools.com/css/
GIVE ME A BREAK! I NEED SOME SPACE...
<span></span>!! ! group in-line elements
no visual change
great way to stylize
Stay tuned.
USEFUL RESOURCES
W3C School - HTML5
http://www.w3schools.com/html5/