Modul HTML Tetum
Modul HTML Tetum
I. Conyesemento ba HTML
1.1 Definisaun HTML
HTML habadak husi Hyper Text Markup Language. Dokuemntu HTML nudar
file text ida nebe bele halo ho kualker editor text. Dokumento nee konyesidu
hanesan web page no hamosu husi web browser. Dokumento nee
geralmente iha informasaun no mos aplikasaun iha internet.
1.2 Definisaun Tag
Atu fo sinal ba element hotu nebe iha dokumento html ita uja Tag.
Geralmente element ida iha dokumentu html bele hakerek hanesan tuir mai
nee:
<narantag>..</narantag>
Ezemplu:
<h1>.</h1>
1. Elemen HTML
HTML iha criteria hodi hakerek mak hanesan tuir mai nee:
<html>
<head> ..informasaun konaba dokumentu HTML..</head>
<body>
..informasaun nebe sei mosu iha pajina web .
</body>
<html>
Informasaun:
a. Cada pajina html sei comesa ho tag <html> no sei hakotu ho tag
</html>.
b. Tag <head> no </head> hanesan informasaun konaba pajina web
nian.
c. Tag <body> no </body> nahesan informasaun nebe sei mosu iha pajina
web nia laran.
2. Ezemplu 1 Conyesementu HTML
i. Cria dokumentu html foun uja Adove Dreamweaver ho maneira hanesan:
loke programa Dreamweaver, klik iha menu File New hili Page Type
HTML.
Informsaun :
- Antes atu hakerek script, diak liu hapaga uluk script nebe otomatikamente iha
tiha ona.
- Halo tuir maneira nebe temi iha leten antes atu haketek script html foun. Ba
ezersicio tuir mai sei la esplika tan konaba oinsa halo dokumentu html foun.
iii. Tuir mai loke browser no bele hare nia resultado ou hanehan button F12:
Preparado pelo Frederico Soares Cabral, S.Kom
Dosente da Dep. da Informtica, FECT, UNTL
Ezemplu:
<html>
<head>
<title> Topiku Pajina Web</title>
</head>
</html>
4. Tag Body
Hanesan secsaun infortante iha dokumento web nia laran nebe sei hamosu
informasaun hotu nebe iha.
Ezemplu: 4_body.html
<html>
<head>
<title>Ezersicio ba Body</title>
</head>
<body>
Informasaun nebe sei mosu iha pajina web
</body>
</html>
Screenshot:
5. Tag Paragraf
Tag ida nee sei uja hodi hakerek informasaun ba iha paragraph. Cada
paragraph sei hahu ho tag <p> no sei hakotu ho tag </p>.
Ezemplu: 5_paragrafu.html
<html>
<head>
<title> Halo Paragraf </title>
</head>
<body>
<p>Nee hanesan paragraf ida. Nee hanesan paragraf ida. Nee
hanesan paragraf ida. Nee hanesan paragraf ida. Nee hanesan
paragraf ida. Nee hanesan paragraf ida. Nee hanesan paragraf ida.
</p>
<p>Nee hanesan paragraf ida. Nee hanesan paragraf ida. Nee
hanesan paragraf ida. Nee hanesan paragraf ida. Nee hanesan
paragraf ida. Nee hanesan paragraf ida. Nee hanesan paragraf ida.
</p>
</body>
</html>
Screenshot:
Nb: Tag <br> lahanesan ho tag sira seluk nebe iha tag ikus (end tag).
Screenshot:
7. Tag Heading
Tag ida nee geralmente uja hodi hakerek topiku husi informasaun ida. Iha 6
modelu heading iha html hanesan <h1>, <h2>, <h3>, <h4>, <h5> dan <h6>.
Ezemplu: 7_Heading.html
<html>
<head>
<title> Kria Heading </title>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</body>
</html>
Screenshot:
Screenshot:
9. Regua (hr)
Sebuah garis dapat disisipkan dalam dokumen web, umumnya digunakan
sebagai pemisah antar bagian atau peragraf. Tag <hr> disisipkan pada
tempat garis akan disisipkan.
Ezemplu: 9_regua.html
<html>
<head>
<title> Kria Regua </title>
</head>
<body>
<p>Tag hr uja hodi identifika regua <i>(pengaris)</i> </p>
<hr>
<h1 align=left>Heading 1 iha sorin karuk</h1>
<hr>
<h2 align=center>Heading 2 iha klaran</h2>
<hr>
<h3 align=right>Heading 3 iha sorin los</h3>
</body>
</html>
Preparado pelo Frederico Soares Cabral, S.Kom
Dosente da Dep. da Informtica, FECT, UNTL
Screenshot:
Screenshot:
neebe
ita
infrrenta
iha
ita
nia
moris
lor-loron.
Husi
<html>
<head>
<title> Halo Link </title>
</head>
<body>
<a href="ezersicio_12.html">Link ba pajina ezersicio_12.html</a>
</body>
</html>
Screenshot:
2. LIST HTML
List hanesan modelu nebe geralmente uja hodi mensiona buatruma.
-
Repete fali etapa iha lete hodi hakerek item tuir mai.
Atu halo lis nebe la uja numeru ou unordered list, tag <ol> sei troka ba <ul>
Ezemplu: list.html
<html>
<head>
<title>Kria List</title>
</head>
<body>
Ezemplu Ordered List ou list uja numeru
<ol>
<li>Kafe</li>
<li>Sha</li>
<li>Susuben</li>
</ol>
<br />
Screenshot:
IV : IMAGE / GAMBAR
4.1 Hatama Imagen
Atu hatama imagen/foto tuma ba iha pajina web, sei uja tag <img
src=file_imagen>. File_imagen hanesan URL husi file imagen nian.
Ezemplu: imagen.html
<html>
<head>
<title>hatama imagen ba pajina web</title>
</head>
<body>
Imagen
<img src="Forest.jpg" width="400px" height="300px">
</body>
</html>
screenshot:
src="Forest.jpg"
width="100px"
height="100px"
valign="middle">
imagen</p>
<p>Posisaun liafuan iha okon
<img src="Forest.jpg" width="100px" height="100px"> imagen</p>
</body>
</html>
Screenshot:
src="Forest.jpg"
width="100px"
height="80px"
align="left">Nee
Screenshot:
width="150px"
width="150px"
</body>
</html>
Screenshot:
</tr>
</table>
</body>
</html>
Screenshot:
</tr>
<tr>
<td>1.</td>
<td>Jaime Soares</td>
<td>Perumnas</td>
</tr>
<tr>
<td>2.</td>
<td>Joel Dillak</td>
<td>Lurumata</td>
</tr>
<tr>
<td>3.</td>
<td>Eny Jeronimo</td>
<td>Delta II</td>
</tr>
</table>
</body>
</html>
Screenshot:
</tr>
<tr>
<th rowspan="2">Telefone</th>
<td>728393</td>
</tr>
<tr>
<td>378473</td>
</tr>
</table>
</body>
</html>
Screenshot:
<th>Naran</th>
<th>Hela Fatin</th>
</tr>
<tr>
<td>1.</td>
<td>Jaime Soares</td>
<td>Perumnas</td>
</tr>
<tr>
<td>2.</td>
<td>Joel Dillak</td>
<td>Lurumata</td>
</tr>
<tr>
<td>3.</td>
<td>Eny Jeronimo</td>
<td>Delta II</td>
</tr>
</body>
</html>
Screenshot:
<head>
<title>Background Sel Tabela</title>
</head>
<body>
<h3>Backgorund Sel Tabel </h3>
<table border="1">
<tr bgcolor="#006600">
<th>No</th>
<th>Naran</th>
<th>Hela Fatin</th>
</tr>
<tr bgcolor="#333399">
<td>1.</td>
<td>Jaime Soares</td>
<td bgcolor="#00FF66">Perumnas</td>
</tr>
<tr bgcolor="#333399">
<td bgcolor="#006666">2.</td>
<td>Joel Dillak</td>
<td>Lurumata</td>
</tr>
<tr bgcolor="#333399">
<td>3.</td>
<td bgcolor="#666600">Eny Jeronimo</td>
<td>Delta II</td>
</tr>
</body>
</html>
Screenshot:
<td>3313060</td></tr>
<tr><td>3.</td>
<td>Joel Dillak</td>
<td colspan="2">7252222</td></tr>
</table>
<h3>Determina tabela nia luan ho valor Percento (%)</h3>
<table border="1" width="50%">
<tr><th>Naran</th>
<td>Neia Lemos</td></tr>
<tr><th rowspan="2">Telefone</th>
<td>728393</td></tr>
<tr><td>378473</td></tr>
<tr><th rowspan="2">Hela Fatin</th>
<td>Vila Verde</td></tr>
<tr><td>Bauoli-Baucau</td></tr>
</table>
</body>
</html>
Screenshot:
<html>
<head>
<title>Colspas ho Rowspan</title>
</head>
<body>
<h3>Halo colspan </h3>
<table border="1" width="400px">
<tr> <th align="center">No</th>
<th align="left">Naran</th>
<th colspan="2" align="center">No. Telefone</th></tr>
<tr> <td align="center">1.</td>
<td align="left">Fredy Soares</td>
<td align="right">7812754</td>
<td align="right">3123322</td></tr>
<tr> <td align="center">2.</td>
<td align="left">Jaime Soares</td>
<td align="right">7407649</td>
<td align="right">3313060</td></tr>
<tr> <td align="center">3.</td>
<td align="left">Joel Dillak</td>
<td colspan="2" align="center">7252222</td></tr>
</table>
<h3>Halo rowspan</h3>
<table border="1" width="50%">
<tr> <th align="center">Naran</th>
<td align="left">Neia Lemos</td></tr>
<tr> <th rowspan="2" valign="middle">Telefone</th>
<td align="right">728393</td></tr>
<tr> <td align="right">378473</td></tr>
<tr> <th rowspan="2" valign="top">Hela fatin</th>
<td align="left">Vila Verde</td></tr>
<tr> <td>Bauoli-Baucau</td></tr>
</table>
</body>
</html>
Screenshot:
Atributu Action nudar fatin determina URL nebe uja hodi proesa ba
field input form.
6.1 Mehtod
Atributu nee uja hodi determina oinsa input ruma nebe mai husi form bele
haruka ba iha servedor.
6.2 Modelo Input Form
type="text"
name="naran_input"
size="numero"
maxlength="numero">.
Tag Radio
<input type="radio" name="radio" value="radio" /> Kriteria 1
<input type="radio" name="radio" value="radio" /> Kriteria 2
<input type="radio" name="radio" value="radio" /> Kriteria 3
Tag Checkbox
<input name="" type="checkbox"/> Kriteria 1
<input name="" type="checkbox"/> Kriteria 2
<input name="" type="checkbox"/> Kriteria 3
Tag Select
<select name="select">
<option> Kriteria 1</option>
<option> Kriteria 2</option>
<option> Kriteria 3</option>
</select>
Tag Button
<input type="submit" />
<input type="reset" />
Tag Text Area
<textarea name="naran_input" cols="40" rows="5"></textarea>
Screenshot:
<html>
<head>
<title>Kria Button Radio</title>
</head>
<body>
<h3>Kria Button Radio</h3>
<form>
<input type="radio" name="sex" checked>Mane<br>
<input type="radio" name="sex" />Feto
</form>
</body>
</html>
Screenshot:
6.3.3 Checkbox
File : checkbox.html
<html>
<head>
<title>Kria Checkbox</title>
</head>
<body>
<h3>Kria Checkbox</h3>
<form>
<input type="checkbox" name="tomate">Tomate<br>
<input type="checkbox" name="apel" />Apel
</form>
</body>
</html>
Screenshot
6.3.4 List
File : list.html
<html>
<head>
<title>Kria DropDwon List</title>
</head>
<body>
<h3>Kria DropDwon List</h3>
<strong>Naran Aifuan</strong>
<form>
<select name="aifuan">
<option>Apel</option>
<option>Has</option>
<option>Nuu</option>
</select>
</form>
</body>
</html>
Screenshot
Screenshot:
Preparado pelo Frederico Soares Cabral, S.Kom
Dosente da Dep. da Informtica, FECT, UNTL
6.3.6 Button
File : button.html
<html>
<head>
<title>Halo Text Area</title>
</head>
<body>
<h3>Halo Text Area</h3>
<strong>Komentario</strong>
<form>
<input type="button" value="Button 1"><br><br>
<input type="submit" value="Save"><input type="reset">
</form>
</body>
</html>
Screenshot:
6.4
<tr>
<td colspan="2"></td>
<td><input type="submit" value="Haruka"><input type="reset"></td>
</tr>
</table>
</form>
</body>
</html>
Screenshot
MENU
Content
FOOTER
Atu fahe layout hanesan imajen nebe iha leten it abele halo uja tabela,
hanesan tuir mai nee:
File : layout_tabela.html
<html>
<head>
<title>Halo Layout Uja Tabela</title>
</head>
<body>
<table width="80%" align="center" border="0">
<tr bgcolor="#669933">
<td colspan="2" align="center" width="80%"
height="80px"><h1>HEADER</h1></td>
</tr>
<tr>
<td width="20%" bgcolor="#99CC66"
align="center"><h1>Menu</h1></td>
<td width="60%" bgcolor="#CCCC99" align="center"
valign="middle"><h1>Content</h1>
<h3>Ezemplu halo layout uja tabela </h3></td>
</tr>
<tr>
<td colspan="2" height="50px" align="center"
bgcolor="#FF9933"><h2>FOOTER</h2></td>
</tr>
</table>
</body>
</html>
Screenshot: