Webpage Design MODULE
Webpage Design MODULE
Webpage Design MODULE
Good day! Are you ready to start your day in a more productive way? If
yes, good job! Facebook, Myspace, Yahoo, Google, and Twitter are all
websites that people use every day, but how did they get there and how were
they created? Thus, website industry has become one of the fastest growing
industries during the past few decades in this world. Maintaining and
prepare yourself because this will help you find out the secrets of designing
a. Understand HTML
b. Know how to code webpage using HTML with a plain text editor
1
PRE-TEST:
Direction: Read the questions carefully. Choose the best answer and write it
2. What do you call the computer that hosts a website on the Internet?
B. Webpage D. Host
A. Protocol C. Filename
2
C. Tim Berners-Lee, 1990
7. Which among the following is the main reason why do people put up
A. <href> C. <vlink>
B. <a> D. <html>
A. Header/Banner C. Sidebar
13. What do you call the set of tags used to create a Webpage?
3
3. Determining Your Audience
A. 1,2,3,4,5,6,7 C. 1,2,3,4,5,7,6
B. 1,3,2,4,5,6,7 D. 2,1,3,4,5,7,6
16. What do you call the code for <tr> and <td> ?
A. Border C. Image
B. Tables D. Link
17. What do you call the code for <a href=" /pix/samples/14s.jpg">?
20. What do you call the amount of space held between the contents of the
4
LESSON 1
INTRODUCTION TO WEB PAGE
DESIGN
This part of the module will help you learn and acquire innovative skills
Good luck!
a. Define HTML
Are you ready? Before you learn more about the lesson, let us first
explore what you already know by performing the activity and answering the
1. Do you have any idea on how to build a website? If YES, sounds good…
2. What are examples of websites you already know? Give at least five.
DEFINITION OF TERMS
Webpage - is the lingua franca of the web. A group of electronic files stored
5
Website - a site or location on the world wide web. It may consist of one or
Web Browser - is the software that you need in order to find, retrieve, view,
Chat – a form of a real time communication where participants type what they
6
History of WWW (world wide web) and HTML
and prototyped ENQUIRE, a system for CERN researchers to use and share
hypertext system. Berners-Lee specified HTML and wrote the browser and
server software in late 1990. That year, Berners-Lee and CERN data systems
engineer Robert Cailliau collaborated on a joint request for funding, but the
project was not formally adopted by CERN. In his personal notes from 1990
he listed "some of the many areas in which hypertext is used" and put an
encyclopedia first.
the World Wide Web would be free to use for anyone. Before the introduction
protocols offer a simple directory structure which the user navigates and
"HTML Tags", first mentioned on the Internet by Tim Berners-Lee in late 1991.
HTML. Except for the hyperlink tag, these were strongly influenced by
HTML 4.
7
HTML stands for HyperText Markup Language. It is a markup
language that web browsers use to interpret and compose text, images, and
other material into visual or audible web pages. This is the Languange used to
create and link Web pages together. It is the “mother tongue” of your website.
An HTML document consists of only text – the main text of the document and
special instructions called tags. A Web page is designed by using tags. Tags
are the basic coding units in the HTML system. They are key words or
phrases that are enclosed by angle brackets <>. Tags describe how graphics
and text are to be displayed. They are also used to create links between
Firefox and Google Chrome. These are the tools that can be displayed and
search engine?
Edge, or Apple's Safari. These are also often called "web pages" or just
"pages."
"Hosting" means that all the web pages and their supporting files are available
8
on that computer. The web server will send any web page from the website it
A search engine is a website that helps you find other web pages,
elements from other websites with suitable markup anchors. Web pages are
and privacy for the user. The user's application, often a web browser, renders
the page content according to its HTML markup instructions onto a display
terminal.
A static website is one that has web pages stored on the server in the
visitors.
9
A dynamic website is one that changes or customizes itself frequently
fly" by computer code that produces the HTML (CSS are responsible
for appearance and thus, are static files). There are a wide range of
software systems, such as CGI, Java Servlets and Java Server Pages
(JSP), Active Server Pages and ColdFusion (CFML) that are available
business and sell actual items. People can even bid online
10
People can also put up websites to show off their talents and
uniqueness to the whole world. In some cases, site that have become
a hit can be an avenue for income. This can be done by placing ads
There are agencies that attach one liner ads to sites and pay the site
owner a reasonable amount for the space. The most famous site is the
Youtube.com.
through websites. Vlogs is one of the example of this. Inform the public
community.
11
4. To create communities
forums. Forums are popular online venues where people can talk and
gang violence and drug abuse as public health concerns that affect
everyone, not just individuals. If you asked most people whether they
wanted to stop gang violence, they’d say yes. But they really don’t
and community members to find out more about public health and
12
5. To Search for Information
what people need with what other people have. Swap sites offer
for tutorials wherein it may feel like that the instructor is standing
an algebraic expression.
13
5 PARTS OF A WEBSITE AND THEIR DESIGN TRENDS
1. Header/Banner
products and services usually have banners that feature their latest
2. Navigation Bar
advantages:
14
Content marketing – you will be able to market other contents of
your website.
sidebar.
4. Content
combination of those.
5. Footer
Trends:
About us link
Contact us link
Terms of service
Privacy policy
Sitemap
Social media buttons
Address
Phone number
E-mail address
Other offers
Related links/posts
Subscription boxes
15
ANATOMY OF A URL
Every file in the internet has a UNIQUE URL. Web programs use the URL to
retrieve the file from the host computer and the directory in which it resides.
URL’s are translated into numeric addresses using the Internet DOMAIN
16
A domain name is an identification string that defines a realm of
a web site, or the web site itself or any other service communicated via the
- CSU – csu.edu
.edu -education - CNHS – cnhs.edu
&
Universities
government-related Education –
17
entities deped.gov
.org - organization
nonprofit)
Internet service
- Canada- .ca
.xx - Australia- .au
18
Self-check 1
separate sheet.
1
2
3
4
5
6
7. HTTPS
8. WWW
19
9. HTML
10. JPEG
LESSON 2
Now that you have already learned the history of the internet. Are you
ready for our next lesson? If yes, good! If not, think twice.
HTML;
Before you learn more about the lesson, let us first explore what you
Instruction: List five (4) browser for computer and mobile phones you
are familiar with. Write your answer on the bubbles provided below:
20
COMPUTER MOBILE PHONE
BROWSER BROWSER
One of the mistakes that new Web developers commit is to start
building a Web page without prior planning. Start answering the following
questions:
Advertise products
Your School web site, Batch web site, Personal web site,
site goals? Information that goes into a web site must be well-selected,
21
Example: Building a School Site (look into the school archives, get info
from the library, school history, mission and vision, past administrators,
videos).
school?
your main bases for determining the theme and “LOOK and FEEL” of
your site. Use the same type/font style, size, background color, position
of logo and other navigation tools such as menu items, buttons and the
22
2. Links – add interactivity to the page.
2. CSS codes
Sublime)
written in Notepad.
CSS – Cascading Style Sheet, allows you to layout your web page
specifications.
exactly the how web page look like “What you see is what you get”.
Complete the webpage and test the site. Check if all text is displayed
as you have planned them. Test to make all other media elements load
properly. Now upload the site. You will need a web server in a host
23
Web server has two components:
2. A web server software that can manage the request for information
in browser.
1. Editor – using the Notepad (source code) in text and extension name
- .html or .htm.
Syntax:
24
<Html>
<Head>
<Title></Title>
</Head>
<Body></Body>
</Html>
Sample code:
Output:
25
How to do it?
Programs/Accessories/NOTEPAD)
2. Save the activity. Select FILENAME. Type .html at the end of the
3. Click SAVE. (Make sure to create a folder named after you to organize
TAGS
26
</HEAD> - cose tag for the head
browser window.
</TITLE> -close tag for the title
HORIZONTAL to separate
These are
NORMAL TEXT -The text that makes up the main content of the
Web page.
or bulleted
list.
with white or
27
gray background.
IMAGES These
<BODY> navigate
browser
the
server.
PARAGRAPH
28
STARTING NOTEPAD
Notepad has different parts, namely, the main menu bar, the scroll
bars, and the text are. The main menu bar displays all the commands in the
program. The scroll bar is used to display different portions of the text file in
the window. There are two kinds of scroll bars: the vertical and the horizontal
scroll bars. The text area is the place where you input the text.
29
TO SAVE THE HTML FILE USING NOTEPAD
1. From the Menu bar, click the File menu and then click Save or Save As.
The Save As dialog box displays and changes the Save-in box to the target
folder or drive.
2. Type the filename inside the Filename box below. (Remember to use
30
Let’s See What You Have Learned!
NOTEPAD application.
2. From the Menu bar, click the File menu and then click Save or Save As.
The Save As dialog box displays and changes the Save-in box to the target
folder or drive.
3. Type the filename inside the Filename box below. (Remember to use
31
Self-check 2
3
4
5
6
32
LESSON 3
THE HTML TAGS
In the previous lesson, you have learned the step in opening notepad
application. Similarly, you have gained knowledge of the elements of the web
and its parts. Now it is time to learn how to code and follow the correct syntax
of HTML.
a. Define tags
The Beginning tag and END Tag. </> forward slash before the
command.
</HEAD> tag.
You can set title of your page declaring it inside a <TITLE> </TITLE>
33
RULES IN USING TAGS
3. Most tags come in pairs: the starting tag and the ending tag.
4. The browser ignores spaces around the tags. To read the codes easily, it is
1. Document Structure
<HTML>
<HEAD>
<TITLE> BOOK</TITLE>
</HEAD>
<BODY>
HELLO!
</BODY>
</HTML>
2. Formatting
<HTML>
<HEAD>
<TITLE> hi</TITLE>
</HEAD>
<BODY>
<H1>My First Web page design</H1>
<H3>HELLO</H3>
</BODY>
</HTML>
34
3. Links <HTML>
<HEAD>
<TITLE>hi</TITLE>
</HEAD>
<BODY>
<H1>My First Web page</H1>
<H3>HELLO!</H3>
<A HREF=“C:\publication.htm”>click
this link</A>
</BODY>
</HTML>
<HTML>
4. Image <HEAD>
<TITLE> hi</TITLE>
</HEAD>
<BODY>
<H1>My First Web page</H1>
<H3>HELLO!</H3>
<img src="1.jpg" width="350"
height="300" alt="Photo of three cats">
</BODY>
</HTML>
of the document.
in
35
the body of the Web page but on the
This indicates the beginning and the end of the heading section. “H”
represents the heading and “*” represents the size. There is a special tag for
from <h1> for the most important, to <h6> for the least important.
36
FORMATTING TEXT TAGS
The Text formatting feature is a powerful tool for organizing the content
of your Web pages and for easier navigation. The HTML tags <BR> and <P>
are used to format the text. They control the space between the lines of text
Command/Code Function
The <br> tag inserts a single line break. The <br> tag is
37
SYNTAX
OUTPUT
CREATING LIST
1. Unordered List
unordered list (as long as it doesn't matter which order you get each item).
To create an unordered list, use the <ul> element to define the list, and
38
SYNTAX: <ul>
</ul>
SYNTAX
OUTPUT
2. Ordered List
Also known as (numbered) list. Ordered lists should be used for when
the order is important. They should be used only in cases where, if you were
to change the order, it would change the meaning. For example, a list of step
by step instructions should be placed in an ordered list if the order of the steps
39
are important (i.e. the steps need to be carried out exactly in the same order
To create an ordered list, use the <ol> element to define the list, and
SYNTAX: <ol>
</ol>
SYNTAX
OUTPUT
40
Let’s See What You Have Learned!
41
Self-check 3
Multiple Choice. Directions: Read the questions carefully. Choose the best
A. <h1> C. <heading>
B. <head> D. <h6>
A. Brackets
B. Parenthesis
C. Double Quote
D. Asterisk
A. p B. hr C. br D. break
A. < B. * C. ^ D. /
6. <HTML>
7. <HEAD>
8. <BODY>
9. <TITLE>
10. <P>
42
LESSON 4
HTML TEXT FORMATTING
In the previous lesson, you have learned the different functions of tags
used in web designing and apply the rules in using tags. Similarly, you have
gained knowledge in creating lists. Now it is time to learn how to code and
HTML provides us with the ability for formatting text just like we do it in
We can make the text bold using the <b> tag. The tag uses both
opening <b> and closing tag </b>. We can also use the <strong> tag
43
SYNTAX OUTPUT
The <i> tag is used to italicize the text. The tag uses both opening <i>
and closing tag </i>. We can also use the <em> tag to emphasize the text,
with added semantic importance. It also opens with <em> tag and ends with
</em> tags.
SYNTAX OUTPUT
44
3. Highlighting a Text
It is also possible to highlight a text in HTML using the <mark> tag. The
SYNTAX OUTPUT
used to subscript a text. They have both opening and closing tags.
SYNTAX OUTPUT
45
5. Making text smaller or bigger
The <small> element is used to make the text smaller. The text that
tag. The <big> element is used to make the text smaller. The text that needs
SYNTAX OUTPUT
The <del> element is used to strike through the text marking the part
as deleted. The tag uses both opening <del> and closing tag </del>.
SYNTAX OUTPUT
46
7. Placing underline in a text
We can put underlined text using the <u> tag. The tag uses both
SYNTAX OUTPUT
Used to affect the style (color, typeface, and size) of the enclosed text.
<font> </font>
SYNTAX OUTPUT
47
9. <abbr>… </abbr> - Identifies the enclosed text as an abbreviation. It has
SYNTAX OUTPUT
sheet.
</ACRONYM>
48
SYNTAX OUTPUT
11. <blink> … </blink> - Causes the contained text to flash on and off.
13. <tt> … </tt> - Formats enclosed text as typewriter text. The text enclosed
generally formatted in italic type with a line break (but no extra space)
SYNTAX OUTPUT
49
2. <blockquote> … </blockquote> - Enclosed text is a blockquote, which is
generally displayed with an indent on the left and right margins and
SYNTAX OUTPUT
3. <div> … </div> - Denotes the beginning and end of a division of the page.
align=center|left|right - Aligns the text within the tags to the left, right, or
SYNTAX
OUTPUT
50
4. <h1> … <h6> - specifies that the enclosed text is a heading. There are six
SYNTAX OUTPUT
5. <p> … </p> - Denotes the beginning and end of a paragraph when used as
container.
SYNTAX
OUTPUT
51
6. Horizontal Rule - Places a horizontal line in the page.
SYNTAX
OUTPUT:
The following tags give authors control over the line breaks, alignment, and
1. Line Break - You can force a line break by using the <br> element. It is an
SYNTAX OUTPUT
52
2. <center> … </center> - Centers the enclosed text horizontally on the
page, same as <DIV align = center>.
SYNTAX
OUTPUT
3. <nobr> … </nobr> - Text (or graphics) within the “no break” tags will
always display on one line, without allowing any breaks. The line may run
beyond the right edge of the browser window, requiring horizontal scrolling.
2. It allows you to emphasize a certain word or text and idea on your Web
page.
53
Let’s See What You Have Learned!
54
Self-check 4
Multiple Choice. Directions: Read the questions carefully. Choose the best
A. <i> C. <strong>
B. <u> D. <em>
A. <br> C. <strong>
B. <p> D. <em>
A. <i> C. <b>
B. <u> D. <em>
A. <highlight> C. <blink>
B. <abbr> D. <mark>
A. <nbr> C. <hr>
B. <div> D. <br>
6. Line break
7. Bold text
8. Italic text
9. Underline text
55
LESSON 5
ADDING IMAGES IN WEBPAGE
exciting? During the last lesson you were able to perform simple coding your
first webpage. This time you will face more challenging tasks.
Before you learn more about the lesson, let us first explore what you
and all you have to do is to predict what will happen after the action is taken.
56
A web page with all text and no pictures isn’t much fun. The Web’s
explosion into mass popularity is due in part to the fact that there are images
on the page. A file format is a standard way that information is encoded for
information in a digital storage medium. It refers to the way data are arranged
Attribute
<IMG SRC=”luneta.jpg”>
IMG stands for “image”. It tells to the browser that an image will go here on
the page.
SRC stands for “source”. It tells the browser where to go to find the image.
The commonly used image file formats are: .gif and .jpeg. GIF stands for
Experts Group.
57
HOW TO INSERT IMAGE IN HTML?
containing only attributes since the closing tag is not required. Just keep in
mind that you should use the <img> tag inside <body>…</body> tag. The src
ALIGNING IMAGE
The placement of the image on the page can be controlled by using the
Image Align
Attribute Function
left or right Aligns to the side and wraps the text above, around, and
below it.
middle Aligns the baseline of the current line with the middle of
the image
58
absmiddle Aligns the middle of the current line with the middle of the
image.
Baseline Aligns the bottom of the image with the baseline of the
bottom current
bottom line.
absbottom Aligns the bottom of the image with the bottom of the
current line.
Although src is the only truly required attribute in the <img> tag, a few
others come strongly recommended. The first is alt, discussed in the previous
section. width and height are the others. The width and height attributes
SYNTAX OUTPUT
59
ADDING BORDER TO THE IMAGE
You set the <IMG> tags BORDER attribute to the width of the border in pixels.
Borders may be set from 0 to 10. If you set it to 0, you will not see any border.
SYNTAX OUTPUT
60
CREATING BACKGROUND
1. Background color
SYNTAX OUTPUT
2. Background Image
SYNTAX OUTPUT
61
MARQUEE
The HTML <marquee> element is used to insert a scrolling area of text. You
can control what happens when the text reaches the edges of its content area
MARQUEE ATTRIBUTES
1.behavior - Sets how the text is scrolled within the marquee. Possible values
is scroll.
value.
3. direction- Sets the direction of the scrolling within the marquee. Possible
value is left.
6. loop - Sets the number of times the marquee will scroll. If no value is
specified, the default value is −1, which means the marquee will scroll
continuously
default value is 6.
milliseconds. The default value is 85. Note that any value smaller than
specified.
62
9. truespeed - By default, scrolldelay values lower than 60 are ignored.
SYNTAX
OUTPUT
63
Let’s See What You Have Learned!
64
SELF-CHECK 5
Multiple Choice. Directions: Read the questions carefully. Choose the best
page?
of text?
in a web page?
B. <bgcolor = pink>
65
5. Which of the following is the correct syntax in adding background color
in a web page?
A. <body bg = picture.jpg>
Direction: Match the syntax/code of the following with its correct output.
COLUM A COLUMN B
1. A.
2. B.
3. C.
66
LESSON 6
CREATING HYPERLINK
On your previous lesson you were able to learn ways on how to insert
But before you learn more about this lesson, let us first explore what
1. What is a hyperlink?
a. Define hyperlink
loaded. Hyperlinks are what connect pages and other resource all over the
web to each other. They are what makes the web what it is. Without
You can find hyperlinks in all sorts of places. Mostly they show up in text, but
67
HYPERLINK STYLES
The linked text is called the anchor text for the link. Most of the time, a
LINK EXAMPLES
1. To a local file:
<A HREF="filename.html">...</A>
2. To an external file:
<A HREF="http://server/path/file.html">...</A>
3. To a named anchor:
<A HREF="http://server/path/file.html#fragment">...</A>
<A HREF="#fragment">...</A>
<A HREF="mailto:username@domain">...</A>
<A HREF="ftp://server/path/filename">...</A>
The anchor (<a>) tag is used to identify a string of text or an image that
68
reference) attribute specifies the destination address. In its simplest
Clicking on the link text will send you to the specified address.
SYNTAX OUTPUT
69
CHANGING THE HTML LINK COLORS
Link color specifications in the <body> tag are applied to the whole document.
Active links <BODY Sets the color for a link while it is in the
You can override the color of a specific link by placing <font> tags
within the anchor tags. There is no way to set the visited link and active link
colors for specific links. This feature is supported by versions 3.0 and 4.0 of
link</FONT></A>
70
SYNTAX
OUTPUT
SYNTAX OUTPUT
71
IMAGE AS LINK
The image link is used as the linking tool in connecting to another Web page
or Web site. To make a graphic a link, place anchor tags around the image
SYNTAX
OUTPUT
MAIL LINKS
Here’s a nifty little linking trick: the mailto link. By using the mailto
protocol in a link, you can link to an email address. When the user clicks on a
mailto link, the browser opens a new mail message preaddressed to that
MANDAC</a>
72
SYNTAX
OUTPUT
73
Let’s See What You Have Learned!
74
Self-check 6
Multiple Choice. Directions: Read the questions carefully. Choose the best
A. HTML
B. Syntax
C. Output
D. Hyperlink
A. <href>
B. <a>
C. <vlink>
D. <html>
web page?
MANDAC</a>
MANDAC</a>
75
D. <a href="mailto:[email protected] ">Contact NORIE
MANDAC
specific Link?
link</FONT></A>
link</FONT></A>
link</FONT>
link</FONT>
Direction. Write True if the statement is correct and FALSE if the statement is
wrong.
document.
7. You can find hyperlinks in all sorts of places, mostly they show up in text,
8. The anchor (<a>) tag is used to identify a string of text or an image that
9. You can override the color of a specific link by placing <font> tags within
76
LESSON 7
ADDING TABLES
In the last lesson you were able to learn and understand how to insert
hyperlink in a web page. You were also able to experience how to apply them
on your hands on activity. The next lesson is all about adding tables in a
webpage.
a. Define table
g. Set the border color and background color for table row.
HTML tables were created to add tabular material (data arranged into
TABLE ATTRIBUTES
77
To display a border for table, use the BORDER attribute.
value
thicker.
SPANNING CELLS
allows you to create complex table structures, but it has the side effect of
making the markup a little more difficult to keep track of. You can make a
78
1. Column spans
element, stretch a cell to the right to span over the subsequent columns. Here
SYNTAX:<table> OUTPUT:
<table border="3">
<tr>
<th colspan="2">Fat</th>
</tr>
<tr>
</tr>
</table>
2. Row spans
Row spans, created with the rowspan attribute, work just like column
spans, except they cause the cell to span downward over several rows.
<table border="3">
<tr>
<td>Small (8oz.)</td>
</tr>
<tr>
<td>Medium (16oz.)</td>
79
</tr>
<tr>
<td>Large (24oz.)</td>
</tr>
</table>
1. Cell padding
Cell padding is the amount of space held between the contents of the
cell and the cell border. If you don’t specify any cell padding, the cells will
SYNTAX: <table>
<tr>
<td>CELL 1</td>
<td>CELL 2</td>
</tr>
<tr>
<td>CELL 3</td>
<td>CELL 4</td>
</tr>
</table>
80
2. Cell spacing
number of pixels. If you don’t specify anything, the browser will use the default
SYNTAX:<table>
<table border="3">
<tr>
<td>CELL 1</td>
<td>CELL 2</td>
</tr>
<tr>
<td>CELL 3</td>
<td>CELL 4</td>
</tr>
</table>
Table width and height allows you to control the width and height of the
table.
SYNTAX OUTPUT
81
SETTING BORDER COLOR AND BACKGROUND COLOR FOR TABLE
ROW
These attributes set the colors of the borders and the background for a table
row.
SYNTAX
OUTPUT
FRAME 1 FRAME 2
82
Let’s See What You Have Learned!
83
SELF-CHECK 7:
A. <table><tr><td>
B. <table><tr><tt>
C. <table><head><tfoot>
D. <thead><body><tr>
2. Which among the following is the correct syntax for table row?
A. <tr></tr>
B. <td> </td>
C. <tr> <tt>
D. <table></table>
3. What do you call the amount of space held between the contents of the
4. Which of the following allows you to stretch a cell to cover several rows
or columns?
5. Which among the following is the correct syntax for table data?
A. <tr></tr>
B. <td> </td>
C. <tr> <tt>
D. <table></table>
84
LESSON 8
ADDING FORMS
Good job, you were able to create a simple table with correct syntax
and you were able to change the format. Now, you are ready to take the next
But before we move on further with your lesson, let us check the things
1.
2.
3.
85
Adding Web forms to your Web pages, allows you to communicate
through your Web site. Web form allows the user to enter information and
provides predefined choices from which the user can select. Forms can
resemble paper or database forms because web users fill out the forms using
The HTML <form> element defines a form that is used to collect user input:
The <input> element is the most important form element. The <input> element
Type Description
many choices)
form)
text input
SYNTAX
OUTPUT
clicked.
2. Reset Button– clears the form and returns all the settings to their original
default values.
87
2. Radio Button Input - let the user select ONE of a limited number of
choices.
OUTPUT
88
3. The Submit Button
Syntax: <input type="submit"> Function: defines a button for submitting the form
data to a form-handler. The form-handler is typically a server page with a script for
OUTPUT
Check boxes allow users to make multiple selections from a list. They
display an array of choices that are all visible at once, and from which users
89
checkbox. The checkbox is shown as a square box that is ticked (checked)
when activated. Checkboxes are used to let a user select one or more options
SYNTAX
OUTPUT
90
CREATING A PASSWORD TAG
Several Web sites would require the user to input a password to be able to
access any of the Web pages. The MAXLENGTH attribute specifies the
MAXLENGTH is used, which is longer than the size of the text field, then the
text field will scroll to allow the user to enter more data. If MAXLENGTH is not
included in the code, the user may type any amount of text. But in most
PASSWORD fields, you will notice that there is limitation on the number of
SYNTAX
OUTPUT
91
GROUPING FORM DATA WITH <fieldset>
SYNTAX
OUTPUT
92
Let’s See What You Have Learned!
93
SELF-CHECK 8:
A. Input element
B. Checkbox element
D. Field set
A. <input type="radio">
B. <input type="text">
C. <input type="submit">
A. <input type="radio">
B. <input type="text">
C. <input type="submit">
form?
A. <legend> C. <form>
A. <input type="radio">
B. <input type="text">
C. <input type="submit">
94
LESSON 9
ADDING FRAMES
Good job, you were able to create forms with correct syntax. Now, you
a. Define frames
Frames are a method for dividing the browser window into smaller sub-
windows, each displaying a different HTML document. It works very much like
Tables. They are used to divide the screen into two or more Web pages, and
used to assist in the navigation of many pages over a large number of topics.
CREATING FRAMES
To use frames on a page we use <frameset> tag instead of <body> tag. The
<frameset> tag defines, how to divide the window into frames. The rows
attribute of <frameset> tag defines horizontal frames and cols attribute defines
vertical frames. Each frame is indicated by <frame> tag and it defines which
95
The <frameset> Tag Attributes
Attribute Description
ways −
80%, 10%".
rows This attribute works just like the cols attribute and
96
border should be displayed between frames. This
Attribute Description
src This attribute is used to give the file name that should
97
the frameborder attribute on the <frameset> tag if one
(no).
marginwidth space between the left and right of the frame's borders
"framedescription.htm"
98
SYNTAX
OUTPUT
Frame 1 Frame 2
SPECIFYING ROWS
The frameset row attributes specifies the row height of each row (vertical)
99
area of the browser window (variable), or as a relative value of space
symbol.
SYNTAX
OUTPUT
Frame 1
Frame 2
100
Different examples of framesets:
SYNTAX OUTPUT
<frameset rows="16%,84%">
<frameset cols="50%,50%"> Act1 Act2
<frame src="act1.html" name="act1">
<frame src="act2.html" name="act2">
</frameset> BOTTOM
<frame src="bottom.htm" name="bottom">
</frameset>
<frameset rows="16%,84%">
<frame src="top.htm" name="top"> TOP
<frameset cols="50%,50%">
<frame src="left.html" name="left">
<frame src="right.html" name="right"> left right
</frameset>
</frameset>
101
Let’s See What You Have Learned!
page
application
Equipment:
Steps/Procedure:
2. Open Notepad
6. Click save
Assessment Method:
102
PERFORMANCE CRITERIA CHECKLIST 9
CRITERIA YES NO
Did you…
103
LESSON 10
ADDING HTML MULTIMEDIA
past lesson. Now, you are ready to take the last lesson adding of multimedia.
a. Define multimedia
But before we move on further with your lesson, let us check the things you
1.
2.
3.
WHAT IS MULTIMEDIA?
anything you can hear or see. Examples: Images, music, sound, videos,
records, films, animations, and more. Web pages often contain multimedia
104
Multimedia Formats
Multimedia elements (like audio or video) are stored in media files. The
most common way to discover the type of a file, is to look at the file extension.
video.
in HTML5.
105
QuickTime .mov Developed by Apple. Commonly used in video
AUDIO FORMATS
MP3 is the newest format for compressed recorded music. The term
MP3 has become synonymous with digital music. If your website is about
106
.midi format for all electronic music devices like
browsers.
browsers.
Supported by HTML5.
by HTML5.
MP3 .mp3 MP3 files are actually the sound part of MPEG files.
MP4 .mp4 MP4 is a video format, but can also be used for
107
audio. MP4 video is the upcoming video format on
Before HTML5, a video could only be played in a browser with a plug-in (like
Browser Support
The numbers in the table specify the first browser version that fully supports
OUTPUT:
108
HOW IT WORKS?
The controls attribute adds video controls, like play, pause, and
height and width are not set, the page might flicker while the video loads.
which the browser may choose from. The browser will use the first recognized
format.
The text between the <video> and </video> tags will only be displayed
109
SYNTAX
OUTPUT:
Note: The autoplay attribute does not work on some mobile devices
110
HTML VIDEO TAGS
Tags Description
Before HTML5, audio files could only be played in a browser with a plug-in
(like flash). The HTML5 <audio> element specifies a standard way to embed
Browser Support
The numbers in the table specify the first browser version that fully supports
SYNTAX
111
OUTPUT:
The controls attribute adds audio controls, like play, pause, and volume.
The <source> element allows you to specify alternative audio files which the
browser may choose from. The browser will use the first recognized format.
The text between the <audio> and </audio> tags will only be displayed in
Tags Description
112
Sample output
113
Let’s See What You Have Learned!
Direction: Read and follow the following steps below. (Self-Check 10.1)
Equipment:
Steps/Procedure:
2. Open Notepad
3. Type the correct syntax/code in adding audio and video in the web page
6. Click save
Assessment Method:
114
Performance Criteria Checklist 10.1
CRITERIA YES NO
Did you…
Specify the correct height and width of the video in your web
115
Self-Check 10.2
Equipment:
Steps/Procedure:
2. Open Notepad
5. Create a folder (FINAL WEBPAGE), All html pages must have the
6. Click save
Design Guidelines
116
and when clicked on shows the specific page/event/content and allows
D. Main Page Area. The area where the main event will appear.
Assessment Method:
Demonstration, Criteria
117
Criteria Percentage
Combination of materials
Additional use
Methods/Workmanship/Hyperlink 30
Functionality 20
Affordability
Visual appeal
Flow of thoughts
TOTAL 100%
POST-TEST:
Direction: Read the questions carefully. Choose the best answer and write it
118
1. Which of the following is NOT a part of a website?
A. Header/Banner
B. Navigation Bar
C. Sidebar
D. Interaction
automatically?
A. Dynamic C. HTML
B. Static D. HTTP
4. Which of the following type of website that can be save on the server in the
A. Dynamic C. HTML
B. Static D. HTTP
A. Web server
B. Website
C. Webpage
119
D. Search Engine
7. What do you call the collection of related web pages, including multimedia
B. Website D. HTML
B. Website D. HTML
B. Website D. HTML
10. Which of the following specifies the internet address of a file stored on a
A. HTML C. URL
B. HTTP D. WWW
A. Protocol C. Host
B. Path D. Filename
A. Protocol C. Host
120
B. Path D. Filename
A. <\HTML> C. <!HTML>
B. <?HTML> D. </HTML>
17. What do you call the code for <form> <input type="radio" name="lunch"
Risotto </form>?
20. Which of the following is the syntax for bold style text?
Let’s Summarize!
After carefully reading all the topics, answering all the guide questions
and activities, and doing all the challenges, always remember that!
121
Hypertext Mark-up Language is a markup language that web
Firefox and Google Chrome. These are the tools that can be
format.
Have a Plan. Ask yourself, 1. Why are you building a Web site?
your site?
Answer Key:
Pre-test:
1. D 11. A
2. A 12. D
122
3. C 13. A
4. A 14. D
5. B 15. C
6. C 16. B
7. D 17. D
8. D 18. D
9. D 19. D
10. A 20. C
LO1 – SELF-CHECK1
1. protocol
6. filename
LO2- SELF-CHECK2
6 123
4 Designing the Site and Navigation
LO3 – SELF-CHECK3
1. A
2. A
3. C
4. D
5. A
6. </HTML>
7. </HEAD>
8. </BODY>
9. </TITLE>
10. </P>
LO4 – SELF-CHECK4
1. D
2. B
3. B
124
4. D
5. C
6. <br>
7. <b>
8. <i>
9. <u>
LO5 – SELF-CHECK5
1. A
2. D
3. B
4. A
5. C
125
LO6 – SELF-CHECK6
1. D
2. A
3. A
4. A
5. A
6. TRUE
7. TRUE
8. TRUE
9. TRUE
10. FALSE
LO7 – SELF-CHECK7
1. A
2. A
3. A
126
4. B
5. B
LO8 – SELF-CHECK8
1. A
2. A
3. C
4. B
5. D
6.
POST-TEST
1. D 11. A
2. D 12. C
3. A 13. D
4. B 14. B
5. C 15. C
6. A 16. D
7. B 17. A
8. A 18. C
9. C 19. B
10. C 20.
REFERENCES:
en.wikipedia.org/wiki/HTML
https://brahmaitsolutions.com/benefits-of-using-images-in-web-pages/
127
https://www.conservationtools.org
https://www.geeksforgeeks.org/most-commonly-used-tags-in-html/
https://www.shopee.com/html
https://www.tutorialspoint.com/html/html_frames.htm
https://www.w3schools.com/html
https://www.youtube.com/html
128
129