Ch2 MarkupLanguages Updated
Ch2 MarkupLanguages Updated
Web Development
Markup Languages:
XHTML 1.0
HTML “Hello World!”
Documen
t Type
Declaratio
n
Docume
nt
Instance
v54
I I
wine
Misspelled
element
name o is
Belong
s here
title
character data
title
character data
D
i
s
p
l
a
y
e
d
h
e
r Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson’s slides 16
Unrecognized HTML Elements
Two types:
Character reference specifies a character by its
Unicode code point
For <, use < or < or <
Entity reference specifies a character by an
HTML- defined name
For <, use <
Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson’s slides 19
HTML References
+
space
displays as
two spaces
et
0,30pin
Use a phrase element that specifies semantics of
text (not style directly):
Use a font style element
Not recommended, but frequently used
Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson’s slides 29
Common HTML Elements
1
Images can be embedded using img
element I
e
Attributes:
src: URL of image file (required). Browser
generates a GET request to this URL.
alt: text description of image (required)
height / width: dimensions of area that image
on
will occupy (recommended)
Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson’s slides 34
Common HTML Elements
-
sina me - em es ij
if
l
Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson’s slides 38
Lists
Unordered
List
List
1.2.3 Items
Ordered
List
a
De\nition
List
Rule
s
Border
s Rule
s
Table
Row
Table
Data
Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson’s slides 42
Tables
I
Table
Header
cellspacin cellpaddin
g g
cellspacin cellpaddin
g g
cellspacin cellpaddin
g g
1/3,2/3
split
am
input is an empty
element
Radio buttons: at
most one can be
selected at a time.
Represents string:
>50
Men
u
Mozilla Composer
Microsoft FrontPage
Macromedia Dreamweaver
Etc.
Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson’s slides 86