Fundamentals of Web Design
Fundamentals of Web Design
Web Design
What We’ll Cover
• HTML basics, what's involved in writing it and
understanding the basic elements of a webpage.
• Cascading Style Sheets (CSS) and how they control the
presentation of HTML.
• Javascript and its role in user interaction, how it integrates
and why it matters.
• Flash and what role it plays in presentation, interaction and
the ups and downs of using it.
But first, some background...
Basics of how the web works and how your website fits into
the big picture.
Basic HTML pages – ‘flat website’
Domain
Domain Name Registrars
Registry
Internet Domain
HTTP request: Service Name
“www.sitename.com” Provider Resolver
User IP address
00.00.00.00
Web
Page Host
HTTP response
Web PHP
“LAMP”
Page Scripts
HTTP response
• Linux
Host • Apache
MySQL
• MySQL
Database
• PHP
• FrontPage
• Very common starting point on PC. Solid and serviceable.
Deep integration with Windows OS.
• Plain-text editor
• Cheap. Fast. Efficient. Reliable. Trustworthy. Multi-platform.
• My choice – BBEdit for the Mac.
Downside: not quite as ‘helpful’ as GUI apps.
TEXT EDITORS
For Mac: For PC:
BBEdit NotePad++
(http://www.barebones.com) (notepad-plus.sourceforge.net/)
Tags generally ‘open’ and ‘close’ – except for single-element tags like
<img>, <br> and <hr>.
For many years HTML page design was done using the <table> tag –
in the last decade CSS (Cascading Style Sheets) support in browsers has
improved to where object-oriented design techniques can be used,
separating design from content and allowing site-wide design changes
with minor edits.
COMPONENTS OF HTML ELEMENT
<p class =“text” > GREAT </p>
OPENING TAG- <p>
ATTRIBUTE- class=“text”
NAME - class
VALUE – ”text”
CONTENTS- Great
CLOSING TAG- </p>
HTML PAGE ELEMENTS
banner
wrapper
Two cols
footer
CSS – CASCADING STYLESHEETS
Definitions of STYLES for HTML Elements
Rather than:
<p><font size=“3”>Doo Dah</font></p>
(as inline style)
<p style=“font-size:12px;”>Doo Dah</p>
(as line in stylesheet)
p { font-size:12px; }
CSS – CASCADING STYLESHEETS
Selector- body
Declaration- { font-size: 14 px; }
Property – font-size:
Value- : 14 px
CSS – CASCADING STYLESHEETS
- Wikipedia
JAVASCRIPT
Common uses:
• Form validation – check user input before submission
• Popups
• Hide/show page elements
• Image rollover swaps