ICT 233 Lecture - 3
ICT 233 Lecture - 3
ICT233
Web Technologies and
Design.
Lecture Three
1
17-Feb-24
Today’s Lecture
1.0 2.0
Quick HTML
Overview Elements
of HTML and Tags
5.0
Practice:
Our First
Web Page
in HTML 4.0
3.0
Color
HTML
Coding
Document
and HTML
Structure
Entities
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr. 3
Lecture Objectives
• By the end of the lecture, the student will
be able to:
– Briefly explain HTML.
– Describe HTML Tags, Elements and Attributes.
– Identify and explain the structure of HTML5
documents.
– Specify colors using RGB, HEX, and HSL values.
– Use entities to represent reserved and special
characters in HTML documents.
– Produce a working HTML5 document and
preview it in a web browser of your choice.
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr.
2
17-Feb-24
Overview of HTML - 1
• HTML stands for HyperText Markup
Language.
• The idea behind HTML was born at the
European Laboratory for High Energy Physics
(CERN) in Geneva, Switzerland, as early as
1989 .
• A year later, the World Wide Web project was
also started there.
• The purpose was to make it easier for
scientists at different universities and
research laboratories to gain access to
research documents of their colleagues .
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr.
Overview of HTML - 2
• An HTML document is simply a text file(may
also contain images, video or audio) that
contains the information you want to publish
and the appropriate markup instructions
indicating how the browser should structure
or present the document.
• Markup elements are made up of a start tag,
such as <p>, and typically, though not always,
an end tag, which is indicated by a forward
slash within the tag, such as </p>.
• The tag pair should fully enclose any content
to be affected by the element, including text
and other HTML markups.
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr.
3
17-Feb-24
4
17-Feb-24
Attributes
• Attributes are instructions that clarify or modify an element.
• Attributes allow us to add extra information to an element.
• The img element for example requires the src (short for
“source”) attribute to provide the location of the image via its
path or URL.
• The syntax for adding attributes is as follows:
<element name attribute-name=“value”>Content</element name>
<element name attribute-name=“value” />
5
17-Feb-24
HTML Comments
• Just as comments are used in programming to
document codes, HTML comments are not
displayed by the browser, but they can help
document your HTML.
• With comments you can place notifications
and reminders in your HTML document.
• The syntax for HTML comments is given
below:
• <!-- Your comment goes here -->
e.g <!-- This is a comment in HTML -->
<!-- Do not display this at the moment
<img src="pic_mountain.jpg" alt="Mountain">
-->
6
17-Feb-24
7
17-Feb-24
8
17-Feb-24
9
17-Feb-24
Color Codes - 1
• Colors are set using color names, HEX,
RGB, HSL, RGBA, and HSLA codes.
• There are several resources available on
the Internet that chart colors and their
hexadecimal values.
• Check this site for some details:
• https://www.w3schools.com/Html/html_colors.asp
10
17-Feb-24
11
17-Feb-24
12
17-Feb-24
<style>
div{
background-color: #9d00ff;
color: white;
}
span{
background-color: hsl(277, 100%, 50%);
color: rgb(255,255,255);
}
</style>
HTML Entities
• HTML entities define a way of representing
reserved HTML characters and special
characters not present on your keyboard.
• For instance if you use the less than (<) or
greater than (>) signs in your text, the
browser might mix them with tags.
• Entities in HTML documents are represented
as: &entity_name; or &#entity_number ;
• E.g < or < for the less than(<) symbol.
13
17-Feb-24
HTML Entities
Result Description Entity Name Entity Number
non-breaking space  
< less than < <
> greater than > >
& ampersand & &
¢ cent ¢ ¢
£ pound £ £
¥ yen ¥ ¥
€ euro € €
© copyright © ©
® registered trademark ® ®
Source: http://www.w3schools.com/html/html_entities.asp
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr.
<!DOCTYPE html>
<html lang=“en”>
<head>
<title> My First Web Page</title>
<meta name= “viewport” content= “width=device-width,
initial-scale=1.0”>
<meta charset=“UTF-8”>
</head>
<body>
</body>
</html>
14
17-Feb-24
Practice Session - 1
1. Launch a text editor of your choice.
2. Type the required HTML document structure.
3. Type the text below in the body segment of
the document structure produced in step 2.
15
17-Feb-24
Practice Session - 2
4. Save the file as firstpage.html a folder you
created earlier.
5. Double click on the ‘firstpage.html’ to
preview it in your default browser.
6. Go back to the file ‘firstpage.html’ and
right-click on it and then select edit
with…..and choose the text editor you
used.
7. Make changes to the file, save it and
preview the edited version in your chosen
browser.
Focus Questions?
1. Differentiate between HTML tags and
HTML elements with examples.
2. Produce a sample HTML page that shows
your curriculum vitae using a text editor
of your choice and preview the file in a
browser of your choice.
3. Find out and read on the evolution of
HTML from HTML 1.1 to HTML5.
4. List and explain the new elements in
HTML 5.
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr.
16
17-Feb-24
2. Lists in HTML.
17