Professional Documents
Culture Documents
Chapter 3
Don’t Do This
Content - Why and Where
๏ Content is most likely the reason people are visiting your website
๏ Interesting content is more important that interesting layout
๏ Where to get content - Create some, rewrite some, find some or if
all else fails Lorem Ipsum
HTML (Structure)
My.UQ - Structure
What is HTML
๏ HTML is a mark up language, a way to markup content
๏ HTML gives meaning to content
๏ HTML wraps around content
๏ Non-linear movement between pages (Hyperlinks)
8
WHAT IS HTML?
HTML:
The set of markup symbols or codes placed
in a file intended for display on a Web
browser page.
10
Copyright © Terry Felke-Morris 11
X/HTML vs HTML
๏ XHTML (eXtensible) is an extension of HTML (compatible with
XML)
๏ Essentially the same, but with more rules
๏ Works better across platforms
๏ Write in XHTML (we will carry through the rules)
Minor differences, some tags not used
12
Copyright © Terry Felke-Morris 13
HTML ELEMENTS
18
DOCUMENT TYPE DEFINITION
HTML5 DTD
<!DOCTYPE html>
<blockquote>
…text goes here…
</blockquote>
Block Display – Configures empty space above and below
BROWSER DISPLAY:
32
Copyright © Terry Felke-Morris
HTML LISTS
Unordered List
Ordered List
Description List
formerly called a definition list
<ul>
Contains the unordered list
<li>
Contains an item in the list
<ul>
<li>TCP</li>
<li>IP</li>
<li>HTTP</li>
<li>FTP</li>
</ul>
<ol>
<li>Apply to school</li>
<li>Register for course</li>
<li>Pay tuition</li>
<li>Attend course</li>
</ol>
<dl>
Contains the description list
<dt>
Contains a term/phrase/sentence
Configures empty space above and below the text
<dd>
Contains a description of the term/phrase/sentence
o Indents the text
o Configures empty space above and below the text
<a href="http://yahoo.com">Yahoo</a>
Relative link
Link to pages on your own site
<a href="index.htm">Home</a>
46
E-MAIL HYPERLINK
Automatically launch the default mail program
configured for the browser
<a href=“mailto:me@gmail.com”>me@gmail.com</a>
52
Fill in the Missing Code.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Door County Wildflowers</title>
<meta charset="utf-8">
</head>
<body>
<header>
<_>Door County Wild Flowers<_>
</header>
<main>
<dl>
<_>Trillium<_>
<_>This white flower blooms from April through June in
wooded areas.<_>
<_>Lady Slipper<_>
<_> This yellow orchid blooms in June in wooded
areas.<_>
<_>
</main>
</body>
</html> 53
Find the Error
<!DOCTYPE html>
<html lang="en">
<head>
<title>Find the Error</title>
<meta charset="utf-8">
</head>
<body>
<h1>My Web Page<h1>
<p>This is a sentence on my web page.</p>
</body>
</html>
54