HTML Programming: By: Dr. Noor Dayana Abd Halim
HTML Programming: By: Dr. Noor Dayana Abd Halim
<html>
<head>
<title>Title of page</title>
</head>
<body>This is my first homepage.
<b>This text is bold</b>
</body>
</html>
HTML Code
LINE BREAK
Use the <br> tag if you want a line break
(a new line) without starting a new paragraph
This is a paragraph
<br>This is another paragraph
PARAGRAPH
Paragraphs are defined with the <p> tag.
<p>This is a paragraph</p>
<p>This is another paragraph</p>
HTML Code
PARAGRAPH: center, left, right, justify
<body>
<P align=center>
This is a centered paragraph.
</P>
</body>
HTML Code
FONT : color, type of font
<body>
<center>
untuk set center
<P>
</font color=blue>
xxxxxx
</font>
</body>
</center>
HTML Code
BACKGROUND & TEXT COLOR
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
HTML Code
LIST : UNORDERED LIST
An unordered list starts with the <ul> tag. Each list item
starts with the <li> tag.
The list items are marked with bullets (typically small
black circles).
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
HTML Code
LIST : ORDERED LIST
An ordered list starts with the <ol> tag. Each list item
starts with the <li> tag.
The list items are marked with numbers.
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
Lets Try This
<html>
<head>
<! Tajuk Dokumen -->
<title>Tajuk</title>
</head>
<body>
<! Isi Kandungan -->
<h1>Tajuk Pertama</h1>
<p>Tulis sesuatu berkenaan diri anda</p>
<h2>Tajuk Kedua</h2>
<!-- seterusnya -->
</body>
</html>
Other resources
HTML Tutorial
http://www.w3schools.com/html/default.asp