WEB TECHNOLOGIES - ITC 351 Lecture - 3
WEB TECHNOLOGIES - ITC 351 Lecture - 3
ITC 351
Web Technologies.
Lecture Three
Outline of Instruction
1. Overview of HTML
1
2/8/2021
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
document.
– Use entities to represent reserved and special
characters in HTML document
– Specify colors using RGB, HEX, and HSL values
– Produce a working HTML5 document and preview it
in a web browser.
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr.
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.
2
2/8/2021
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.
3
2/8/2021
4
2/8/2021
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
URL.
• The syntax for adding attributes is as follows:
<element attribute-name=“value”>Content</element>
<element attribute-name=“value” />
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">
-->
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr.
5
2/8/2021
6
2/8/2021
7
2/8/2021
8
2/8/2021
9
2/8/2021
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
2/8/2021
11
2/8/2021
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.
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr.
12
2/8/2021
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 charset=“UTF-8” />
</head>
<body>
</body>
</html>
13
2/8/2021
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.
Hi Pals!. HTML is not really difficult to learn. All you need is a simple
text editor and a web browser and you are gone. The most
important thing here is to learn and understand the various tags
that are used within the body segment of the entire document
structure. Any way, thanks to my Web Technologies lecturer!
Web Technologies Lecture Slides by: Maxwell Dorgbefu Jnr.
14
2/8/2021
Practice Session - 2
4. Save the file as firstpage.html on your desktop.
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 the 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.
15
2/8/2021
2. Lists in HTML.
16