V. Understanding The Structure and Logic of HTML
V. Understanding The Structure and Logic of HTML
V. Understanding The Structure and Logic of HTML
1. General Introduction
2. Basic Structure of HTML
3. HTML Document Font Attributes
and Tags
Introduction
• What is HTML
– HyperText Markup Language
– It is the coding system used to make web pages or
sometimes called “language of web pages”.
– HTML is not a programming language, it is a
markup language
– A markup language is a set of markup tags
HTML uses markup tags to describe web
pages
• HTML tag tells the browser where and how to
present the text, graphic images, links and
other web pages components.
• The way the pages are encoded is with a
Markup called HTML.
• Web Pages are used to convey data or
information. The data is your message that is
considered the body of HTML document. The
text and content are the most important parts
in a web page.
• Web page is simply a text file ending with
suffix .html or .htm in its raw form. It is a
simple text that contains HTML tags, with no
background, no pictures, or animations that
has no color, life and vitality.
• <html></html>
• <head></head>
• <title></title>
• <body></body>
How to start typing the HTML doc.?
• Click Programs
• Click Accessories
• Click Notepad
• Type the HTML program
How to save?
• Click File from menu or simply click the
save button
• Type the filename and use the
extension .html or .htm
The Basic Structure of an HTML document
<html>
<head>
<title> MY FIRST WEB PAGE </title>
</head>
<body>
Very little is needed to make a happy life. It is
all within your self, in your way of thinking.
</body>
</html>
Heading
• To insert a heading to your document type it in
the body section
– <h1></h1>
– <h2></h2>
– <h3></h3>
– <h4></h4>
– <h5></h5>
– <h6> </h6>
Paragraph, Text Break, and Formatting Text
<p>
<dd> All we are is the result of what we have thought. The
mind is everything. What we think we become.
</p>
• Text Break tag: (indicates the end of a line of text)
– <br>
<p>
Alleluia <br>
Blessed is the who fears the Lord<br>
Who greatly delights in His commands<br>
His children will be powerful on earth<br>
The upright’s offspring will be pleased.</p>
• Formatting Text: to apply a font, font color,
and font size
• <font> </font>
• <font color=red size=5 face=“arial”> words,
sentence, or paragraph </font>
Font style and effects
• <b> words, sentence, paragraph </b> bold
• <u> words, sentence, paragraph </u> underline
• <i> words, sentence, paragraph </i> italic
• <s> words, sentence, paragraph </s> strike
through
• <sub> </sub> subscript
• <sup></sup> superscript
• <e> </e> emphasis
Alignment, Horizontal ruled line, Background
color
• Paragraph Alignment – paragraph can be positioned
on the left, right, or center of a browsers display window.
<a href="http://www.w3schools.com/">Visit
W3Schools!
</a>
An image as a link
<html>
<body>
<p>
You can also use an image as a link:
<a href="lastpage.htm">
<img border="0" src="buttonnext.gif" width="65"
height="38">
</a>
</p>
</body>
</html>
An image as a link
<html>
<body>
</body>
</html>