Professional Documents
Culture Documents
H
W
2. What is indentation?
ACTIVITY
Identify the opening and closing tag
Identify the attribute used?
Identify the element name
Identify the element
<h1 style="font-size:60px;">Heading 1</h1>
Recap…
1. What does this code means?
<html lang="en">
...
</html>
<u><p style="font-family:verdana";
align="left"><font color="#000099"><b>Our
Vision</b></font> </p></u>
HW –
1. Other than having the meta and title element, why is a head
element important?
Documents/links that goes with in
<head>
a. metadata
b. document title
c. scripts
d. styles
e. links to external files.
Lists
1. ordered list
2.unordered list
3.definition list
Try nesting lists
• ordered list within ordered list
• unordered list within unordered list
• unordered list within ordered list
• ordered list within unordered list
Make you own list
1 . My favorite storybooks
2.Steps to make a cup of tea
3.Food menu, describing the main
ingredient
RECAP…
1 .WRITE THE HTML CODE FOR THE
OUTPUT GIVEN
2. PREDICT THE OUTPUT OF THE
CODE SHOWN
LINKS IN HTML <a>
1.an external link that opens in the same browser
window
2.an external link that opens in a new browser
window
3.linking to a specific part of the same page
4.linking to a specific part of another page
5.email links.
Syntax for a basic link:
<a href="url">link text</a>
ANSWERS
1. Setting The Viewport
• The viewport is the user's visible area of a web
page. It varies with the device - it will be smaller on a
mobile phone than on a computer screen.
• This gives the browser instructions on how to control
the page's dimensions and scaling.
• The width=device-width part sets the width of the
page to follow the screen-width of the device (which
will vary depending on the device).
• The initial-scale=1.0 part sets the initial zoom level
when the page is first loaded by the browser
RECAP
3. What will the developer expect from these code?
<table>
<tr><th></th> <th></th> <th></th></tr>
<tr><td></td> <td></td> <td></td></tr>
<tr><td></td> <td></td> <td></td></tr>
<tr><td></td> <td></td> <td></td></tr>
</table>
<table border="2" width="50%">
HTML Table - Colspan <tr>
<th colspan="2" >Name</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>43</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>57</td>
</tr>
</table>
<table border="2" width="50%">
HTML Table - <tr>
Rowspan <td rowspan=2><b>Name</b></td>
<td>Will</td>
</tr>
<tr>
OUTPUT OF </tr>
THIS CODE? <tr>
<td><b>Age</b></td>
<td>57</td>
</tr>
</table>
TRY TO DO BOTH COLSPAN AND
ROW SPAN TOGETHER!
GO
THROUGH
W3SCHOOLS.
COM
https://www.w3schools.com/html/html_table_padding_spacing.asp
Table grouping
<thead></thead> used to group header content
<tbody></tbody> used to specify body content
<tfoot></tfoot> used to group footer content
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_tbody
HOMEWORK:
3
point !
S et
w id t h e
th t
heig he
ht