2. Introduction to HTML
2. Introduction to HTML
(Unit 2)
Ogwal-Awio Kenneth
[email protected]
2025
Unit learning outcomes
• By the end of this unit, students should be able to:
Explain HTML as programming language
Describe the timeline of HTML
Explain the use of text editors
Explain the features of HTML tags
Explain the types of HTML tags
Explain the concept of nested elements
Notepad comes preinstalled with Windows OS, and TextEdit with Mac OS.
HTML Basics to
Introduction - Ogwal-Awio K, 2025K.
CSS - Ogwal-Awio 4
12
Key features of HTML tags
• Each tag is surrounded by angle brackets
• Tags are composed of clear text
• Tags are case insensitive
• It ignores white space
• It is platform independent
• Each tag can be nested inside other tags
• The <BODY> element consist all the content that the user will view on
the web browser.
• The title of a web page also helps determine its ranking by certain
search engines
The title text for a webpage should be chosen carefully, contextually.
The title will also appear on Favorites lists, History lists, and Bookmark
lists to identify your page
structure <HEAD>
<TITLE> Example </TITLE>
• All Web pages should contain a </HEAD>
pair of <HTML>, <HEAD>, <BODY>
<TITLE>, and <BODY> tags This is where you would include the text and
images on your Web page.
</BODY>
</HTML>
Although the end ended tags are formally optional, many browsers will
mess up the formatting of the table if you omit the end tags.
HTML Basics - Ogwal-Awio K, 2025 20
Open tags – HTML Horizontal Rule <HR>
• The <BR> enforces display of subsequent text on a new line.
Search engines use these headings to index the structure and content
of web pages.
• Examples:
<H1>Lira University</H1>
<H2>Faculty of Computing and Information Sciences</H2>
<H3>P.O Box 1035, Lira - Uganda</H3>
• Example:
<BR>
<HR>
HTML
HTMLAttributes
Basics - Ogwal-Awio
- Ogwal-Awio
K,Kenneth
2025 33
HTML Special Characters…
• Copyright (©) • Greater than (>)
o© o>
• Quotation • Less than (<)
mark (“) o<
o"
• Space
o
• Ampersand (&)
o&
HTML
HTMLAttributes
Basics - Ogwal-Awio
- Ogwal-Awio
K,Kenneth
2025 34
HTML Accent Marks
• Accent marks in HTML also use the escape symbol.
• Like the special characters accent marks start off with an ampersand
& and then is followed by a letter.
If the letter is uppercase then the symbol is going to be uppercase, and
If the symbol is lowercase then the symbol is going to be lowercase.
HTML
HTMLAttributes
Basics - Ogwal-Awio
- Ogwal-Awio
K,Kenneth
2025 35
HTML Accent Marks
mbol HTML Code Symbol HTML Code Symbol HTML Code Symbol HTML Code
û û ü ü
HTML
HTMLAttributes
Basics - Ogwal-Awio
- Ogwal-Awio
K,Kenneth
2025 36
HTML timeline
Version Year
HTML (i.e. Original HTML) 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 2000
HTML5 2014
• Others include:
• AUDIO • EMAIL • SECTION
• VIDEO • FIGCAPTION • TIME
• ARTICLE • FIGURE • CANVAS
• ASIDE • KEYGEN • MAIN
• AUTOFOCUS • MARK • ARTICLE
• CANVAS • METER • ETC.
• DETAILS • NAV
• DATALIST • PROGRESS
HTML Basics - Ogwal-Awio K, 2025 29
Something to keep you busy
• Read about:
1. HTML validator
2. The <BLOCKQUOTE> tag – used to describe long
Deadline:
Submit your work to [email protected] latest at 2359 hours on Sunday 2nd
March 2025.