Tle 10 Ict Quarter 2 Learning Resources w1-w5
Tle 10 Ict Quarter 2 Learning Resources w1-w5
EXPECTATIONS
Upon completion of the module, learners should be able to:
describe tags and attributes;
label the structure of a tag;
identify container and empty tags; and
outline the basic structure of a webpage.
Directions: Choose the letter of the correct answer and write it on the space
provided.
1. What are the hidden keywords within a webpage that define how the browser
will display the contents?
a. attributes c. tags
b. elements d. values
2. What allows a tag to be customized and is always specified in the start tag?
a. attributes c. tags
b. elements d. values
3. Which tag that forms the basic structure of an HTML file contains information
about the document that will not appear in the actual webpage?
a. <body> b. <head> c. <html> d. <title>
4. Which tag that forms the basic structure of an HTML file contains all the
visible
contents to be displayed in the webpage?
a. <body> b. <head> c. <html> d. <title>
5. Which tag that forms the basic structure of an HTML file identifies the
beginning
and end of the document?
a. <body> b. <head> c. <html> d. <title>
6. Which tag that forms the basic structure of an HTML file defines the title that
will appear in the title bar of the web browser?
a. <body> b. <head> c. <html> d. <title>
7. Which kind of tag wraps around text or graphics and comes in a set?
a. container b. empty c. end d. start
8. Which kind of tag stands alone and do not require end tags?
a. container b. empty c. end d. start
9. In an HTML layout, which part defines the navigation links?
a. <article> b. <details> c. <footer> d. <nav>
10. In an HTML layout, which part defines an independent, self-contained
content?
a. <article> b. <aside> c. <header> d. <section>
3
LOOKING BACK TO YOUR LESSON
4
BRIEF INTRODUCTION
A website’s structure refers to how the website is outlined and how the contents are
organized in the webpage. This includes how the individual webpages are linked to one
another. It is very important that visitors can easily find what they are looking for. This is the
reason why the homepage is important. It should be easy to navigate and explore.
What is a Tag?
Tags serve as the building blocks of an HTML document. They may also be called as
code since writing it may be referred to as coding. They are hidden keywords within a
webpage that define how the browser will display the contents. There are many tags used
in creating webpages and each tag has its own use. Some are used in formatting texts,
images, tables, and layouts to name a few.
Structure of a Tag
There four sets of HTML tags needed to form the basic structure for every
HTML file
are:
Definition <html> </html>
This defines the document as a webpage. It also identifies the
beginning
and end of the HTML document. All the other tags must be enclosed in
this tag.
Header <head> </head>
This contains information about the document that will not appear on
the
actual webpage, such as the title of the document, the author,
stylesheet used, and the meta tags.
Title <title> </title>
This defines the title that will appear in the title bar of the web browser.
This tag must be placed inside the head tags.
Body <body> </body>
This contains all the information and visible contents of the webpage.
This includes images, links, and plain text. They must be placed inside
the body tags.
Most tags have two parts, an opening and closing part. For example, <html> is
the opening tag and </html> is the closing tag. Always remember that the closing tag
has the same text as the opening tag, but with a forward slash ( / ) character. However,
there are a few tags that are an exception to this rule. These tags do not require a closing
tag. An example is the <img> tag which is used for inserting images.
5
Also, notice that tags are enclosed in angle brackets < and > and an example of it is
<html>. Below is an illustration of how a tag is used and its parts.
This is how the browser will display the codes written above.
There are two kinds of tags: container and empty. The container tag always wraps
around text or graphics and comes in a set. It has start and end tags with the content in
between. On the other hand, the empty tags stand alone and do not require the end tags.
They do not have to be wrapped around text.
6
A whole HTML file is always enclosed in <html> </html>. See the example
below which has the appropriate HTML start and end tags.
This is how the browser will display the codes written above.
HTML attributes provide additional information about HTML elements. Attributes allow
a tag to be customized and are always specified in the start tag, for example
<img src=”sampleimage.jpg”> or <p align=”left”> … </p>. They are usually
assigned with a value using the equal sign, such as border=”0” or width=”50%”, but
there are also some attributes that only need to be declared in the tag like this: <hr
noshade>.
Majority of attributes are optional for most tags. They are only used when changing
something about the default way a tag is displayed in the browser. However, some tags such
as the <img> tag has required attributes such as src and alt which are basically needed
for the browser to display the webpage properly.
7
Common Attributes
href attribute It defines a hyperlink and specifies the URL of the webpage the link
goes to.
src attribute It specifies the path to the image to be displayed.
width and height It specifies the width and height of the image.
attribute
alt attribute It specifies an alternate text for an image if the image cannot be
displayed. This may be because of slow connection, or an error in the
src attribute, or if the user uses screen reader.
id attribute It specified a unique id for an HTML element (the value must be
unique
within the HTML document). It is mostly used to point to a style in a
stylesheet.
class attribute It specifies one or more classnames for an element. It is mostly used
to point to a class in a stylesheet.
style attribute It is used to add styles to an element, such as color, font, size, etc.
lang attribute It is used to declare the language of the webpage. This is meant to
assist search engines and browsers.
8
ACTIVITY: Identification
Directions: Match Column A with the correct answer on Column B, write only the letter
of the correct answer on the space provided.
Column A Column B
1. It provides additional information to tags. a. Angle brackets
2. End tags have this additional character. b. Attributes
3. It is a stand-alone kind of tag that do not require end tags.
c. Body tag
4. It encloses all the tags in the HTML file.
5. It always comes in a set with start and end tags. d. Container tags
6. They are the basic building blocks of HTML. e. Content
7. Everything between the start and end tag. f. Empty tags
8. This tag contains all the information and visible contents g. Equal sign
of the webpage.
9. Attributes are usually assigned with a value using this. h. Forward slash
10. This attribute defines a hyperlink and specifies the URL i. Href
of the webpage the link goes to. j. HTML tag
k. Tags
REMEMBER
Tags serve as the building blocks of an HTML document They are hidden keywords
within a webpage that define how the browser will display the contents. HTML attributes
provide additional information about HTML elements. Attributes allow a tag to be customized
and are always specified in the start tag.
The four sets of HTML tags needed to form the basic structure for every HTML
file are the <html> </html> tag, <head> </head> tag, <title> </title> tag, and
<body>
</body> tag. Most tags have two parts, an opening and closing part. The closing
tag has the same text as the opening tag, but with a forward slash ( / ) character.
There are two kinds of tags: container and empty. The container tag always wraps
around text or graphics and comes in a set. It has start and end tags with the content in
between. On the other hand, the empty tags stand alone and do not require the end tags.
They do not have to be wrapped around text
HTML layout has several semantic elements that define the different parts of a
webpage. The basic parts include the <head>, <nav>, <section>, <article>,
<aside>, and
<footer>.
9
CHECKING YOUR UNDERSTANDING
Directions: Choose the letter of the correct answer and write it on the space
provided.
1. Samantha would like to display an image in the webpage she is creating. She
knows the tag to be used is the <img> tag. Which attribute is required so
the browser can display the webpage properly?
a. alt c. src
b. href d. style
2. Bryan would like to indicate title and author of the website he is developing. In
which tag should it be enclosed with?
a. <body> c. <html>
</body> </html>
b. <head> d. <title> </title>
</head>
3. Sonny is trying to debug the HTML document because the web browser is not
displaying the contents of his webpage. Which of the following is the possible
reason?
a. He did not use the <body> tag. c. He did not use the <title> tag.
b. He did not use the <head> tag. d. b and c
4. Jamaine is creating an outline of the website she is developing. She wants to
provide a section that links to other pages or parts within that page. Which tag
does she need to use?
a. <article> b. <aside> c. <nav> d. <section>
5. In addition, Jamaine would like to place a section in the page that consists of
content that is related to the main article in her page and can also be placed as
a side bar. Which tag does she need to use?
a. <aside> b. <head> c. <nav> d. <section>
10
POST-TEST Multiple Choice
Directions: Choose the letter of the correct answer and write it on the space
provided.
1. What allows a tag to be customized and is always specified in the start tag?
a. attributes c. tags
b. elements d. values
2. What are the hidden keywords within a webpage that define how the browser
will display the contents?
a. attributes c. tags
b. elements d. values
3. Which tag that forms the basic structure of an HTML file contains all the
visible
contents to be displayed in the webpage?
a. <body> b. <head> c. <html> d. <title>
4. Which tag that forms the basic structure of an HTML file contains information
about the document that will not appear in the actual webpage?
a. <body> b. <head> c. <html> d. <title>
5. Which tag that forms the basic structure of an HTML file defines the title that
will appear in the title bar of the web browser?
a. <body> b. <head> c. <html> d. <title>
6. Which tag that forms the basic structure of an HTML file identifies the
beginning
and end of the document?
a. <body> b. <head> c. <html> d. <title>
7. Which kind of tag stands alone and do not require end tags?
a. container b. empty c. end d. start
8. Which kind of tag wraps around text or graphics and comes in a set?
a. container b. empty c. end d. start
9. In an HTML layout, which part defines an independent, self-contained content?
a. <article> b. <aside> c. <header> d. <section>
10. In an HTML layout, which part defines the navigation links?
a. <article> b. <details> c. <footer> d. <nav>
11
HOW TO USE THIS MODULE?
Before starting the module, I want you to set aside other tasks that will
disturb you while enjoying the lessons. Read the simple instruction below to
successfully enjoy the objectives of this kit. Have fun!
1. Follow carefully all the contents and instructions indicated in every page on
this module
2. Write on your notebook or any writing pad the concepts about the lessons.
Writing enhances learning, which is important to develop and keep in mind.
3. Perform all the provided activities in the module.
4. Let you facilitator/guardian assess your answers.
5. Analyze conceptually the post-test and apply what you have learned.
6. Enjoy studying!
● Expectations - These are what you will be able to know after completing
the lessons in the module.
● Pre-test - This will measure your prior knowledge and the concepts to be
mastered throughout the lesson.
● Looking Back - This section will measure what learnings and skills that
you understand from the previous lesson.
● Brief Introduction-This section will give you an overview of the lesson.
● Activities - These are activities designed to develop critical thinking and
other competencies. This can be done with or without a partner
depending on the nature of the activity.
● Remember - This section summarizes the concepts and applications of
the lessons.
● Checking your Understanding - It will verify how you learned from the
lesson.
● Post-test - This will measure how much you have learned from the entire
module.
2
2
LESSON 1: IDENTIFYING TAGS AND ATTRIBUTES USED IN FORMATTING
TEXT
EXPECTATIONS
Upon completion of the module, learners should be able to:
● set font style, size, and color;
● apply commonly used font formatting; and
● insert special character entities.
Directions: Choose the letter of the correct answer and write it on the space provided.
1. Which tag is used to define font face, font size, and font color in HTML?
a. <em></em> b. <font></font> c. <hr> d.
<sub></sub>
2. Which HTML version does not support the <font> tag?
a. HTML 2 b. HTML 3 c. HTML 4 d.
HTML 5
3. Which attribute is used to set the font type?
a. face b. font c. size d. type
4. Which of the following HTML code is correct?
a. <font face=“Calibri”>Calibri</font>
b. <font face=“Verdana>Verdana</font face>
c. <font type=“Times New Roman”> Times New Roman</type>
d. <font type=Arial>Arial</font>
5. Which attribute is used to adjust the size of the text in an HTML document?
a. size b. small c. sub d. sup
6. What is the default font size of the text in an HTML document?
a. 1
a. color b. fcolor b. 2 c. tcolor c. 3 d. 4
d. textcolor
7. Which attribute is used to set the color
8. Which of the following HTML code is correct? of the text in an HTML document?
a. <font color=red>Red</font>
b. <font color=“green>Green</font>
c. <font color=“red”>Red</font>
d. <font tcolor=“green”>Green</font>
9. Which of the following is NOT used to set the style of font?
a. <b></b> b. <em></em> c. <small></small d. <tall></tall>
10. What symbol always ends or closes a special character entity?
a. ! b. & c. - d. ;
3
3
LOOKING BACK TO YOUR LESSON
Output Code
a. Region I
b. Region II
c. Region III
d. Region IV-A
e. Region IV-B
f. Region V
g. Region VI
h. Region VII
i. Region XIII
j. Region IX
k. Region X
l. Region XI
m. Region XII
n. Region XIII
o. ARMM
p. CAR
q. NCR
4
4
BRIEF INTRODUCTION
Formatted text can draw the reader’s attention to certain parts of the webpage. It can
also give emphasis to important information. There are several elements used to design and
display special types of text.
<font> Tag
The <font> tag is very helpful when it comes to designing and creating an attractive
and readable webpage. It is mainly used to change the color, size, and style of a text. The
<font> tag is used HTML4 but is not supported in HTML5. Therefore, CSS is used to
define font face, font size, and color.
Font Type
The font type can be set using the face attribute of the font tag. However, the fonts to
be used needs to be installed in the system first.
HTML code:
Output:
5
5
Font Size
The font size is used to adjust the size of the text in the HTML document. The font
size ranges from 1 to 7 and the default size is 3.
HTML code:
Output:
Font Color
The font color is used to set the color of the text with the color attribute. Color can be
set using its name or its hex code.
HTML code:
6
6
Output:
To set the style of the font, the following attributes can be also be used: <b></b>,
<i></i>, <u></u>, <sup></sup>, <sub></sub>, <small></small>, <strong></strong>, and
<em></em>.
HTML code:
Output:
7
7
Tags for Font Formatting
<b></b> Displays the text in bold format
<i></i> Displays the text in italic format
<u></u> Displays the text in underlined format
<sup></sup Displays the text in superscript
<sub></sub> Displays the ext in subscript
<em></em> Displays the text with emphasis
<strong></strong> Displays the text with strength
<small></small> Displays the text in small size
Special character entities are usually written with an ampersand ( & ) followed by the
entity name and ends with a semi-colon ( ; ). One example is . The said entity means
non-breaking space. It is a special character that displays a horizontal space. It is similar to
the <br> tag.
HTML code:
Output:
8
8
Special Character Entities
> Used to insert greater than symbol or
< > Used to insert less than symbol <
/ Used to insert slash or /
© Used to insert copyright symbol or ©
® Used to insert registered symbol or
& ® Used to insert ampersand or &
– Used to insert en dash or -
— Used to insert em-dash or
–
Used to insert a non-
breaking space
9
9
ACTIVITY:
A.Directions: Write the formatting tags for the following outputs. Write the opening
and closing tags.
1) Philippines
2) United States of America
3) Great Britain
4) New Zealand
5) South Korea
6) Japan
7) France
8) Italy
9) Canada
10)United Arab Emirates
B.Directions: Copy the codes below, change the contents of the body with your
chosen poem and use different font face, color, and size.
REMEMBER
Formatted text can draw the reader’s attention to certain parts of the webpage. It can
also give emphasis to important information. The <font> tag is very helpful when it comes to
designing and creating an attractive and readable webpage. It is mainly used to change the
color, size, and style of a text. The font type can be set using the face attribute of the font
tag. However, the fonts to be used needs to be installed in the system first. The font size is
used to adjust the size of the text in the HTML document. The font size ranges from 1 to 7
and the default size is 3. The font color is used to set the color of the text with the color
attribute. Color can be set using its name or its hex code. To set the style of the font, the
following attributes can be also be used: <b></b>, <i></i>, <u></u>,
<sup></sup>, <sub></sub>,
<small></small>, <strong></strong>, and <em></em>.
Special character entities are usually written with an ampersand ( & ) followed by the
entity name and ends with a semi-colon ( ; ). One example is .
10
10
CHECKING YOUR UNDERSTANDING
Directions: Choose the letter of the correct answer and write it on the space provided.
1. Francine is creating a website for their family business. To make the page
more appealing to the readers, she wants to set the font type to Arial and font
color to Blue. What is the correct HTML code that she should use?
a. <font face= “Arial” color= blue> … </font>
b. <font face= “Arial” font color= “blue”> … </font>
c. <font face= “Arial color= blue”> … </font>
d. <font face= “Arial” color= “blue”> … </font>
2. After setting the font type and color of the text she noticed that the text is too
small. So she decided to use the size of the text next to the default size. What is
the correct HTML code that she should use?
e. <font size=“4”> … </font>
f. <font size=“5”> … </font>
g. <font size=“6”> … </font>
h. <font size=“7”> … </font>
3. After adjusting the size of the text, she decided that she also wants to italicize
all the titles in the website. Which font style should she use?
a. <b></b> c. <sub></sub>
b. <i></i> d. <sup></sup>
4. When Francine has finally italicized all of the titles, she thinks it’s not enough.
So she decided to add strength to all of the titles. Which font style should she
use?
a. <em></em> c. <sub></sub>
b. <strong></strong> d. <sup></sup>
5. To finalize the website of their family business, Francine would like to add the
copyright symbol at the footer section. What is the HTML code for this special
character entity?
a. & c. &cprt;
b. © d. ®
11
11
POST-TEST Multiple Choice
Directions: Choose the letter of the correct answer and write it on the space provided.
12
12
HOW TO USE THIS MODULE?
Before starting the module, I want you to set aside other tasks that will
disturb you while enjoying the lessons. Read the simple instruction below to
successfully enjoy the objectives of this kit. Have fun!
1. Follow carefully all the contents and instructions indicated in every page on
this module
2. Write on your notebook or any writing pad the concepts about the lessons.
Writing enhances learning, which is important to develop and keep in mind.
3. Perform all the provided activities in the module.
4. Let you facilitator/guardian assess your answers.
5. Analyze conceptually the post-test and apply what you have learned.
6. Enjoy studying!
Expectations - These are what you will be able to know after completing
the lessons in the module.
Pre-test - This will measure your prior knowledge and the concepts to be
mastered throughout the lesson.
Looking Back - This section will measure what learnings and skills that
you understand from the previous lesson.
Brief Introduction-This section will give you an overview of the lesson.
Activities - These are activities designed to develop critical thinking and
other competencies. This can be done with or without a partner depending
on the nature of the activity.
Remember - This section summarizes the concepts and applications of
the lessons.
Checking your Understanding - It will verify how you learned from the
lesson.
Post-test - This will measure how much you have learned from the entire
module.
2
LESSON 1: USING BASIC TAGS AND ATTRIBUTES
EXPECTATIONS
Upon completion of the module, learners should be able to:
describe the head and body tags;
identify heading, its attributes and grouping headings; and
use appropriate tags and attributes in creating an HTML document.
Directions: Choose the letter of the correct answer and write it on the space provided.
3
LOOKING BACK TO YOUR LESSON
Directions: Put a check inside the box if the statement is correct and a cross if
the statement is incorrect.
4. Elements with start tag and end tag are called container elements.
9. A container tag is a stand-alone type of tag that does not require end tags.
4
BRIEF INTRODUCTION
All HTML documents are divided into two portions: the head and the body. Contents
in the head portion are always enclosed in <head> </head> and contents in the body
portion are enclosed in <body> </body>. Both portions have important roles to
play in the completion of webpages and websites.
The <head> tag contains metadata (document title, character set, styles,
links, scripts), specific information about the webpage that is now shown or displayed in
the web browser. These metadata provide browsers and search engines with technical
information about the webpage for easy searching.
The <title> </title> tag inside the head tag is used to display the title of the
webpage on the title bar.
5
What is Body Tag?
All of the contents displayed in the web page – texts, images, videos and others –
should always be placed in the body of the HTML document. It must be enclosed in
<body>
</body>.
As shown in the example above, the start tag is placed right after the end tag of the
head part and the end tag is right before the end of the HTML document or the HTML tag.
6
text It is used to specify the color of text in the webpage.
Ex. <body text=“black”>
vlink It is used to specify the color of visited links in the webpage.
Ex. <body vlink=“#FF0000”>
Headings are used to create section headings. They are used to organize or group
the contents of the webpage. They come in six default levels, <h1> through <h6>, which
also follows the order of importance. It is mainly used in placing titles and headers.
An HTML document has a main heading and sub-headings and they are usually
assigned with different font sizes. The main heading have the biggest font size and assigned
as <h1>, the next heading is <h2> and so on up to <h6>. The heading<h6> will have the
smallest font and least essential among the headings.
Attribute Definition
align It indicates the horizontal alignment of heading.
Ex. <h1 align=“left”>This is left-aligned</h1>
title It indicates the text that appears when the mouse hovers over the
heading.
Ex. <h1 title=“Thank you!”>Put the cursor over me.</h1>
7
The alignment of headings can be adjusted to left, right or center of the
document.
8
Grouping Headings
Grouping headings indicates that subheadings, alternative titles or multiple levels are
related. The <hgroup> element is used to group the headings. Each hgroup may contain
two or more h1-h6 headings.
9
ACTIVITY:
A.Directions: Make the necessary correction to the following HTML codes. Put a
check mark on the space provided if the code is free from error.
1. <h3> </h3
2. <h2 align=“right”>
3. <h5> <h5/>
4. body alink=“#000000”
5. <body vlink=#FF0000>
6. <body link “red”>
7. <body text=black>
8. <body background color=“green”>
9. <body bground=“Picture1.jpg”>
10. <body> </body>
B.Directions: Practice creating and viewing simple HTML pages. Copy the codes
below and write a short description of yourself.
<html>
<head>
<title>About Me</title>
</head>
<body>
* write a short description of yourself *
</body>
</html>
REMEMBER
All HTML documents are divided into two portions: the head and the body. Contents
in the head portion are always enclosed in <head> </head> and contents in the body
portion are enclosed in <body> </body>. Both portions have important roles to
play in the completion of webpages and websites.
The <head> tag contains metadata (document title, character set, styles, links,
scripts), specific information about the webpage that is now shown or displayed in the web
browser. All of the contents displayed in the web page – texts, images, videos and others
– should always be placed in the body of the HTML document. It must be enclosed in
<body> </body>.
Headings are used to create section headings. They are used to organize or group
the contents of the webpage. They come in six default levels, <h1> through <h6>, which
also follows the order of importance. It is mainly used in placing titles and headers. The
attributes used in headings are align and title.
10
CHECKING YOUR UNDERSTANDING
Directions: Choose the letter of the correct answer and write it on the space provided.
1. Rian is doing her assignment in Webpage Design. She needs to put the
title “About Me” in her webpage. Which tag should she use?
a. <body> c. <html> </html>
</body> d. <title> </title>
b.2.<head>
Faith have a long list of contents to put in her webpage. Which tag should it
be</head>
enclosed with to make sure everything is displayed in the web browser?
a. <body> c. <html> </html>
</body> d. <title> </title>
b. Hope
3. <head> would like to put a main heading in her webpage. Which heading tag
</head>
should she use?
a. <h1> </h1> b. <h2> </h2> c. <h3> </h3> d. <h4>
</h4>
4. After putting a main heading, Hope would like to add a sub-heading. Which
heading tag should she use this time?
a. <h1> </h1> b. <h2> </h2> c. <h3> </h3> d. <h4>
</h4>
5. When Hope has finished putting the main heading and sub-heading in her
webpage, she now wants to put them in the center of the page. Which attribute
does she need to use?
a. align b. class c. id d. title
11
POST-TEST Multiple Choice
Directions: Choose the letter of the correct answer and write it on the space provided.
1. Which tag contains metadata or specific information about the webpage that
is now shown or displayed in the web browser?
a. <body> b. <head> c. <html> d.
<title>
2. Which tag is used to assign the title of a webpage and display it on the
title bar?
a. <body> b. <head> c. <html> d.
<title>
3. Which tag encloses all the contents that appear in the webpage?
a. <body> b. <head> c. <html> d.
<title>
4. What are the two portion of HTML documents?
a. head and body b. head and title c. html and head d. html
and title
5. Which attribute of the <body> tag is used to change the background
color of the webpage?
a. background b. bgcolor c. link d. vlink
6. Which attribute of the <body> tag is used to change the background
image of the webpage?
a. background b. bgcolor c. link d. vlink
7. Which element is used to organize or group the contents of the webpage?
a. article b. container c. heading d.
paragraph
a. 5 b. 6 c. 7 d. unlimited
8. Which attribute of the <body> tag is used to change the color of the
10. Which of the following is the use of <hgroup> element?
visited hyperlinks in the webpage?
a. To create sections for the articles in the webpage.
a. alink b. elink c. link d. vlink
b. To create subsections in the webpage.
9. How many default levels do headings have?
c. To group the headings in the webpage.
d. All of the above.
12
HOW TO USE THIS MODULE?
Before starting the module, I want you to set aside other tasks that will
disturb you while enjoying the lessons. Read the simple instruction below to
successfully enjoy the objectives of this kit. Have fun!
1. Follow carefully all the contents and instructions indicated in every page on
this module
2. Write on your notebook or any writing pad the concepts about the lessons.
Writing enhances learning, which is important to develop and keep in mind.
3. Perform all the provided activities in the module.
4. Let you facilitator/guardian assess your answers.
5. Analyze conceptually the post-test and apply what you have learned.
6. Enjoy studying!
Expectations - These are what you will be able to know after completing
the lessons in the module.
Pre-test - This will measure your prior knowledge and the concepts to be
mastered throughout the lesson.
Looking Back - This section will measure what learnings and skills that
you understand from the previous lesson.
Brief Introduction-This section will give you an overview of the lesson.
Activities - These are activities designed to develop critical thinking and
other competencies. This can be done with or without a partner depending
on the nature of the activity.
Remember - This section summarizes the concepts and applications of
the lessons.
Checking your Understanding - It will verify how you learned from the
lesson.
Post-test - This will measure how much you have learned from the entire
module.
2
LESSON 1: CREATING A SIMPLE WEBPAGE
EXPECTATIONS
Upon completion of the module, learners should be able to:
create, view, save, and exit an HTML document; and
insert header, footer, navigation, article, and section in an HTML document.
Directions: Choose the letter of the correct answer and write it on the space provided.
3
LOOKING BACK TO YOUR LESSON
Directions: Write the correct opening and closing tags on the different
elements below.
1. Title
2. Head
3. Heading 1
4. Body
5. Section
6. Heading
group
7. Article
8. Footer
9. Header
10. Navigation
4
BRIEF INTRODUCTION
1. Select the Start button on the taskbar and then choose Notepad.
2. Type note in the search box and select Notepad in the search results.
3. Right-click in a blank area in the desktop. Select New in the menu and select Text
Document. Double-click the document.
4. Press Windows(logo)+R, type Notepad and then select OK.
5. Select Start. Choose All Apps and then select Windows Accessories. Scroll to
Notepad and select it.
5
Saving an HTML Document
After writing the codes, the HTML document should be saved so it can be viewed
and worked on again in the future.
1. On the Menu bar, click File and click Save or Save As.
2. On the Save As dialog box, type your file name in the File name box.
3. When saving, always change the file type to All Files and use .html or .htm file
extension.
4. Click Save.
6
The HTML file can now be viewed in the web browser.
If changes are made to the HTML code, click the Refresh button to apply and view
the changes made.
Using Header
7
Using Navigation
Navigation allows the web developer to link important contents. The <nav> tag
defines a set of navigation links. Links in a <nav> element may go to contents within the
page, to other pages or both. Always remember that not all links of a document should be
inside the <nav> element. The <nav> element is intended only for major block of
navigation links.
Creating an Article
8
Creating a Section
9
Using Footer
10
ACTIVITY:
B.Directions: Practice creating and aligning headings. Copy the codes below and apply
the following format:
REMEMBER
Directions: Choose the letter of the correct answer and write it on the space provided.
1. Carl just finished writing the codes of his HTML document. He was instructed
by his teacher to use the file name assignment1. What should be the complete
file name of his HTML document?
a. assignment1.html c. assignment1.web
b. assignment1.txt d. assignment1.xsl
2. After saving his HTML document, Carl would like to check if his assignment
by viewing it. Which of the following programs would you suggest he use?
a. Adobe Reader c. Google Chrome
b. Google Classroom d. Microsoft Word
4. Part of Cia’s a webpage is a news article about their school’s recent program.
Which element should contain this content in her HTML document?
a. article c. footer
b. header d. section
12
POST-TEST Multiple Choice
Directions: Choose the letter of the correct answer and write it on the space provided.
13
HOW TO USE THIS MODULE?
Before starting the module, I want you to set aside other tasks that will
disturb you while enjoying the lessons. Read the simple instruction below to
successfully enjoy the objectives of this kit. Have fun!
1. Follow carefully all the contents and instructions indicated in every page on
this module
2. Write on your notebook or any writing pad the concepts about the lessons.
Writing enhances learning, which is important to develop and keep in mind.
3. Perform all the provided activities in the module.
4. Let you facilitator/guardian assess your answers.
5. Analyze conceptually the post-test and apply what you have learned.
6. Enjoy studying!
Expectations - These are what you will be able to know after completing
the lessons in the module.
Pre-test - This will measure your prior knowledge and the concepts to be
mastered throughout the lesson.
Looking Back - This section will measure what learnings and skills that
you understand from the previous lesson.
Brief Introduction-This section will give you an overview of the lesson.
Activities - These are activities designed to develop critical thinking and
other competencies. This can be done with or without a partner depending
on the nature of the activity.
Remember - This section summarizes the concepts and applications of
the lessons.
Checking your Understanding - It will verify how you learned from the
lesson.
Post-test - This will measure how much you have learned from the entire
module.
2
LESSON 1: CREATING A SIMPLE WEBPAGE
EXPECTATIONS
Upon completion of the module, learners should be able to:
create a paragraph;
use attributes for <p>;
add single and multiple breaks;
add horizontal rule;
use attributes for <hr>; and
insert ordered and unordered list.
Directions: Choose the letter of the correct answer and write it on the space provided.
3
LOOKING BACK TO YOUR LESSON
Directions: Write the function and correct opening and closing tags of the
following elements below.
1. Header
2. Footer
3. Article
4. Navigation
5. Section
4
BRIEF INTRODUCTION
Most of the HTML elements that make up a webpage are usually text elements. All of
the text that can be seen in a webpage, which includes the titles, headers, and paragraphs,
are made using text elements. That is why text elements play a very important role in final
design and appearance of a webpage.
The HTML <p> element defines a paragraph. A paragraph always starts on a new
line, and web browsers automatically add white space (margin) before and after a paragraph.
Aligning a Paragraph
HTML paragraphs can be aligned using the paragraph tag pair <p align=“left”>,
<p align=“right”> or <p align=“center”>.
5
Attribute Function Values
align It indicates the horizontal alignment of the left
paragraph right
Ex. <p align=“right”>This paragraph center
should appear at the right side of justify
the screen</p>
In HTML, the display cannot be changed by adding extra spaces or extra lines in the
HTML code. The browser automatically removes any extra spaces and lines when the page
is displayed.
6
Adding Line breaks
The <br> tag create a line break or a new line. It is useful for writing addresses
or poems since web browsers ignore white spaces and pressing Enter in the keyboard does
not necessarily create a new line. The <br> tag is an empty tag which means that is has
no end tag.
7
Adding Horizontal Rule
The <hr> tag defines a thematic break in an HTML page, and is most often displayed
as a horizontal rule. The horizontal rule tag places a horizontal rule or line that extends to the
web browser’s width. The <hr> element is used to separate content (or define a change) in
an HTML document.
8
width It indicates the width of the horizontal rule number of pixels or number
in pixels or percent of the width displayed expressed as percent
by the web browser.
Ex. <hr width=“300”>
noshade It removes the default shading of the none
horizontal rule.
Ex. <hr noshade>
color It indicates the color of the horizontal rule. assigned name or
Ex. <hr color=“blue”> hexadecimal value of the
color
The width, length, and shading of horizontal rules can also be adjusted. GIF
images can also be used to create graphic horizontal rules.
9
Ordered List
Ordered lists are used to list items for which the order of items matter. To create an
ordered list, the <ol> </ol> tag is used. This is the type of list where each item is
numbered usually starting at 1 but this can be changed using the start attribute. Each item
in this list is starts with the <li> tag.
The ordered list has different types of numbering and can be specified
by putting the specified value for the type attribute.
1 for regular numbering (1, 2, 3, 4, 5, etc.) (default)
a for lowercase alphabet (a, b, c, d, e, etc.)
10
A for uppercase alphabet (A, B, C, D, E, etc.)
i for lowercase Roman Numeral (i, ii, iii, iv, v, etc.)
I for uppercase Roman Numerals (I, II, III, IV, V, etc.)
Attribute Function Values
type It indicates the type of numbering to be used in the list. 1, a, A, i, I
Ex. <ol type=“A”></ol>
start It indicates the value or number of the first item in the any number
list.
Ex. <ol type=“1” start=“2”></ol>
Unordered List
An unordered list is a list which the order of the list items does not matter. The ul
element opens and closes an unordered list. The items on the list are enclosed with list item,
<li>, tags.
11
There are different types of bullet for unordered list. It can be specified by putting the
specified value for the type attribute.
disc to set the list item marker to a bullet (default), ex. <ul type=“disk”>
circle to set the list item marker to a circle, ex. <ul type=“circle”>
square to set the list item marker to a square, ex. <ul type=“square”>
none to list the items without mark
12
ACTIVITY:
1.
2.
REMEMBER
The HTML <p> element defines a paragraph. A paragraph always starts on a new
line, and web browsers automatically add white space (margin) before and after a
paragraph. HTML paragraphs can be aligned using the paragraph tag pair <p
align=“left”>, <p align=“right”> or <p align=“center”>. In HTML, the display
cannot be changed by adding extra spaces or extra lines in the HTML code. The browser
automatically removes any extra spaces and lines when the page is displayed.
The <br> tag create a line break or a new line. It is useful for writing addresses
or poems since web browsers ignore white spaces and pressing Enter in the keyboard does
not necessarily create a new line. The <br> tag is an empty tag which means that is has
no end tag. The horizontal rule tag places a horizontal rule or line that extends to the web
browser’s width. The <hr> element is used to separate content (or define a change) in
an HTML document. The width, length, and shading of horizontal rules can also be adjusted.
GIF images can also be used to create graphic horizontal rules.
Ordered lists are used to list items for which the order of items matter. To create an
ordered list, the <ol> </ol> tag is used. This is the type of list where each item is
numbered usually starting at 1 but this can be changed using the start attribute. An
unordered list is a list which the order of the list items does not matter. The ul element
opens and closes an unordered list. Each item in this list is starts with the <li> tag.
13
CHECKING YOUR UNDERSTANDING
Directions: Choose the letter of the correct answer and write it on the space provided.
1. Elona would like to put an About Me content in her own webpage. This
content will contain a short description or introduction about her. Which element
should she use to properly display her content?
a. article c. line break
b. header d. paragraph
2. After inserting her About Me content, Elona realized her page would look
better if she will put a horizontal line below her title “About Me”. Which element
should she use?
a. horizontal rule c. ordered list
b. line break d. paragraph
3. Aside from her brief description, Elona would also like to insert the poem she
wrote about herself. Which element should she use to properly display it in the
web browser?
a. horizontal rule c. ordered list
b. line break d. paragraph
4. After her poem, Elona would also like to list down her hobbies. Which is
the correct type of list to use in this?
a. definition list c. random list
b. ordered list d. unordered list
5. Lastly, Elona would like to include a list of her Top 5 most favorite songs.
Which is the correct type of list to use in this?
a. definition list c. random list
b. ordered list d. unordered list
14
POST-TEST Multiple Choice
Directions: Choose the letter of the correct answer and write it on the space provided.
15
HOW TO USE THIS MODULE?
Before starting the module, I want you to set aside other tasks that will
disturb you while enjoying the lessons. Read the simple instruction below to
successfully enjoy the objectives of this kit. Have fun!
1. Follow carefully all the contents and instructions indicated in every page on
this module.
2. Write on your notebook or any writing pad the concepts about the lessons.
Writing enhances learning, which is important to develop and keep in mind.
3. Perform all the provided activities in the module.
4. Let you facilitator/guardian assess your answers.
5. Analyze conceptually the post-test and apply what you have learned.
6. Enjoy studying!
● Expectations - These are what you will be able to know after completing
the lessons in the module.
● Pre-test - This will measure your prior knowledge and the concepts to be
mastered throughout the lesson.
● Looking Back - This section will measure what learnings and skills that
you understand from the previous lesson.
● Brief Introduction-This section will give you an overview of the lesson.
● Activities - These are activities designed to develop critical thinking and
other competencies. This can be done with or without a partner depending
on the nature of the activity.
● Remember - This section summarizes the concepts and applications of
the lessons.
● Checking your Understanding - It will verify how you learned from the
lesson.
● Post-test - This will measure how much you have learned from the entire
module.
2
LESSON 1: CREATING AND MODIFYING TABLES
EXPECTATIONS
Upon completion of the module, learners should be able to:
● nest tables;
● format table border; and
● add image to a table.
Directions: Choose the letter of the correct answer and write it on the space
provided.
1. What are nested
tables? c. tables within rows
a. tables within headers d. tables within tables
b. tables within lists
2. Which of the following code creates an invisible border?
a. <table border=“0”> c. <table border=“none”>
b. <table border=“0%”> d. <table noborder>
3. Which of the following is the correct HTML code in adding image to a cell?
a. <table><img src=“Sample Picture.jpg”</table>
b. <td><img src=“Sample Picture.jpg”</td>
c. <tr><img src=“Sample Picture.jpg”</tr>
d. none of the above
4. Which table data attribute is used to add background color in a cell?
a. bcolor b. bgcolor c. ccolor d.
cellcolor
5. Which table data attribute merges multiple rows?
a. colspan b. nowrap c. rowspan d.
valign
6. What table data attribute merges multiple cells?
a. colspan b. nowrap c. rowspan d.
valign
7. Which table data attribute prevents or removes word wrapping in the cell?
a. nowrap b. nwrap c. wrap=“none” d.
wrap=“0”
8. Which table data attribute is used to add background image in a cell?
a. background b. backg c. bgcolor d.
bground
9. Which table attribute indicates the color of the border?
a. background b. bgcolor c. border d.
bordercolor
10. Which table attribute indicates the horizontal alignment of
the table?
a. align b. halign c. position d. valign
3
LOOKING BACK TO YOUR LESSON
4
BRIEF INTRODUCTION
Like lists, tables can be nested. Most web page developers use this strategy to
create a more appealing layout and structure. Nesting tables simply means creating a table
inside an existing table. Nesting tables can sometimes lead to complex layouts and
complicated HTML code. It can be tricky sometimes because of the number of tags and
attributes that should be in their correct order to get the desired layout.
To nest a table, the complete structure must be included, such as the <table>
element.
Nested tables should always be placed between <td> … </td> tags.
HTML code:
Output:
5
Creating Tables with Invisible Border
Tables can also be inserted without the borders being visible. Using the attribute of the
<table> element, set the value of border into 0.
HTML code:
Output:
6
Inserting an Image to a Table
Aside from plain text, images can also be inserted inside cells of a table. Simply use
the tag pair <td><img src=“url ”></td>.
HTML code:
Output:
7
ACTIVITY:
A. Directions: Practice creating a table by making your “My Favorites Page”. Follow the
structure/layout below and supply the needed information. Use the font, color, background,
etc. of your choice and apply your creativity!
REMEMBER
To nest a table, the complete structure must be included, such as the <table>
element.
Nested tables should always be placed between <td> … </td> tags.
Tables can also be inserted without the borders being visible. Using the attribute of the
<table> element, set the value of border into 0. On the other hand, for visible borders, the
value of the border attribute can be set to any number. Bordercolor can also be defined
either through color names or their hex code.
Aside from plain text, images can also be inserted inside cells of a table. Simply use
the tag pair <td><img src=“url ”></td>.
8
CHECKING YOUR UNDERSTANDING
Directions: Choose the letter of the correct answer and write it on the space provided.
1. Anya needs to submit the activity in webpage design given by their TLE-ICT
teacher. According to the instructions, she needs to apply nesting tables in a
webpage. What does nesting tables mean?
a. Inserting a table inside a image c. Inserting a table inside an paragraph
b. Inserting a table inside a list d. Inserting a table inside a table
2. Anya has already figured out what nesting tables mean and has successfully
nested a table in her webpage. However, she wants to remove the border of the
outside table. What should be the value of her border attribute?
a. 0 c. no border
b. 0% d. none
3. When Anya removed the border visibility of her outer table, she wanted to
change the color of her inside table to red. What is the correct HTML code that
she should use?
a. <table border=“0” bordercolor=“red”> … </table>
b. <table border=“1” bordercolor=”red”> … </table>
c. <table border=“none” bordercolor=“red”> … </table>
d. <table bordercolor=”red”> … </table>
4. After changing the bordercolor of her inside table, Anya wants to add
background image of the whole table. What is the correct HTML code that she
should use?
e. <table background=“heart.png”>
f. <table bgcolor=“heart.png”>
g. <table bground=“heart.png”>
h. <table background=“/heart.png”>
5. Lastly, Anya needs to insert an image inside a cell in the table. Which of
the following HTML code can she use to insert an image in the table?
i. <td img src=“C:\Downloads\welcome.jpg”> </td>
j. <td>img src=“C:/Downloads/welcome.jpg”> </td>
k. <td>img src=“triangle.jpg”> </td>
l. <td>img src=“/triangle.jpg”> </td>
9
POST-TEST Multiple Choice
Directions: Choose the letter of the correct answer and write it on the space
provided.
1. Which border=“0”>
a. <table of the following code creates an invisible
c. <tableborder?
border=“none”>
b. <table border=“0%”> d. <table noborder>
2. Which table attribute indicates the color of the border?
a. background b. bgcolor c. border d. bordercolor
3. Which table data attribute is used to add background color in a cell?
a. bcolor b. bgcolor c. ccolor d. cellcolor
4. Which table data attribute merges multiple rows?
a. colspan b. nowrap c. rowspan d. valign
5. What table data attribute merges multiple cells?
a. colspan b. nowrap c. rowspan d. valign
6. Which table data attribute prevents or removes word wrapping in the cell?
a. nowrap b. nwrap c. wrap=“none” d. wrap=“0”
7. Which table data attribute is used to add background image in a cell?
a. background b. backg c. bgcolor d. bground
8. Which table attribute indicates the horizontal alignment of the table?
a. align b. halign c. position d. valign
9. Which of the following is the correct HTML code in adding image to a cell?
a. <table><img src=“Sample Picture.jpg”</table>
b. <td><img src=“Sample Picture.jpg”</td>
c. <tr><img src=“Sample Picture.jpg”</tr>
d. none of the above
10. What are nested tables?
a. tables within headers c. tables within rows
b. tables within lists d. tables within tables
10