Module 1 Introduction To HTML
Module 1 Introduction To HTML
Technical-
Vocational
Livelihood
Information and
Communication Technology
(ICT)
Quarter 1 – Module 1:
Introduction to
Hypertext Markup Language 5
(HMTL 5)
Republic Act 8293, section 176 states that: No copyright shall subsist in any work
of the Government of the Philippines. However, prior approval of the government agency or
office wherein the work is created shall be necessary for exploitation of such work for profit.
Such agency or office may, among other things, impose as a condition the payment of
royalties.
Borrowed materials (i.e., songs, stories, poems, pictures, photos, brand names,
trademarks, etc.) included in this module are owned by their respective copyright holders.
Every effort has been exerted to locate and seek permission to use these materials from
their respective copyright owners. The publisher and authors do not represent nor claim
ownership over them.
12
Technical-
Vocational
Livelihood
Information and
Communication Technology
(ICT)
Quarter 1 – Module 1:
Introduction to
Hypertext Markup Language
(HMTL) 5
Key Message
For Educators:
You are reading the TVL ICT Programming .Net Technology - Grade 12: First
Semester Midterm Period an Alternative Delivery Mode (ADM) Module on “Introduction
to Hypertext Markup Language 5 (HTML 5)” as written and found in the K-12 Most
Essential Learning Competencies as well in the Curriculum Guide of TVL ICT
Programming (.Net Technology) NC III.
In addition to the material in the main text, you will also see this box in the body of
the module:
As the main source of learning, it is your top priority to explain clearly on how to use
this module to the learners. While using this module, learner’s progress and development
should be recorded verbatim to assess their strengths and weaknesses while doing the
activities presented independently in safety of their homes. Moreover, you are anticipated to
persuade learners to comply and to finish the modules on or before the scheduled time.
You are reading the TVL ICT Programming .Net Technology - Grade 12: First
Semester Midterm Period an Alternative Delivery Mode (ADM) Module on “Introduction
to Hypertext Markup Language” as written and found in the K-12 Most Essential
Learning Competencies as well in the Curriculum Guide of TVL ICT Programming
(.Net Technology) NC III.
This module is especially crafted for you to grasp the opportunity to continue learning
even at home. Using guided and independent learning activities, rest assured that you will
be able to take pleasure as well as to deeply understand the contents of the lesson
presented; recognizing your own capacity and capability in acquiring knowledge.
ASSESSMENT This activity assesses your level of mastery
towards the topic.WHAT I KNOW
WHAT’S
At the end of this module IN
you will also find:
1. The module is government owned. Handle it with care. Unnecessary marks are
prohibited. Use a separate sheet of paper in answering all the given exercises.
2. This module is organized according to the level of understanding. Skipping one part of
this module may lead you to confusion and misinterpretation.
3. The instructions are carefully laden for you to understand the given lessons. Read each
item cautiously.
4. This is a Home-Based class, your reliability and honor in doing the tasks and checking
your answers are a must.
5. This module helps you attain and learn lessons at home. Make sure to clearly
comprehend the first activity before proceeding to the next one.
6. This module should be returned in good condition to your teacher/facilitator once you
completed it.
7. Answers should be written on a separate sheet of paper or notebook especially
prepared for English subject.
If you wish to talk to your teacher/educator, do not hesitate to keep in touch with
him/her for further discussion. Know that even if this is a home-based class, your teacher is
only a call away. Good communication between the teacher and the student is our priority to
flourish your understanding on the given lessons.
We do hope that in using this material, you will gain ample knowledge and skills for
you to be fully equipped and ready to answer the demands of the globally competitive world.
We are confident in you! Keep soaring high! Happy reading
Using this learning resource, you are ought to Develop basic HTML document
using HTML 5 and CSS 3 syntax as inculcated in the K-12 Most Essential Learning
Competencies and in the Curriculum Guide of TVL ICT Programming (.Net
Technology) NC III.
Using separate modules, this competency is divided into four lessons, as follows:
Lesson 1: Introduction to Hypertext Markup Language 5 (HTML5)
Lesson 2: HTML5 creating document, layout design and user interface
Lesson 3: Introduction to Cascading Styling Sheets (CSS)
Lesson 4: Advance CSS 3 integration
At the end of this module, you are expected to achieve the following objectives for
this session:
Identify the elements and syntax in a basic HTML document;
Design and create HTML document
Integrate fonts, color and graphics into HTML document
Appreciate the importance of HTML in the development of web pages
WHAT I KNOW
PRE-TEST
TEST I. Direction: Students kindly, identify properly the parts of a notepad as tool in editing a
web page by writing your answer on the space provided after Figure 1.
2 1
5
Downloaded by Jellie Atienza (jellieanne.atienza@yahoo.com)
lOMoARcPSD|19605557
5. _______________________________
TEST II. Direction: Students in figure 2 it illustrates an example of how a tag is used and its
parts. Kindly identify it parts by labelling properly on the figure below.
Structure of a Tag
1.
3.
2.
4.
Figure 2.
TEST III. Direction: Choose the best answer and write the letter of your choice on the space
provided before each number.
C. Content
D. End Tag
Figure 3.
WHAT’S IN
THE INTERNET
10
Figure 4. Physical
structure of the
Internet
HYPERTEXT DOCUMENTS
Hypertext offers a better way of locating information. Like reading a book it is
following a linear progression and reading one page after another. With hypertext, the
progress through pages in whatever way is best suited to the user’s and objectives of the
developer and designer. Hypertext allows the user to skip from one topic to another. (Visual
Guide in HTML 5 and CSS 3, 2013, Jemma Inc.)
Figure 5.
Illustration from
linear to hypertext
document
11
Figure
6.
Different
kinds of
Web
browser
Let’s have a simple crossword puzzle to remember some of the terms that you
already read.
PUZZLE TO REMEMBER!
Self-Test 1.1
Direction: Kindly place your desired answers on the puzzle matrix base on
the hints given in
the Across and Down area.
12
COLUMN A COLUMN B
1.<head> </head> A.Define the document type
2.<audio> </audio> B.Enclose the entire HTML document
3.<source> </source> C.Enclose the head of the HTML document
4.<embed> </embed> D.Define sound content
5. <!DOCTYPE> E.Define the result of a calculation
6.<br> F.Define a video or movie
7.<hr> G. Define a container for an interactive content
8.<html> </html> H.Define text tracks for videa and audio
9.<output> </output> I.Define a date and time
10.<p> </p> J.Define multiple media resources
11.<video> </video> K.Create a line break
12.<body> </body> L.Create a paragraph
13.<title> </title> M.Create a horizontal rule line
14.<time> </time> N. Indicate the title of the document
15.<track> </track> O.Encloses the body of the HTML document
WHAT IS IT
13
HTML stands for Hypertext Markup Language and it is the language used in creating
Web pages.
A markup language then is a set of interpretation to text that describes how it is to be
structured, laid out or formatted. HTML provides the structure, lay-out and format of a Web
page. Keep in mind my dear students, that in writing HTML, you are instructing the Web
browser how to display the Web pages. It also to put the text on the center, what images and
videos to put, use a certain color for a certain text, etc. (Visual Guide, HTML5 and CSS3,
Jemma Inc., 2013)
TITLE
BACKGROUND
IMAGE
LINKS
Figure 7. Figure Sample Layout and Format of a Web Page
HTML vs HTML 5
HTML HTML5
It didn’t support audio and video It supports audio and video controls
without the use of flash player with the use of <audio> and <video>
support. tags.
It does not allow drag and drop It allows drag and drop effects.
effects.
Not possible to draw shapes like Allows to draw shapes like circle,
circle, rectangle, triangle etc. rectangle, triangle etc.
Older version of HTML are less HTML5 language is more mobile-
mobile-friendly friendly
Doctype declaration is too long Doctype declaration is quite simple
and complicated and easy.
Elements like nav, header were New element for web structure like
not present nav, header, footer etc.
It cannot handle inaccurate It is capable of handling inaccurate
syntax syntax.
Character encoding is long and Character encoding is simple and
complicated easy
It works with all old browsers Supported by all new browser like
Firefox, Mozilla, Chrome, Safari, etc.
Does not allow JavaScript to run Allows JavaScript to run in
in browser background. This is possible due to
JS Web worker API in HTML5
14
Source: https://www.geeksforgeeks.org/difference-between-html-and-html5/
HTML editors is a software application for creating web pages. The HTML documents use
plain text, any text editing program can be used to create Web pages.
For our class activities, we will be using my dear students Notepad as our text
editor. To start illustrating on how to use the Notepad, kindly follow the steps
and bear in mind the different parts of a Notepad Window.
1. Go to Start button
15
Title Control
Bar buttons
3. Open the Notepad
Menu
Bar
Text
Area
DOCTYPE in HTML5:
WHAT IS METADATA?
Metadata
Element Definition
head Represents a collection of metadata for the document.
Ex. <head> . . . </head>
16
METADATA
Tags are the basic units or building blocks of an HTML file. Web pages are designed and
HTML codes are made up of these tags – they control how HTML does its structuring, laying
out and formatting. Tags are enclosed in angle brackets < and >.
Start tag – tags usually are in pairs of start and end tags, it indicates in the start tag is
the type of tag used and also it’s attributes are placed in the start tag.
Attribute – it is used to provide additional information about the tag and go in name-
value pairs separated by an equal sign “=”
- A tag may or may not have attributes.
17
ATTRIBUTES
START TAG
ELEMENT
CONTENT
END TAG
This is how it look like when viewed on a Web browser (Google Chrome)
BACKGROUND IS FUCHSIA
18
EMPTY ELEMENTS
Below is another example of an HTML document with a complete start and end tag. It also
shows the display of the codes below in a web browser using Google Chrome.
The table
below shows some of the HTML tags that you will encounter on these module and the
succeeding lesson modules:
HTML Tags
Tag Function
19
WHAT IS ATTRIBUTES?
The values specify the properties of the attribute which provide additional information
about the HTML element.
For example:
Attribute Value
20
Value
Value
Since we already learn, a quick visit of the HTML5 basic as part of HTML5
introduction. Let’s not forget also that in every designing and development of an application
there is always a big Planning to undertake. The following are the guidelines in planning a
website.
1. Create the goal or purpose of the web site.
In designing the whole web site, you should have in mind what is the main
function of the web site and what is the purpose of having the web site. Let’s
not forget that we lose focus on it’s goal and purpose we can never have a
strong foundation in building the website. Since all the formatting and the
content that we have to put into the web site it will always go back to the goal
and purpose of the web site.
21
HTML files are divided into two parts, the head and the body. The head part
contains the enclosed tag <head></head> and the contents in the body part are
enclosed in <body></body>
Here’s an example:
HTML CODE:
HEAD
22
HEAD - TITLE
Anything that appears on your Web Page like video, audio, images, text and the
like must be inside the body enclosed in <body></body>
BODY
23
BODY
Headings are used to organize or group the contents of your page. Headings
are container tags which format text using pre-defined values for size and color.
There are six (6) heading tags and these are the following:
<h1> </h1>
<h2> </h2>
<h3> </h3>
<h4> </h4>
<h5> </h5>
<h6> </h6>
An HTML document has a main heading and sub-headings and they are
assigned font sizes to differentiate one from the other. The meain heading
and will have the biggest font size and is designated as <h1>, the next
heading is <h2> and so on up to <h6>.
Attribute Definition
align Indicates the horizontal alignment of
heading. Ex: <h2 align=”right”>This is right-
alignment</h1>
title Indicates the text that appears when the
mouse hovers over the heading.
Ex: <h2 title=”How are you? ”> Hope your
dong good! </h2>
24
HEADING
LEVELS
HEADING LEVELS
25
WHAT’S MORE
Activity 2.1
26
Let’s have fun while learning, my dear students! Below is a word puzzle, identify the
word by encircling the word either diagonal, straight row, straight column and even the words
is in forward form or backward form. Goodluck!
Activity 2.2
Directions: Below
are Table 1 which
contains the
format of a tag and Table 2 contains Web page contents. Write your answers
on Table 3 with the corresponding correct tag base on Table 2 definition of
the different web page content.
27
<html>
<head>
<title>MY FIRST HEADING
</title>
</head>
<body>
<h title="HI">Topic 1</h>
<h2 align="right">Topic 2</h2>
<h3 "center">Topic 3</h3>
<h4 align="left">Topic 4</h4>
<h5 title=H5>Topic 5</h5>
<h6 align="center">Topic 6</h6>
<body>
</html>
B.
28
<!DOCTYPE html>
<html>
</head>My First HTML Code
</title>First Code
HTML</title>
</head>
<body bgcolor="FFFFF0"
text="#800000">
</body>
</html>
Activity 2.4
Directions: Hello students! Another fun filled activity we have to start. The
image below is a complete HTML code tag where in you have to label the
different HTML tags base on the arrows. You have to write the correct
name of the tag on the box provided.
29
Hello my dear students! I hope that you have learned a lot on the different key
concepts on the Introduction to HTML5 as well as I hope that you really enjoy reading the
module. And to summarize the whole concepts, I prepared a summary for you.
30
HTML5 FEATURES
It has introduced new multimedia features which supports audio and video controls
by using <audio> and <video> tags.
There are new graphics elements including vector graphics and tags.
Allows to draw various shapes like triangle, rectangle, circle, etc.
Capable of handling incorrect syntax.
Easy DOCTYPE declaration i.e. <!doctype html>
Easy character encoding i.e. <meta charset=”UTF-8″>
WHAT I CAN DO
PROBLEM DEFINITION:
Page title: “TVL-ICT HTML Example”. Use an aligned center heading 1 for
the first line of text is. Use separate paragraph tags for the next 2 lines of
text. Use bold, italic and underlined tags for the fourth line of text. After
this create the 3rd paragraph and insert a horizontal rule after it. Do not enclose the last part
in any tag, instead just write them directly and separate each line with a line break. NOTE:
Do not put unnecessary break tags.
TAGS NEEDED:
1 – h1, b, i, u, hr
3–p
3 – br
SAMPLE OUTPUT:
31
Write your answers on the skeleton format of an HTML code which is base on the sample
output above.
<!DOCTYPE HTML>
<html>
<head>
<title>___________________________________________</title>
</head>
<body>
<h1 align=____________________>
_________________________________________</h1>
___________
<p>_________________________________________________________
_________________________________</p>
<p></p>
<p>_________________________________________________________
_________________________________</p>
____________________Internet growth____________________
p>___________________________________________________________
___________________________________________________________
__________________________________________________________</p>
<p></p>
<p>______________________________</p>
________
________
__________
</html>ASSESSMENT
Key to answers on page 51
32
PART IA. Direction: Students kindly, identify properly the parts of a notepad as tool in editing
a web page by writing your answer on the space provided after Figure 1.
Notepad Window 1
2
Figure 1
1. _______________________________
2. _______________________________
4
3. _______________________________
4. _______________________________
5. _______________________________
PART I B. Direction: Students in figure 2 it illustrates an example of how a tag is used and its
parts. Kindly identify it parts by labelling properly on the figure below.
Structure of a Tag
5
1
2
3
4
Figure 2.
PART II.
Direction: Choose the best answer and write the letter of your choice on the space
provided before each number.
33
34
PART II ASSESSMENT
1. 6. 11.
2. 7. 12.
3. 8. 13.
4. 9. 14.
5. 10. 15.
35
B. <h1>
C. <heading>
D. <head>
9.It is the tag that creates a new paragraph and aligns the paragraph to center.
A. <p align=”center”> the quick brown fox jumps over the lazy dog <>
B. <p align=left> the quick brown fox jumps over the lazy dog </p>
C. <p align=”left”> the quick brown fox jumps over the lazy dog </p>
D. <p align=center> the quick brown fox jumps over the lazy dog <>
11. Software used to surf the web, such as Google Chrome and Internet Explorer.
A. Web Browser
B. Hypertext
C. URL
36
D. HTML
13.The HTML codes that control the appearance of the document content.
A. attributes
B. tag
C. content
D. syntax
II. Error Identification. Rewrite the code on the designated blank space provided base on the
given codes on the first column.
C.) <body>
<h1 align=”center”> XYZ
<h2 align=”center”> Cebu City
37
III. 0 or 1. Write the value 1 if the statement is correct and 0 if the statement is incorrect.
Write your answer on the space provided.
1. 6. 11.
2. 7. 12.
3. 8. 13.
4. 9. 14.
5. 10. 15.
1. In order for computers to share resources efficiently, they can be linked together
using the internet structured networks.
3. Hypertext document is one of the many methods of sharing and retrieving information
on the Internet becoming known as the WWW.
4. A Web page is stored on a Web server, which makes the page available to users of
the Web.
6. HTML documents are text files, which a text editor such as Windows Notepad can be
used to create.
7. Document content is what the users see on the page, such as headings and images.
38
9. Timothy Berners-Lee and other researchers at the CERN nuclear research facility,
laid the foundation of the World Wide Web, or the Web
12. The mark-up language tells the web browser how to display the page.
13. A markup language then is a set of interpretation to text that describes how it is to be
structured, laid out or formatted.
1. Center the word “LILOAN NATIONAL HIGH SCHOOL EXT-DON BOSCO CAMPUS”
in largest heading.
2. Make this statement bold, italic and underline – “The quick brown fox jump over the
lazy dog.”
ADDITIONAL ACTIVITIES
Direction: Answer the following questions in your own opinion and understanding.
39
1. HTML is the language of every Web page. How do you find HTML as a
student learning web programming? Is it easy, average or hard to understand?
PART IA.
1. Control Buttons
2. Title Bar
3. Menu Bar
4. Text Area
5. Scroll Area
PART IB.
40
1. Start Tag
2. Attributes
3. Content
4. End Tag
PART II.
1. C 6. A
2. C 7. D
3. B 8. B
4. A 9. C
5. C 10. A
Self-Test 1.1
1. CHROME
2. FIREFOX
3. WEB BROWSER
4. WEB PAGES
5. WWW
6. INTERNET
7. SAFARI
8.TIMOTHY
9.HYPERTEXT
Self-Test 1.2
Answer key
1. C 6. K 11.F
2. D 7. M 12.O
3. J 8. B 13.N
4. G 9. E 14.I
5. A 10.L 15.H
Activity 2.1
41
Activity 2.2
Activity 2.3
<html> <html>
42
<head> <head>
<title>MY FIRST <title>MY FIRST HEADING
HEADING </title>
</title> </head>
</head> <h title="HI">Topic
<body> 1</h>
<body> <h title="HI">Topic 1</h>
<h2 align="right">Topic <h2 align="right">Topic 2</h2> <h3 "center">Topic
2</h2> <h3 "center">Topic 3</h3> 3</h3>
<h4 <h4 align="left">Topic 4</h4> <h5 title=H5>Topic
align="left">Topic <h5 title=H5>Topic 5</h5> 5</h5>
4</h4> <h6 align="center">Topic 6</h6> <body>
<body>
<h6
align="center">Topic </html>
6</h6>
</html>
<!DOCTYPE html> B.
<html> <!DOCTYPE html>
<html>
</head>My First HTML </head>My First HTML Code </title>First Code
Code </title>First Code HTML</title>
HTML</title>
</head> </head>
<body
bgcolor="FFFFF0" <body bgcolor="FFFFF0" <font face="Arial"
text="#800000"> text="#800000"> size="4" My First Code
<font>
<font face="Arial" size="4" My First
Code <font> </h1>My First
Heading</h1>
<p>My first </h1>My First Heading</h1>
paragraph.</p> <p>My first paragraph.</p>
</body> </body>
</html> </html>
Activity 2.4
TITLE
DOCUMENT
TYPE
HEAD
PARAGRAPH 43
BODY
Downloaded by Jellie Atienza (jellieanne.atienza@yahoo.com)
lOMoARcPSD|19605557
WHAT CAN I DO
<!DOCTYPE HTML>
<html>
<head>
<title>TVL-ICT HTML Example</title>
</head>
<body>
<h1 align="center">It is easy to learn HTML</h1>
<p></p>
<p>This is the first paragraph. It is short but is still a paragraph</p>
<p></p>
<p>This is the second paragraph much shorter!</p>
<p></p>
<p><i><u><b>Internet growth</b></u></i></p>
1. C 6. A 11. A
2. D 7. A 12. A
3. B 8. B 13. C
4. B 9. A 14. A
5. A 10. D 15. C
TEST II
45
</body> </html>
TEST III
1. 1 6. 0 11. 0
2. 1 7. 0 12. 0
3. 0 8. 1 13. 0
4. 1 9. 1 14. 1
5. 1 10. 0 15. 1
TEST IV
1. Center the word “LILOAN NATIONAL HIGH SCHOOL EXT-DON BOSCO CAMPUS”
in largest heading.
2. Make this statement bold, italic and underline – “The quick brown fox jump over the
lazy dog.”
REFERENCES
Online Resources
Printed Materials
47