G9M6
G9M6
Programming 9
QUARTER 1
MODULE
Welcome to the Computer Programming for the ICT Module on HTML5 List, Table
https://html5tutorial.net/tables/basics-of-tables/
and Image!
This module was collaboratively designed, developed and reviewed by educators from Accessed July 2, 2020 11:50:56am
Schools Division Office of Pasig City headed by its Officer-In-Charge Schools Division https://www.w3schools.com/html/html_images.asp
Superintendent, Ma. Evalou Concepcion A. Agustin in partnership with the Local
Government of Pasig through its mayor, Honorable Victor Ma. Regis N. Sotto.
Accessed July 2, 2020 11:59:01am.
The writers utilized the standards set by the K to 12 Curriculum using the Most
https://html5tutorial.net/html-basics/images/
Essential Learning Competencies (MELC) while overcoming their personal, social,
and economic constraints in schooling.
This learning material hopes to engage the learners into guided and independent
learning activities at their own pace and time. Further, this also aims to help learners
acquire the needed 21st century skills especially the 5 Cs namely: Communication,
Collaboration, Creativity, Critical Thinking and Character while taking into
consideration their needs and circumstances.
In addition to the material in the main text, you will also see this box in the body of
the module:
As a facilitator you are expected to orient the learners on how to use this module.
You also need to keep track of the learners' progress while allowing them to manage
their own learning. Moreover, you are expected to encourage and assist the learners
as they do the tasks included in the module.
POST TEST For the learner:
Welcome to the Computer Programming for the ICT Module on HTML5 List, Table
and Image!
Instructions: Identify what is being asked in the following statements below.
Write your answer on the space provided. The hand is one of the most symbolized part of the human body. It is often used to
depict skill, action and purpose. Through our hands we may learn, create and
_____________ 1. An attribute of the ordered list tag that reverses the order of the list. accomplish. Hence, the hand in this learning resource signifies that you as a learner
is capable and empowered to successfully achieve the relevant competencies and
_____________ 2. This attribute defines a number or letter to start the list with. Its
skills at your own pace and time. Your academic success lies in your own hands!
value is always an integer.
This module was designed to provide you with fun and meaningful opportunities for
_____________ 3. This tag in the table markup is where the actual content is.
guided and independent learning at your own pace and time. You will be enabled to
_____________ 4. An attribute that serves as the URL for the picture you want to process the contents of the learning material while being an active learner.
display.
This module has the following parts and corresponding icons:
_____________5. This attribute provides an alternate text for an image.
Expectation - 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
KEY TO CORRECTION to be mastered throughout the lesson.
Recap - This section will measure what learnings and skills that
you understand from the previous lesson.
Lesson- This section will discuss the topic for this module.
REFERENCES Post-test - This will measure how much you have learned from the
entire module. Ito po ang parts ng module.
https://www.dummies.com/web-design-development/sitedevelopment/how-
to-create-lists-in-html5/
EXPECTATION Now thru the use of List, classify the shuffle given item below in accordance with
their genre. And classify what genre it is pertaining to, and attach image if available.
Do it in HTML Program...
The students should be able to: Narra Action Grapes
PRE TEST
Instruction: Select the letter that corresponds to the correct answer. VALUING
1. Which of the following refers to the tag that defines a list item?
A. <ol> B. <ul> C. <dl> D. <li> Instructions: Read the questions carefully. Write your answers on the space
provided. Use a separate sheet if needed.
2. As a default mark, this list uses bullet points.
1. How do you think your knowledge in using different list tags can help you as
A. List B. Ordered List C. Unordered List D. Description List
a future web developer?
___________________________________________________________________________
3. Which of these is used for rendering data that naturally belongs in a grid? ___________________________________________________________________________
A. Form B. Table C. Ordered List D. Unordered List ___________________________________________________________________________
2. In your own opinion, why do web designers use tables for layout of HTML
4. Which of the following tags is not an HTML Table related tag? pages even though they should not have been used that way?
A. <tc> B. <td> C. <tr> D. <table>
___________________________________________________________________________
___________________________________________________________________________
5. What is the correct tag for HTML images?
___________________________________________________________________________
A. <pic> B. <img> C. <gif> D. <jpg>
3. Why do you think it is necessary to include images in building a website?
(Answer in 2 to 3 sentences)
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
ACTIVITIES
R ECAP
Create an HTML page that uses both list and table syntax. Include images to make it more
appealing. Consult with your subject teacher about the content of your web page. Submit a
soft copy or printed copy of the syntax with image of the expected output to your teacher. HTML5 follows a structured syntax to avoid errors. Provide a short description
This guide serves as basis for scoring, in-line with simple html file activity. about the structure of HTML syntax. What are the errors that you usually encounter
Needs work Developing Meets Standard Score in creating a program?
Information and Information and Information and
Differentiate links and hyperlinks.
images are not images are images are
Content relevant somewhat relevant
relevant.
10 points 15 points 20 points
A lot of web designers use the list to create their menus and navigations as
the navigation very often is a set of related links.
Total /50
How to Create Lists in HTML5
The web pages you create with HTML5 are often about data, and data is often
organized into lists, which can stand alone or nest within each other. The items in
your lists can either be numbered (an ordered list) or unnumbered (unordered).
<img src="wrongname.gif"
alt="Flowers in Chania">
Figure 7:
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_images_wrongname
Image as a Link
HTML List Tags To use an image as a link, put the <img> tag inside the <a> tag.
Tag Description <a href="default.asp">
<ul> Defines an unordered list <img src="smiley.gif" alt="HTML tutorial" style="width:42px;height:42px;">
</a>
<ol> Defines an ordered list
<li> Defines a list item
<dl> Defines a description list
<dt> Defines a term in a description list
<dd> Describes the term in a description list
Unordered List
An unordered list starts with the <ul> tag. Each list item starts with the <li>
tag. The list items will be marked with bullets (small black circles) by default:
HTML Images Syntax <h2>An unordered HTML list</h2>
<ul>
The HTML <img> tag is used to embed an image in a web page. Images are <li>Grade 1</li>
not technically inserted into a web page; images are linked to web pages. The <img> <li>Grade 2</li>
tag creates a holding space for the referenced image. The <img> tag is empty; it <li>Grade 3</li>
contains attributes only, and does not have a closing tag. </ul>
The value of the src attribute is the url for the picture you want to display. The url Attributes of Ordered List
points to where the picture is stored which would normally be on your server. Note:
When a web page loads; it is the browser, at that moment, which gets the image from
Type - Defines how the list is numbered You can use the following value
a web server and inserts it into the page. Therefore, make sure that the image actually
for this attribute o default value; uses numbers o Value =
stays in the same spot in relation to the web page, otherwise your visitors will get a
uses lowercase letters o Uses uppercase letters o
broken link icon. The broken link icon is shown if the browser cannot find the image.
- Uses lowercase Roman numerals o - Uses
The alt Attribute uppercase Roman numerals
The required alt attribute provides an alternate text for an image, if the user for some <h2>An ordered HTML list</h2>
reason cannot view it (because of slow connection, an error in the src attribute, or if
the user uses a screen reader). The value of the alt attribute should describe the <li>Step one</li>
image. <li>Step two</li>
<h2>Alternative text</h2> <li>Step three</li>
<li>Step four</li>
<p>The alt attribute should </ol>
reflect the image content, so
users who cannot see the Figure 3:
image gets an understanding https://www.w3schools.com/html/html_lists_ordered.asp
A description list is a list of terms, with a description of each term. The <dl>
tag defines the description list, the <dt> tag defines the term (name), and the <dd>
Figure 6: https://www.w3schools.com/tags/att_img_alt.asp tag describes each term.
If a browser cannot find an image, it will display the value of the alt attribute.
<h2>Description List</h2> </tr>
<dl> <tr>
<dt>Web</dt> <td>Row 2, cell 1</td>
<dd>The part of the Internet that <td>Row 2, cell 2</td>
contains websites and <td>Row 2, cell 3</td>
web pages</dd> </tr>
<dt>HTML</dt> <tr>
<dd>A markup language <td>Row 3, cell 1</td>
for creating web pages</dd>
<td>Row 3, cell 2</td>
<dt>CSS</dt>
<td>Row 3, cell 3</td>
<dd>A technology to make HTML
</tr>
look better</dd>
<tr>
</dl> Figure 4: https://www.w3schools.com/tags/tag_dl.asp
<td>Row 4, cell 1</td>
<td>Row 4, cell 2</td>
<td>Row 4, cell 3</td>
HTML5 Table </tr>
</table>
HTML tables should only be used for rendering data that naturally belongs in
a grid. Tables have previously been used for the layout of HTML pages but this is not
how it should have been. A lot of web designers used the tables for the layout, but
there are two main reasons not to do it:
It is semantically incorrect.
Figure 5: https://www.w3schools.com/tags/tag_dl.asp
The elements of tables are pretty comprehensive, but the first you will need to
know is the <table> element. This is the first element and defines that the following As you can see, the <td> tags are nested inside the <tr> tags, and thins means,
markup is inside a table. that every cell in a row must be inside the <tr> element. Note, that the attribute
border to the <table> tag is added to actually see the table borders when you execute
When structuring tables, the HMTL markup is basically structured with row the codes, but you should never do this when you are writing your markup table
and cells (note, that there are no tags for columns, just rows). The tag for rows is <tr> border is a job for CSS!
(abbreviation for table row) and the tag for each cell is <td> (which stands for table
data, and this is where the actual content is. Before writing the markup for the table, HTML5 Image
you need to know exactly what it should look like this will make it a lot easier for
you. Can you picture out a web page without any images? Imagine Facebook but
<table border="1" width="100%">
unfamiliar type of herb but without image, would you be able to tell otherwise? With
<tr>
that said images help us visualize the product or an item.
<td>Row 1, cell 1</td>
<td>Row 1, cell 2</td> Web pages are not so different; images help to make the site more appealing.
<td>Row 1, cell 3</td> Images can improve the design and the appearance of a web page.
In HTML images are defined with the <img> tag. The image tag is an empty
element as it only contains attributes and therefore has no closing tag. The simplest
way of using the <img> tag is with the src attribute (src is an abbreviation of source).