IS221 Week2 Lecture
IS221 Week2 Lecture
Agenda Objective
• Review HTML5 syntax • After completing this session, you will become
• Explore XHTML syntax familiar with using XHTML for creating Web
• Compare and contrast HTML5 and XHTML pages
syntax • Compare and contrast XHTML and HTML5
syntax
3 4
5 6
1
2/29/2024
7 8
9 10
11 12
2
2/29/2024
13 14
• http://www.angelfire.com/super/badwebs/
3
2/29/2024
3.19 3.20
IS221 Web Applications Development
The Name Space Tag (1) The Name Space Tag (2)
• For anyone to create a set of markup elements, DTD 1.define
the DTD is required to define elements and Elements and attribute names
attribute names that make up the markup
language. You
3.reference
• These elements and attribute names are stored in 2.store
a namespace that is unique to the DTD. Your document
Name conflict
This XML carries HTML table information: Name conflict – solve using Prefix
<table> This XML carries HTML table, and a piece of furniture:
<tr>
<td>Apples</td> <h:table>
<td>Bananas</td> <h:tr>
</tr> <h:td>Apples</h:td>
</table> <h:td>Bananas</h:td>
</h:tr>
</h:table>
This XML carries information about a table (a piece of
furniture):
<f:table>
<table>
<name>African Coffee Table</name> <f:name>African Coffee Table</f:name>
<width>80</width> <f:width>80</f:width>
<length>120</length> <f:length>120</f:length>
</table> </f:table>
http://www.w3schools.com/xml/xml_namespaces.asp http://www.w3schools.com/xml/xml_namespaces.asp
3.23 3.24
4
2/29/2024
3.25
IS221 Web Applications Development
3.28
3.29 3.30
IS221 Web Applications Development IS221 Web Applications Development
5
2/29/2024
3.31 3.32
IS221 Web Applications Development
6
2/29/2024
Unordered List
Type Attribute
• Unordered list begin with <ul> and close
with </ul>
• Each item uses standard list item <li> tag <h2> Shopping List </h2>
<ul type=“disc”>
• Type attribute – change shape of the bullet <li> Buy apples </li>
for each item – disc, square or circle <ul type=“circle”>
<h2> Shopping List </h2> <li> Buy oranges </li>
<ul> <li> Buy pears </li>
<li> Buy apples </li> </ul>
<li> Buy oranges </li> <li> Buy grapes </li>
<li> Buy pears </li> </ul>
<li> Buy grapes </li>
</ul>
IS221 Web Applications
5.37 5.38
Development
7
2/29/2024
<body>
<div class = "lecture">This lecture stresses that for any page
it is the <span class="stress">Content, Structure, Appearance,
Behaviour</span> that should dominate. <br />
It notes the use of <span class="stress"> elements and named
elements </span>to emphasise the structure with a view to
controlling the appearance later.
</div>
</body>
8
2/29/2024