Official Punjab Board Solutions for Class 10 Computer: Chapter 02 HTML Fundamentals
Review structured textbook solutions for Class 10 Computer Chapter 02 HTML Fundamentals. Built according to Punjab Board guidelines for the 2026-27 academic year, these downloadable answers support daily revision and problem-solving accuracy.
Chapter-wise Solutions for Computer: Chapter 02 HTML Fundamentals
View or download the dedicated Chapter 02 HTML Fundamentals solution resource below. Engaging with these textbook answers under focused study conditions ensures continuous academic progress and mastery of the 2026-27 curriculum for Computer.
1. Multiple Choice Questions
Question 1: What should be the first tag in any HTML document?
(a) <head>
(b) <title>
(c) <html>
(d) <document>
Answer:
(c) <html>
Exam Tips:
a) Every HTML page begins with <html> and ends with </html>.
b) <head> and <body> are written inside <html>.
Question 2: What is the correct HTML tag for inserting a line break?
(a) <br>
(b) <lb>
(c) <break>
(d) <newline>
Answer:
(a) <br>
Exam Tips:
a) <br> is an empty tag, so it has no closing tag.
Question 3: A webpage displays a picture. What tag was used to display that picture?
(a) picture
(b) image
(c) img
(d) src
Answer:
(c) img
Exam Tips:
a) The tag is <img>; src is only its attribute that gives the file name.
Question 4: A page designed in HTML is called:
(a) Yellow Page
(b) Web Page
(c) Server Page
(d) Front Page
Answer:
(b) Web Page
Exam Tips:
a) A page written in HTML and shown in a browser is a web page.
Question 5: An HTML document is saved using the extension:
(a) .htl
(b) .html
(c) .hml
(d) .htnl
Answer:
(b) .html
Exam Tips:
a) .htm is also accepted as an extension for HTML files.
Question 6: The table tag has various other tags. These are:
(a) <TR>
(b) <TD>
(c) <TH>
(d) All of the above.
Answer:
(d) All of the above.
Exam Tips:
a) TR makes a row, TH a heading cell and TD a data cell.
2. Fill in the Blanks
Question 1: HTML stands for …………..
Answer:
Hyper Text Markup Language
Exam Tips:
a) Learn the full form letter by letter: Hyper Text Markup Language.
Question 2: …………… list is used to represent an unorganized list.
Answer:
Unordered list
Exam Tips:
a) In an unordered list the order of items does not matter.
Question 3: …………….. tag is used to define the elements of a list.
Answer:
<LI>
Exam Tips:
a) LI means List Item.
Question 4: ALT stands for …………….
Answer:
Alternate
Exam Tips:
a) ALT is the attribute used with the image tag.
Question 5: ………… is the main part of the HTML document in which the whole information about the webpage resides.
Answer:
<body>
Exam Tips:
a) The content shown in the browser window is written in the body.
Question 6: The ………………… contains the title that identifies the heading of the HTML document.
Answer:
Head
Exam Tips:
a) The <title> tag is written inside the <head> tag.
3. True or False
Question 1: HTML is a structured language.
Answer:
True
Exam Tips:
a) HTML uses tags to give a document its structure.
Question 2: Table heading starts with the <TH> tag and ends with the </TH> tag.
Answer:
True
Exam Tips:
a) TH is a container tag with an opening and a closing tag.
Question 3: ALIGN does not define the alignment of the attached image in contrast to the other contents of the webpage.
Answer:
False
Exam Tips:
a) ALIGN does set the position of an image relative to the other contents.
Question 4: CELLPADDING is the pixel space between the cell contents and the cell border.
Answer:
True
Exam Tips:
a) CELLPADDING is inside the cell; CELLSPACING is between two cells.
Question 5: A definition list generally contains the definitions of different terms and their meaning.
Answer:
True
Exam Tips:
a) A definition list is made with <DL>, using term-definition pairs.
4. Full Forms
Question 1: HTML
Answer:
Hyper Text Markup Language
Exam Tips:
a) Write the complete full form, not just the abbreviation.
Question 2: <B>
Answer:
Bold
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 3: <I>
Answer:
Italic
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 4: <U>
Answer:
Underline
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 5: <OL>
Answer:
Ordered List
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 6: <UL>
Answer:
Unordered List
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 7: <P>
Answer:
Paragraph
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 8: <BR>
Answer:
Break
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 9: SRC
Answer:
Source
Exam Tips:
a) Write the complete full form, not just the abbreviation.
Question 10: <IMG>
Answer:
Image
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 11: <TR>
Answer:
Table Row
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 12: <TH>
Answer:
Table Heading
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 13: <TD>
Answer:
Table Data
Exam Tips:
a) Write the full form in capital first letters and learn it along with the use of the tag.
Question 14: LI
Answer:
List Item
Exam Tips:
a) Write the complete full form, not just the abbreviation.
Question 15: URL
Answer:
Uniform Resource Locator
Exam Tips:
a) Write the complete full form, not just the abbreviation.
5. Very Short Answer Type Questions
Question 1: Name the tag which is used with a beginning tag and an ending tag.
Answer:
Container tag
Exam Tips:
a) A container tag is also called a paired tag.
Question 2: Name the tag of the HTML document in which the whole information about the webpage resides.
Answer:
Body tag
Exam Tips:
a) Contents like text, images and tables go inside <body>.
Question 3: Name the empty tag that is used to break a line and display the following text from the next line, without leaving any space between two lines.
Answer:
<br>
Exam Tips:
a) It is an empty tag and has no closing tag.
Question 4: Name the list whose items are related to each other but whose sequence is not important.
Answer:
Bulleted list (unordered list)
Exam Tips:
a) Bullets are used instead of numbers.
6. Short Answer Type Questions
Question 1: What is HTML?
Answer:
HTML stands for Hyper Text Markup Language. It is a language used for designing a web page, in which text, graphics and other information are organised, formatted and linked together. HTML is simple, flexible, easy to learn, interactive and widely accepted.
Exam Tips:
a) Write the full form first, then the purpose.
b) Mention at least three features such as simple, flexible and easy to learn.
Question 2: What is a tag?
Answer:
A tag is an HTML command that the web browser understands. Tags are also called elements and are written inside angle brackets. An HTML document cannot be prepared without tags.
Exam Tips:
a) Mention that tags are enclosed in angle brackets < >.
Question 3: What is the <img> tag? Explain.
Answer:
The <img> tag is used to embed an image in an HTML document, that is, to display an image on the web page. Its general syntax is <img src="filename">.
Exam Tips:
a) Write the syntax of the tag in your answer.
b) SRC gives the source (file name) of the picture.
Question 4: Name the different tags used to create a table.
Answer:
The following tags are used to create a table in HTML:
(i) <table> </table>
(ii) <th> </th>
(iii) <tr> </tr>
(iv) <td> </td>
Exam Tips:
a) Write each tag with its closing tag.
Question 5: Explain the font tag with its attributes.
Answer:
The font tag is used to change the style and shape of the text in an HTML document, and so it allows data to be formatted on a web page. It has four main properties:
1. Style: the font style can be changed in three ways: bold, italic and underline.
2. Font face: the face defines the typeface to be used for writing.
3. Font colour: it gives different colours to the text.
4. Font size: it changes the size of the text.
Exam Tips:
a) List all four properties in a numbered form.
7. Differentiate Between
Question (i): Ordered and Unordered List.
Answer:
The difference is as follows:
| Ordered List | Unordered List |
|---|---|
| The order of the list items is important. If the order is changed, the meaning of the whole list changes. | The order of the items is not significant. Two items can be swapped or the whole list reversed and it remains the same list. |
| It starts with the <OL> tag and ends with </OL>. | It starts with the <UL> tag and ends with </UL>. |
| The <LI> (List Item) tag defines the items in the list. | The <LI> (List Item) tag defines the items in the list. |
| The TYPE attribute has the values 1, A, a, I, i. | The TYPE attribute has the values disc, circle and square. |
| The default value of TYPE is 1. | The default value of TYPE is "disc". |
Exam Tips:
a) Present the answer as a two-column table.
b) Give the opening and closing tags of both lists.
Question (ii): Background and BGCOLOR.
Answer:
The difference is as follows:
| Background | BGCOLOR |
|---|---|
| The BACKGROUND attribute is used in the body tag as well as the table tag to add a background image to a webpage or a table. | The BGCOLOR attribute is used in the body tag as well as the table tag to change the background colour of a webpage or a table. |
| Example: <body background="image.jpg"> | Example: <body bgcolor="green"> |
Exam Tips:
a) Remember: background gives an image, bgcolor gives a colour.
Question (iii): Colspan and Rowspan.
Answer:
The difference is as follows:
| Colspan | Rowspan |
|---|---|
| A cell may span multiple columns, for example a header cell that gives a title to a group of columns of entries. | A cell may span multiple rows, for example a side bar that groups rows of entries. |
| It allows a single table cell to span the width of more than one cell or column. | It allows a single table cell to span the height of more than one row. |
| COLSPAN is an attribute used in the <th> and <td> tags. | ROWSPAN is an attribute used in the <th> and <td> tags. |
| It gives the same functionality as "merge cells" in spreadsheet programs like Excel. | It gives the same functionality as "merge cells" in spreadsheet programs like Excel. |
| Example: <th colspan="3"> | Example: <th rowspan="3"> |
Exam Tips:
a) COLumn goes across the width; ROW goes down the height.
Question (iv): Tag and Attribute.
Answer:
The difference is as follows:
| Tag | Attribute |
|---|---|
| Tags contain elements that give instructions on how information will be processed or displayed. They mark the start and end of an HTML element, and there are start tags <TAG> and end tags </TAG>. | An attribute defines a property for an element. Its value appears within the element's start tag. |
| Tags contain elements as well as attributes. | An attribute is a part of the starting tag of an element. |
| Tags are of two types: empty tags and container tags. | The attributes depend on the tag used; each tag has its own number of attributes. |
| Example: <table> where table is a tag. | Example: <table border="2"> where table is the tag and border is its attribute. |
Exam Tips:
a) Give one example for each in the table.
8. Long Answer Type Questions
Question 1: Describe the basic structure of HTML in detail.
Answer:
An HTML document has two main parts:
1. Head: the head section contains the title that identifies the heading of the HTML document.
2. Body: the body contains the actual contents or information that is displayed to the user on the web page.
The basic syntax is:
<html>
<head>
<title>Title of Webpage</title>
</head>
<body>
Body of HTML Document
</body>
</html>
The tags in this structure instruct the web browser about the operations to be performed on the text placed in them.
(a) <html> </html>: The HTML document starts and ends with this tag. It tells the browser where the web page starts and ends. If commands are not placed in tags, the browser takes them as plain text.
(b) <head> </head>: This container tag gives the header information and always occurs in a pair. It is written below <html> and above <body>. It contains information such as the title of the page and the keywords used by search engines, but no text of its own.
(c) <title> </title>: It defines the title of the web page, which is shown in the title bar of the browser when the page is loaded. It should be short and meaningful, for example <title>First Web Page</title>.
(d) <body> </body>: It contains the actual information shown in the browser, such as text, images, audio and video. For example: <body>This is an HTML document.</body>. The body tag has attributes (properties) with which we can select the background colour, text colour, font size and so on.
Exam Tips:
a) Draw or write the basic structure first, then explain each tag.
b) Mention the order: html, then head, then body.
Question 2: What are the various tags used in a table? Explain with an example.
Answer:
An HTML table is created using the <table> </table> tag. Tables are composed row by row. A new row is indicated with the <TR> (table row) tag, and the data in it is separated with either the <TH> (table header) or <TD> (table data) tags. Table headers are generally shown bold and centred by browsers, and table data is shown in the standard body text format. The basic table tags are:
1. <TABLE> </TABLE>: these tags are the containers for the rest of the table data.
2. <TR> </TR>: each row of the table is contained by these tags. The closing </TR> can optionally be left off.
3. <TD> </TD>: defines a cell; table data is contained within them. Additional tables can be nested within a cell. The closing tag can optionally be left off.
4. <TH> </TH>: define headers, usually in the first row or column of the table. The closing tag can optionally be left off.
Some other characteristics of the table tag are:
5. BORDER attribute: it puts borders around the table. Its value is the border width in pixels, for example BORDER=1. If it is set to 0, the browser does not display a border.
6. ALIGN attribute: it is given in the <TABLE> tag with the values LEFT, RIGHT and CENTER (the default is LEFT).
7. Table heads: in most browsers, heads enclosed in <TH> </TH> are emphasised and centred.
Exam Tips:
a) Give a small table example with <table>, <tr>, <th> and <td> if you are asked for an example.
b) Explain TH and TD separately.
Question 3: Explain an ordered list with an example.
Answer:
An ordered list is created using the <ol> </ol> tag. Its type attribute may be 'a', 'A', 1, 'i' etc. Ordered lists look much like unordered lists and many of the same rules apply to both. The only difference in HTML is that an ordered list is contained within <OL> and </OL> instead of <UL> and </UL>. Ordered lists are also based on list items. When an ordered list is displayed in a browser, it uses an automatically generated sequence of item markers, that is, the items are numbered.
Example:
<OL>
<LI>Monday
<LI>Tuesday
<LI>Wednesday
<LI>Thursday
<LI>Friday
</OL>
This looks like a simple unordered list, but each day of the week is numbered instead of being preceded by a bullet. Ordered lists can be nested like unordered lists, and unordered lists can be nested in ordered lists and the other way round.
Exam Tips:
a) Write the example code and also show how it appears in the browser.
Question 4: Explain a nested list with an example.
Answer:
A list within a list is called a nested list. It can be of any type, that is, an ordered list can contain an unordered list or a definition list, or the other way round. A list can contain any number of lists in it.
Exam Tips:
a) Give a short example with one list inside another <li>.
Important Questions and Answers
Multiple Choice Questions
Question 1: Which is related with Internet?
(a) HTML
(b) XML
(c) CSS
(d) All of Above
Answer:
(d) All of Above
Exam Tips:
a) HTML, XML and CSS are all used for web pages.
Question 2: An HTML document cannot work without which tag?
(a) <p>
(b) <hr>
(c) <html>
(d) <table>
Answer:
(c) <html>
Exam Tips:
a) <html> is the first and last tag of every document.
Question 3: What is essential to view a website?
(a) Internet
(b) Web Browser
(c) None of these
(d) Both of these
Answer:
(d) Both of these
Exam Tips:
a) You need an internet connection and a web browser.
Question 4: How many types of methods are in a form?
(a) 2
(b) 3
(c) 4
(d) 5
Answer:
(b) 3
Exam Tips:
a) Answer as given in the textbook.
Fill in the Blanks
Question 1: …………….. types of tags are used in HTML.
Answer:
Two
Exam Tips:
a) The two types are container (paired) tags and empty tags.
Question 2: Opening and closing tags are used in …………………
Answer:
Container tags
Exam Tips:
a) A container tag has a start tag and an end tag.
Question 3: There is no closing tag in ……………………… tags.
Answer:
Empty
Exam Tips:
a) <br> is an example of an empty tag.
Question 4: The text editor named ………….. is used for creating an HTML document.
Answer:
Notepad
Exam Tips:
a) Start, Programs, Accessories, Notepad.
Question 5: An HTML document is opened in ………………
Answer:
a browser
Exam Tips:
a) A browser such as Chrome or Edge displays the page.
Question 6: …………… extension is used to save an HTML document.
Answer:
.html or .htm
Exam Tips:
a) The extension tells the system it is a web page.
Question 7: In an HTML document the first and last tags should be ………… and ………..
Answer:
<HTML>, </HTML>
Exam Tips:
a) The last tag is the closing form of the first.
Question 8: An unordered list is also called a ……………. list.
Answer:
Bulleted
Exam Tips:
a) The items are marked with bullets such as disc and square.
Question 9: …………. list represents numbers.
Answer:
Ordered
Exam Tips:
a) Items in an ordered list are numbered.
Question 10: When a list is created inside another list, it is called a …………….. list.
Answer:
Nested
Exam Tips:
a) A list within a list is a nested list.
True or False
Question 1: The HTML tags can be written in capital or small letters of the English alphabet.
Answer:
True
Exam Tips:
a) HTML tags are not case sensitive.
Question 2: Text is written in WordPad to create a home page.
Answer:
True
Exam Tips:
a) Text editors such as Notepad or WordPad are used.
Question 3: The body tag is written after the head tag.
Answer:
True
Exam Tips:
a) Order: html, head, body.
Question 4: A container tag is a solo tag.
Answer:
False
Exam Tips:
a) A container tag is a paired tag; solo tags are empty tags.
Question 5: The title is written in the head tag.
Answer:
True
Exam Tips:
a) <title> goes inside <head>.
Question 6: There are six levels in headings.
Answer:
True
Exam Tips:
a) <H1> to <H6>; H1 is the biggest.
Question 7: The tag <P> is used for a paragraph.
Answer:
True
Exam Tips:
a) P stands for Paragraph.
Question 8: The attributes of a list are Face, Size and Colour.
Answer:
False
Exam Tips:
a) Face, size and colour are attributes of the font tag.
Question 9: The tag <BR> is used to make the text dynamic.
Answer:
False
Exam Tips:
a) <BR> only breaks a line.
Question 10: Bullets are marked in an ordered list.
Answer:
False
Exam Tips:
a) An ordered list uses numbers or letters.
Match the Following
Question 1: Match the following:
Answer:
| A | B |
|---|---|
| 1. HTML document | Word Pad |
| 2. Container tag | Body tag |
| 3. <OL> | Number |
| 4. <UL> | Bullet |
| 5. Font attribute | Face, Size and Color |
Exam Tips:
a) Match each tag with what it displays or does.
Full Forms
Question 1: HTML
Answer:
Hyper Text Markup Language
Exam Tips:
a) Learn the full forms together with the use of the tag.
Question 2: <B>
Answer:
Bold
Exam Tips:
a) Learn the full forms together with the use of the tag.
Question 3: <I>
Answer:
Italic
Exam Tips:
a) Learn the full forms together with the use of the tag.
Question 4: <U>
Answer:
Underline
Exam Tips:
a) Learn the full forms together with the use of the tag.
Question 5: <P>
Answer:
Paragraph
Exam Tips:
a) Learn the full forms together with the use of the tag.
Question 6: <BR>
Answer:
Break
Exam Tips:
a) Learn the full forms together with the use of the tag.
Question 7: <OL>
Answer:
Ordered List
Exam Tips:
a) Learn the full forms together with the use of the tag.
Question 8: <UL>
Answer:
Unordered List
Exam Tips:
a) Learn the full forms together with the use of the tag.
Very Short Answer Type Questions
Question 1: Write the attributes of unordered lists.
Answer:
Bullet types: disc and square.
Exam Tips:
a) Disc is the default.
Question 2: What is a table row?
Answer:
A table row is defined by the <TR> </TR> tags. Each row of the table is contained by these tags. The closing </TR> tag can optionally be left off.
Exam Tips:
a) Write the tag name along with its use.
Question 3: Which tags are used to show a table heading and table data?
Answer:
The <th> tag is used to give the table heading and the <td> tag is used to show the data.
Exam Tips:
a) TH is for headings, TD for data.
Question 4: Write the procedure of changing the table size.
Answer:
The size of a table is changed using the width and height attributes of the table tag, for example <table width="300" height="400">.
Exam Tips:
a) Give the example tag.
Question 5: How will you make the border of a table?
Answer:
By giving the border attribute in the table tag.
Exam Tips:
a) Example: <table border="1">.
Question 6: What is meant by cell spacing?
Answer:
The space between two cells is called cell spacing.
Exam Tips:
a) Do not confuse it with cell padding, which is inside a cell.
Question 7: Write a short note on colspan.
Answer:
To span two adjacent cells in a column, the COLSPAN attribute is used with <TH> or <TD>, for example <TD COLSPAN=2>.
Exam Tips:
a) Give the example tag.
Question 8: What is the use of the anchor tag?
Answer:
The anchor tag is used to create a link between two documents, for example <a href="c:\jsb\jap.htm">.
Exam Tips:
a) Write the href attribute in your example.
Question 9: What do you mean by linking?
Answer:
Linking is used to connect two documents. It is also called a hyperlink.
Exam Tips:
a) Hyperlink is the other name.
Question 10: What is the SRC attribute?
Answer:
SRC indicates the source of the file.
Exam Tips:
a) It is used with the <img> tag.
Question 11: What are the methods of aligning an image?
Answer:
Left, Right, Center, Top, Bottom and Middle.
Exam Tips:
a) Name all six.
Short Answer Type Questions
Question 1: Write the names of any four tags used in HTML.
Answer:
Some HTML tags and their descriptions:
| Tag | Description |
|---|---|
| <HTML> … </HTML> | Encloses the entire HTML document. |
| <HEAD> … </HEAD> | Encloses the head of the HTML document. |
| <TITLE> … </TITLE> | Indicates the title of the document; used within <HEAD>. |
| <BODY> … </BODY> | Encloses the body of the HTML document. |
| <P> … </P> | A paragraph; the closing tag is optional. |
| <BR> | A line break. |
| <HR> | A horizontal rule line. |
| <H1> … </H1> to <H6> … </H6> | First-level to sixth-level headings (H4 to H6 are seldom used). |
Exam Tips:
a) Four tags with their use are enough.
Question 2: Write the types of tags used in HTML.
Answer:
There are two kinds of HTML tags:
1. Paired (container) tag: the text is placed between a tag and its companion tag. The first is the opening tag and the second is the closing tag.
2. Unpaired (empty) tag: it works alone and is usually placed before the text to be formatted. It has no companion tag. Unpaired tags are also called singular or stand-alone tags.
Exam Tips:
a) Give one example of each type.
Question 3: What are container tags?
Answer:
A paired (container) tag is one in which the text is placed between a tag and its companion tag. The first tag is called the opening tag and the second is called the closing tag.
Exam Tips:
a) Mention opening and closing tags.
Question 4: What is a nested list?
Answer:
Lists can be combined to produce nested lists. For example, two numbered lists can be placed within one unordered list:
1. Departments in the B-Block: Chemistry, Engineering, Geology
2. Departments in the C-Block: Economics, Politics, Sociology
Exam Tips:
a) Define it as a list within a list.
Question 5: What is HTML?
Answer:
The Hypertext Mark-up Language (HTML) is the language used to create documents for the World Wide Web. As the name implies, it is a mark-up language: the original (ASCII) text is edited and new text codes, that is tags, are added to indicate how and where the text should appear.
Exam Tips:
a) Mention that it is used for the World Wide Web.
Question 6: How will you create the home page of a website? Write the steps.
Answer:
The first page of a website is called the home page. The steps to design it are:
1. Start, Programs, Accessories, Notepad.
2. Write the HTML code and save it with the .html extension:
<HTML>
<HEAD>
<TITLE>Title Text Goes Here</TITLE>
</HEAD>
<BODY>
Hello Students
</BODY>
</HTML>
Exam Tips:
a) Write the steps in order.
b) Save the file with the .html extension.
Question 7: Explain definition lists with an example.
Answer:
Definition lists begin and end with the tags <DL> and </DL>. Unlike ordered and unordered lists, definition lists are not based on list items; they are based on term-definition pairs.
Exam Tips:
a) Mention the term-definition pair idea.
Question 8: Write the names of the various attributes of the font tag.
Answer:
The attributes of the font tag are Face, Size and Color.
Exam Tips:
a) Name all three.
Question 9: For what purpose is the Marquee tag used?
Answer:
The marquee tag is used to move (scroll) text on a web page, for example <Marquee>Hello</Marquee>.
Exam Tips:
a) Give the example.
Question 10: Mention the names of the different types of lists used in HTML.
Answer:
There are three types of lists in HTML: ordered list, unordered list and definition list.
Exam Tips:
a) Name all three.
Long Answer Type Questions
Question 1: What are the features of HTML?
Answer:
Originally, HTML was developed to define the structure of documents, such as headings, paragraphs and lists, so that scientific information could be shared between researchers. A web page has many elements such as page style, paragraphs, lists, tables and pictures. Each section is written in the form of a tag, which indicates the element (heading, list, paragraph etc.) to which that section of the page relates. Pictures, sound and movies can also be included in a web page in addition to text.
Exam Tips:
a) Write features as separate points.
Question 2: Discuss the structure of an HTML document.
Answer:
The complete document is written between the <HTML> and </HTML> tags. The tags <Head>, <Body>, <Title> etc. are written between these.
Exam Tips:
a) Mention html, head, title and body.
Question 3: What are the different heading tags in HTML?
Answer:
The heading tag is used to fix the heading. There are 6 levels of heading, numbered heading 1 to heading 6. All the letters of the heading of a given level have the same font. The font size decreases as we move from heading 1 to heading 6. A level 1 heading is written with the tags <H1> and </H1>, a level 2 heading with <H2> and </H2>, and so on. <H6> is the lowest level and has the smallest font size.
| Tag | Description |
|---|---|
| <HR> | A horizontal rule line. |
| <H1> … </H1> | A first-level heading. |
| <H2> … </H2> | A second-level heading. |
| <H3> … </H3> | A third-level heading. |
| <H4> … </H4> | A fourth-level heading (seldom used). |
| <H5> … </H5> | A fifth-level heading (seldom used). |
| <H6> … </H6> | A sixth-level heading (seldom used). |
Exam Tips:
a) Remember: H1 is the largest and H6 the smallest.
Question 4: Explain the type attribute in an ordered list.
Answer:
If items are to be put in a numbered list instead of a bulleted list, an HTML ordered list is used. It is created with the <ol> tag. Numbering starts at one and increases by one for each list element tagged with <li>.
The type attribute: the type attribute of the <ol> tag specifies the type of numbering. By default it is a number. The options are:
<ol type="1"> – default, numbers.
<ol type="I"> – upper-case Roman numerals.
<ol type="i"> – lower-case Roman numerals.
<ol type="A"> – upper-case letters.
<ol type="a"> – lower-case letters.
The start attribute: it specifies the starting point of numbering. The options are:
<ol type="1" start="4"> – numbering starts with 4.
<ol type="I" start="4"> – numbering starts with IV.
<ol type="a" start="4"> – letters start with d.
<ol type="A" start="4"> – letters start with D.
Exam Tips:
a) Write all five type values.
b) Explain the start attribute with an example.
Question 5: What are the tags used for creating tables in HTML? Explain.
Answer:
HTML tables allow web authors to arrange data such as text, images and links into rows and columns of cells. A table is created with the <table> tag, in which the <tr> tag creates table rows and the <td> tag creates data cells. The elements under <td> are regular and left aligned by default.
Table heading: a heading is defined with the <th> tag, which replaces the <td> tag used for an actual data cell. Normally the top row is the table heading, but <th> can be used in any row. Headings defined in <th> are centred and bold by default.
Cellpadding and cellspacing: these two attributes adjust the white space in table cells. Cellspacing defines the space between table cells, while cellpadding is the distance between the cell border and the content within the cell.
Colspan and rowspan: colspan is used to merge two or more columns into a single column. In the same way, rowspan is used to merge two or more rows.
Exam Tips:
a) Name the tags first, then explain the attributes.
Question 6: Can you insert an image in your website? If yes, how? Explain with examples.
Answer:
Yes. Images are important for beautifying a page and for showing complex concepts in a simple way.
Insert image: an image is inserted with the <img> tag. The simple syntax is <img src="Image URL" … attributes-list/>. The <img> tag is an empty tag, so it contains only a list of attributes and has no closing tag. For example, keep the HTML file test.htm and the image file test.png in the same directory.
Set image location: images are usually kept in a separate directory. For example, keep test.htm in the home directory and create a subdirectory images inside it, in which test.png is kept.
Set image width/height: the width and height attributes set the size of the image, either in pixels or as a percentage of its actual size.
Set image border: the border attribute sets the border thickness in pixels. A thickness of 0 means no border around the picture.
Set image alignment: by default an image is aligned at the left side of the page; the align attribute can be used to set it to the centre or right.
Exam Tips:
a) Give the syntax of the img tag.
b) Mention src, width, height, border and align.
Free study material for Computer
Punjab Board Solutions for Class 10 Computer Chapter 02 HTML Fundamentals
Textbook Solutions for Class 10 Computer Chapter 02 HTML Fundamentals
Access structured Punjab Board textbook solutions for Chapter 02 HTML Fundamentals. Designed in alignment with the latest academic curriculum for Class 10 Computer, these answers cover all end-of-chapter exercises to support daily learning and homework completion.
Mastering Theoretical and Practical Questions
Each solution includes detailed reasoning to foster genuine comprehension of Chapter 02 HTML Fundamentals concepts. Reviewing these step-by-step breakdowns allows learners to master both analytical and descriptive questions expected in school evaluations.
Effective Self-Study and Homework Assistance
These resources act as an effective roadmap for daily homework tasks and independent study. Supplement your review of Chapter 02 HTML Fundamentals with official sample papers and interactive practice tests available on our platform free of charge.
FAQs
The complete and updated PSEB 10th Class Computer Solutions Chapter 2 HTML Fundamentals is available for free on StudiesToday.com. These solutions for Class 10 Computer are as per latest Punjab Board curriculum.
Yes, our experts have revised the PSEB 10th Class Computer Solutions Chapter 2 HTML Fundamentals as per 2026 exam pattern. All textbook exercises have been solved and have added explanation about how the Computer concepts are applied in case-study and assertion-reasoning questions.
Toppers recommend using Punjab Board language because Punjab Board marking schemes are strictly based on textbook definitions. Our PSEB 10th Class Computer Solutions Chapter 2 HTML Fundamentals will help students to get full marks in the theory paper.
Yes, we provide bilingual support for Class 10 Computer. You can access PSEB 10th Class Computer Solutions Chapter 2 HTML Fundamentals in both English and Hindi medium.
Yes, you can download the entire PSEB 10th Class Computer Solutions Chapter 2 HTML Fundamentals in printable PDF format for offline study on any device.