0% found this document useful (0 votes)
10 views

COMP SOLUTION 8

Uploaded by

yusraakrami725
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

COMP SOLUTION 8

Uploaded by

yusraakrami725
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Grade – VII (IGCSE)

Subject – Computers
Session 2024-25

Chapter – 8: Solutions

A. Fill in the blanks

1. The <head> tag contains information about the document.


2. The HTML tag <html> marks the beginning and the end of a web page.
3. The <i> tag is used for displaying text in italics.
4. Tags which are used to give formatting effects to the text in a web page are called formatting
tags.
5. To give a heading of maximum size, use the <h1> tag.

B. Difference between the following tags

1. <HEAD> and <TITLE>


o <HEAD>: Contains metadata and links to scripts or stylesheets, such as title, author
etc.
o <TITLE>: A specific tag within the <head> tag that defines the title of the webpage,
shown in the browser tab.
2. <BODY> and <P>
o <BODY>: Defines the main content of the web page.
o <P>: Defines a paragraph within the body.
3. <I> and <B>
o <I>: Italicizes text.
o <B>: Makes the text bold.
4. <SUP> and <SUB>
o <SUP>: Superscript text (raised text).
o <SUB>: Subscript text (lowered text).
5. <BR> and <NOBR>
o <BR>: Inserts a line break.
o <NOBR>: Prevents a line break between words or text.

C. Tags and attributes for instructions

1. Create the heading "My First Web Page" in the center of the page using the
highest heading level.

Page | 1
<h1 style="text-align: center;">My First Web Page</h1>

2. Describe the web page as the HTML document.

<meta name="description" content="HTML document">

3. Change the color of the visited link from purple to orange.

<style>
a:visited { color: orange; }
</style>

4. Align the text as the subscript of the text.

<sub>Text as subscript</sub>

5. Specify blue as the color of the paragraph.

<p style="color: blue;">This is a paragraph with blue text.</p>

6. Insert a small-sized image "schoolLogo.bmp" on the right side.

<img src="schoolLogo.bmp" style="float: right; width: 100px; height:


100px;">

D. Find the output of the following

1. <B><I> This is an example to display text in both bold and


italics.</I> </B>
Output: The text will appear in bold and italics as:
This is an example to display text in both bold and italics.
2. <B><I><U>This is an example to display text in bold, italics and
underline.</U></I></B>
Output: The text will appear in bold, italics, and underline as:
This is an example to display text in bold, italics and underline.
3. Date of birth: 12<SUP>th</SUP> August 1988
Output: The text will appear as:
Date of birth: 12ᵗʰ August 1988

E. Answer the following questions

1. Why do you use HTML? Discuss various HTML elements.


HTML (Hypertext Markup Language) is used to create the structure of a webpage. It
provides various elements like headings (<h1>, <h2>), paragraphs (<p>), links (<a>),
lists (<ul>, <ol>), and media elements like images (<img>), which organize and
format the content displayed in a browser.

Page | 2
2. What are tag attributes? Give examples.
Tag attributes provide additional information about HTML elements. They are placed
inside the opening tag. Example:

<img src="image.jpg" alt="Description">

Here, src is the attribute specifying the image source, and alt provides alternative
text for the image.

3. Give the steps of executing an HTML program using a text editor.


o Step 1: Open a text editor (like Notepad or VS Code).
o Step 2: Write your HTML code.
o Step 3: Save the file with a .html extension.
o Step 4: Open the saved file in a web browser to view the output.
4. What are hyperlinks? Give examples.
Hyperlinks are clickable links that lead to other web pages or sections of the same
page. They are created using the <a> tag. Example:

<a href="https://www.example.com">Visit Example</a>

5. What are formatting tags? Explain any two with an example.


Formatting tags are used to change the appearance of text. Examples:
o <B>: Makes text bold.

<b>This is bold text.</b>

o <I>: Italicizes text.

<i>This is italic text.</i>

6. Why do you use the <CENTER> tag? Give an example.


The <center> tag is used to align text or elements in the center of the page. It is now
deprecated and replaced by CSS (text-align: center;). Example:

<p style="text-align: center;">This text is centered.</p>

Page | 3

You might also like