Page 2 - LoudOffice_Guide-to-HTML_Part-II_Advanced.PDF
P. 2
Table of Contents
I. Tables ............................................................................................................ 3
Basic Table Tags .....................................................................................................3
Formatting Your Table..............................................................................................3
Headings and Captions.............................................................................................5
Controlling Alignment...............................................................................................6
Merging Cells ..........................................................................................................7
Using Colors in Your Tables.......................................................................................9
II. HTML Forms................................................................................................. 10
The <form> Element .............................................................................................11
The <input> Tag...................................................................................................12
Combo Boxes........................................................................................................13
Text Area .............................................................................................................13
Buttons ................................................................................................................14
A Complete Form Example......................................................................................15
III. Introduction to JavaScript ........................................................................ 16
Versions of JavaScript............................................................................................16
Embedding JavaScript............................................................................................16
Naming Conventions..............................................................................................17
Variables and Data Types .......................................................................................18
Operators.............................................................................................................19
Assignment ..........................................................................................................20
Statements...........................................................................................................21
Conditionals..........................................................................................................21
Comments............................................................................................................22
Functions .............................................................................................................22
Document Object Model .........................................................................................23
Event Handlers......................................................................................................24
IV. Working with JavaScript in HTML................................................................. 26
Alerts, Prompts, and Confirms.................................................................................26
Mouse Over Events................................................................................................28
Popup Windows.....................................................................................................31
Writing HTML with JavaScript..................................................................................33
Validating Form Data With JavaScript.......................................................................34
V. An Introduction to Cascading Style Sheets .................................................. 35
Inline Styles .........................................................................................................36
Embedded Style Sheets..........................................................................................37
Linked Style sheets................................................................................................39
CSS Classes..........................................................................................................39
IDs ......................................................................................................................40
DIV and SPAN.......................................................................................................40
Cascading and Inheritance......................................................................................40
CSS Positioning.....................................................................................................41
CSS Cheat Sheet...................................................................................................44
VI. Adding CGI Scripts....................................................................................... 46
Adding CGI to Your Web Site ..................................................................................46
Accessing CGI Scripts Directly.................................................................................47
Accessing CGI Via a Form.......................................................................................48
VII. Getting Your Site Found By Search Engines .............................................. 49
Basic of Meta Tags.................................................................................................49
LoudOffice.com Guide to HTML – Part II Page 2