D Computing Fundamentals Quarter 3 Module 4 Tanongtanong
D Computing Fundamentals Quarter 3 Module 4 Tanongtanong
Pre-assessment 1
Objectives 2
Testing Your Page in a Browser 2-3
References 8
Pre-assessment
2. It helps in defining the hierarchy and the structure of the web page content.
A. Body C. Title
B. Headings D. Paragraphs
3. It appears on the title bar of the browser.
A. Body C. Title
B. Headings D. Paragraphs
4. This heading must have the biggest font size.
A. <h1> C. <h6>
B. <h2> D. <h4>
5. This heading will have the smallest font and least essential among the headings.
A. <h3> C. <h6>
B. <h1> D. <h5>
6. What tag defines the main content of the HTML document?
A. Title C. Body
B. Head D. Paragraph
7. Everything that appears on your Web page may it be the texts, the images, the videos, etc.
should then be put on this tag.
A. Head C. Title
B. Paragraph D. Body
8. What is the syntax for the body tag?
A. <body><body> C. <body><body/>
B. <body></body> D. None of the above
9. These engines use the headings to index the structure and content of your web pages.
A. Game engine C. Software framework
B. Search engine D. Layout engine
10. Don't use headings to make text BIG or bold.
A. True C. Maybe
B. False D. None of the above
1
OBJECTIVES:
There are many widely used web browsers, including Internet Explorer, Firefox, Chrome,
Safari and Opera. And there are dozens of mobile browsers available, with more in development
as each new device arrives on the shelves. But, not all browsers, and versions of those browsers,
work the same.
Browsers
2. Test the page. The first page of your web page will appear.
2
3. Refresh your Browser. If you want to change the code in Notepad for any adjustments while
the web page is open, click the Refresh button, press F5 or right click then click Reload.
Refresh button
Reload
Each HTML page requires a title to indicate what the page describes. It appears on the title bar
of the browser. You have to use a title that is brief, relevant and descriptive of the content.
<html>
<head>
<title> Latest IT Books</title> Title
</head>
<body>
Office productivity with MS Office 2007, Internet and
Communication Technology for Grade 7-9, Internet and Computing Fundamentals for
Grade 7-9 and Computer Hardware Servicing for Grade 8
</body>
</html>
3
2. Test Your Page
Save your file and view the result.
Title
Heading Tags
Headings help in defining the hierarchy and the structure of the web page content.
HTML files are divided into two parts: the heading and the body. A document has a main
heading and sub-headings and they are assigned font sizes to differentiate one from the other.
The main heading will have the biggest font size and designated 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. In most applications however, you would probably use 3 headings at the
most.
<html>
<head> Main heading
<title> Latest IT Books</title>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
Heading levels
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</body>
</html>
4
Different
heading
levels
Note: Only use one <h1> per page - this should represent the main heading/subject for the whole
page. Also, do not skip heading levels - start with <h1>, then use <h2>, and so on.
Browser Support
Search engines use the headings to index the structure and content of your web pages.
Users often skim a page by its headings. It is important to use headings to show the document
structure. <h1> headings should be used for main headings, followed by <h2> headings, then
the less important <h3>, and so on.
Note: Use HTML headings for headings only. Don't use headings to make text BIG or bold.
Body Tags
The HTML <body> tag defines the main content of the HTML document or the section of
the HTML document that will be directly visible on your web page. This tag is also commonly
referred to as the <body> element.
Everything that appears on your Web page may it be the texts, the images, the videos,
etc. should then be put on the body which is enclosed in <body></body> tags.
Syntax
In HTML, the syntax for the <body> tag is:
<body>
</body>
5
1. Add the <body> Tag Pair
Body
Body
Note:
The HTML <body> element is found within the <html> tag.
The most common elements to be placed in the HTML <body> tag
are: <h1>, <p>, <div>, <table> tags.
Browser Compatibility
The <body> tag has basic support with the following browsers:
Chrome
Android
Firefox (Gecko)
Firefox Mobile (Gecko)
Internet Explorer (IE)
Edge Mobile
Opera
Opera Mobile
Safari (WebKit)
Safari Mobile
6
Exiting the Web Page and HTML File
1. Click the Close button on the Notepad title bar or on the Menu Bar, click File and click Exit.
2. Click the Close button on the Web page or on the Menu bar, Click File, and click Exit.
Act 3.2
In a long bond paper with ½ margin in all sides. Create a basic HTML page
containing five sentences about yourself.
Post-assessment
Exercise 1
Instructions:
1. Use one whole yellow pad. Copy and write your answer in the box.
2. Add six headings to the document with the text "Cheer up".
3. Start with the most important heading (the largest) and end with the least important heading
(the smallest).
<html>
<body>
</html>
</body>
Exercise 2
Instructions:
1. Use one whole yellow pad. Copy and write your answer in the box.
2. Mark up the text with appropriate tags:
"Universal Studios Presents" is the most important heading.
"Jurassic Park" is the next most important heading.
"About" is the third most important heading.
The last sentence is just a paragraph.
7
Start with the most important heading (the largest) and end with the least important heading
(the smallest).
Jurassic Park
About
References
https://www.practicalecommerce.com/How-to-Test-a-Website-on-Different-Browsers
https://www.techonthenet.com/html/elements/body_tag.php
https://www.w3schools.com/html/html_headings.asp
https://www.w3schools.com/tags/tag_hn.asp