• HTML <HTML></HTML>
• Head <HEAD></HEAD>
• Title <TITLE></TITLE>
• Body <BODY></BODY>
Basic Tags…
They are nested in this way:
<HTML>
<HEAD>
<TITLE> title </TITLE>
other header fields
</HEAD>
<BODY>
body
</BODY>
</HTML>
Our first webpage
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
Hi there!!!
</BODY>
</HTML>
Save it as hello.html
Hands on….
• Start Notepad
• Create an HTML document with all four basic
tags
• HTML
• HEAD
• TITLE
• BODY
• Save as an html document, e.g. hello.html
• To display: Double click or open in a web
browser
• To edit / modify: Open with Notepad
HTML Tags: Document
Attributes
Background color
• <body bgcolor="#000000">
• <body bgcolor="rgb(0,0,0)">
• <body bgcolor="black">
Background image
• <body background="anubhav.jpg">
HTML Tags: Heading
HTML Tags: Paragraph
Paragraphs are defined with the <p> tag.
• <p>This is a paragraph</p>
• <p>This is another paragraph</p>