Professional Documents
Culture Documents
Week 3
Week 3
Week 3
In our past lessons, you learned about source code and HTML. Today, you are going to learn how to
edit HTML codes. Are you ready? Let’s begin.
HTML makes use of HTML tags called formatting tags. These tags are used for format output
like bold or italic text.
Example:
<h1 align = “center”>Center</h1>
<p align = “left”>Left</p>
<div align = “right”>Right</div>
APPLYING BOLD AND ITALIC STYLE
To apply bold and italic style to text use the following tags:
For bold: <b>Bold text</b>
For Italic: <i>Italic text</i>
To use bold and italic text both, you can nest the two
<b><i> Bold and Italic text</i></b>
FORMATTING WEBSITES
1. Open ToBeOrNotToBe.html using notepad.
To change the font color and size of the text insert the code and on the texts you want to modify.
Note: #660000 represents color beige.
Save the file.
To save the file, go to File then Save.
To apply bold to the header just enclose the bold tag which is b tag to the texts.
To apply italic to all quotations just enclose the bold tag which is i tag to the texts.
1.What do you call the tags that are used to format output?
___________________________________
___________________________________
3. What is the html tag that defines italic text?
___________________________________
4. Mickey wants to change the font size of his text “Hello” to font size 3, what code does he needs
to insert on his website?
___________________________________
5. Bert is setting up a website for his new business, he needs to change the font color of
“chocolate” to brown, what code does he needs to insert on his website?
___________________________________
6. Frodo has a homework on his computer class, part of it is that he needs to change the font of his
name to font size 4 and change the color to gold, what code does he needs to insert on his
homework?
___________________________________
7. Nikki is thinking of how she can make the text of her name bold and italic, what code does she
needs to insert?
__________________________________
8. Miss Hudson thinks that there is something wrong with this code in her html file
<fontcolor=”red>Love is blind<font>, what do you think if correct code?
_________________________________
9. Nikka doesn’t know what to put in her code to align the heading text which is “About my life” to
the left, what is the code to align the heading to the left? (She makes use of heading 1 - <h1>)
_________________________________
10. What is the code to make the font color green (use the text “green”)?
________________________________
Objectives:
1. Recall concepts in understanding and editing html codes.
2. Do the activity independently.
Poem Dilemma
You are to edit a webpage containing a poem entitled Fire and Ice for your Literature class.
Open FireAndIce.htmL. You need to change the alignment of the poem to center and italize its text.
Apply bold to the title of the poem. Change the font color to red (#990000) and font size to 4.
Expected Output: