Академический Документы
Профессиональный Документы
Культура Документы
HTML ELEMENTS
PROF. DAVID ROSSITER
1/22
2/22
Sections
<section>
Lists
Comments
3/22
4/22
HTML HEADINGS
<h1> <h2> <h3> . . . <h6> are used for headings
Browsers show <h1> bigger than <h2>
<h2> bigger than <h3>, and so on
People often 'cheat' by using these elements
to easily generate different size text
5/22
HEADING TAGS
A simple example of heading elements
<h1>IntroductiontoSomething</h1>
<h2>AnAreaofSomething</h2>
<h3>ASubArea...</h3>
<p>Thissubareaisfun!Let'sdiscussithereindetail.</p>
6/22
Introductionto
Something
AnAreaofSomething
ASubArea...
Thissubareaisfun!Let'sdiscussitherein
detail.
7/22
LOOKS BORING?
The elements are shown using the default browser style
We can apply a different style to make things look better
Let's apply the style used by this presentation
Later we will look at style in depth
8/22
INTRODUCTION TO SOMETHING
AN AREA OF SOMETHING
A SUB-AREA...
This sub-area is fun! Let's discuss it here in detail.
9/22
USING SECTION
<section> is used to indicate a section
<section>
<h1>IntroductiontoSomething</h1>
<p>Let'sdiscusssomethinghere!</p>
</section>
10/22
IntroductiontoSomething
Let'sdiscusssomethinghere!
11/22
12/22
Thefirstitem
Theseconditem...
Yes...thethirditem!
13/22
14/22
1. Thefirstitem
2. Theseconditem...
3. Yes...thethirditem!
15/22
16/22
1999. InthisyearIwasborn...
2000. InthisyearIlearnedtowalk...
2001. InthisyearIlearnedto
program...
2002. InthisyearIlearnedSPA
techniques...
17/22
18/22
2002. InthisyearIlearnedSPA
techniques...
2001. InthisyearIlearnedto
program...
2000. InthisyearIlearnedtowalk...
1999. InthisyearIwasborn...
19/22
USING A LETTER
Add type="A" to use a letter
<oltype="A">
<li>isfor'Anchor'...</li>
<li>isfor'Body'...</li>
<li>isfor'Cdata'...</li>
<li>isfor'Div'...</li>
</ol>
20/22
A.
B.
C.
D.
isfor'Anchor'...
isfor'Body'...
isfor'Cdata'...
isfor'Div'...
21/22
COMMENTS
A comment looks like this: <!a comment>
<html>
<!Thisisasimpledemonstrationofusingcommentsinawebpage>
<head>
<metaname="author"content="DavidRossiter">
<!Ican'tbelievehowamazingthatguyreallyis!>
</head>
<body>
<!Here'smysimple'todo'list>
<p>ItemsIneedtofixinmybusiness:</p>
<ol><li>Thepeople</li>
<li>Theprocess</li>
<li>Theproduct</li></ol>
<!That'salotofthingstofix!Ibettergetstartedsoon.>
</body>
</html>