CBSE Class 10 Foundation of Information Technology: HTML NCERT Solutions
This resource provides detailed NCERT Solutions for Class 10 Foundation of Information Technology, focusing on Chapter 5: HTML (HyperText Markup Language). It covers fundamental concepts of HTML, including expanding the acronym, identifying container and empty elements, file extensions, and viewing source code. The solutions explain how to set background images and colors, differentiate between attributes like 'bgcolor' and 'background', and recognize common graphic file formats. It also delves into attributes for the BODY tag such as 'alink' and 'vlink', and how to modify text and link colors. Furthermore, it touches upon changing font sizes and understanding the purpose of attributes like 'width'. These solutions are designed to help students grasp the core principles of HTML, essential for building web pages, and prepare effectively for their examinations by clarifying each concept with clear explanations and examples.
Quick info
| Board | CBSE |
|---|---|
| Class | Class 10 |
| Subject | Foundation of Information Technology |
| Session | 2026 |
| Language | English |
| Type | NCERT Solutions |
| Chapter | 5. HTML (HyperText Markup Language) |
Chapter summary
This chapter's NCERT Solutions for Class 10 Foundation of Information Technology focus on HTML (HyperText Markup Language). It covers the expansion of HTML, distinguishes between container and empty elements, and explains file extensions. Solutions detail how to view source code, set background images and colors using attributes like 'background' and 'bgcolor', and identify common image formats. The chapter also clarifies the use of BODY tag attributes such as 'alink', 'vlink', 'text', and 'width', and demonstrates how to alter font sizes. These solutions provide a foundational understanding of HTML for web page creation.
Learning outcomes
- Understand the full form and purpose of HTML.
- Differentiate between container and empty HTML elements.
- Identify the correct file extension for HTML documents.
- Learn how to view the source code of a web page.
- Apply attributes like 'background' and 'bgcolor' to set page appearance.
- Recognize common graphic file formats supported by browsers.
- Explain the function of 'alink', 'vlink', and 'text' attributes in the BODY tag.
- Understand how to modify font sizes and line widths in HTML.
Topics covered
Paper topics
- HTML Expansion
- Container Elements
- Empty Elements
- HTML File Extension
- Viewing Source Code
- Background Attributes (bgcolor, background)
- Graphic File Formats
- BODY Tag Attributes (alink, vlink, text)
- Font Size Modification
- Width Attribute
Important topics
- HTML Basics and Expansion
- Container vs. Empty Elements
- Background and bgcolor Attributes
- BODY Tag Attributes (alink, vlink, text)
- HTML File Structure and Extensions
PDF preview
Read page by page below. PDF is streamed from the official NCERT website — no download button on this page.
Questions and Solutions
Question 1
Question 2
- <HEAD>...</HEAD>: Contains meta-information about the HTML document.
- <TITLE>...</TITLE>: Specifies the title of the HTML document, shown in the browser's title bar or tab.
- <BODY>...</BODY>: Contains the main content of the HTML document that is displayed in the browser window.
Question 3
- <BR>: Inserts a single line break.
- <HR>: Inserts a horizontal rule (a thematic break) across the page.
Question 4
Question 5
Question 6
Question 7
<BODY background="C:\My Pictures\Pen.jpg">
Note: In HTML code, backslashes in file paths are often represented as double backslashes (\) to ensure correct interpretation.Question 8
<BODY color="red" background ="school.j pg">
- The attribute `color` is not a valid attribute for the `<BODY>` tag to set the text color. The correct attribute for setting the main text color is `text`.
- There might be a space issue in the filename `school.j pg`. It should likely be `school.jpg`.
<BODY bgcolor="red" text="red" background="school.jpg">
If the intention was to set the main text color to red and use `school.jpg` as the background image, the corrected code is:<BODY text="red" background="school.jpg">
However, the original answer implies the error was using `color` instead of `bgcolor`. If `bgcolor` was intended for the background color, and `school.jpg` is the correct filename, the corrected code is:<BODY bgcolor="red" background="school.jpg">
Question 9
- `bgcolor` attribute: This attribute is used to set a solid color as the background of the HTML document.
- `background` attribute: This attribute is used to specify an image file that will be displayed as the background of the HTML document. If both attributes are used, the `background` image typically takes precedence.
Question 10
- .gif (Graphics Interchange Format)
- .jpg or .jpeg (Joint Photographic Experts Group)
Question 11
Question 12
Question 13
Question 14
- `bgcolor="yellow"`: This sets the background color of the entire web page to yellow.
- `text="red"`: This sets the default color for all the main text content on the page to red.
- `vlink="blue"`: This sets the color for all hyperlinks that have already been visited by the user to blue.
Question 15
<FONT size="5">This line will have a larger font size.</FONT>
It's important to note that the `<FONT>` tag is deprecated in HTML5, and using CSS (e.g., `...`) is the recommended approach for controlling font sizes.Common mistakes
- Confusing 'color' attribute with 'bgcolor' for background color.
- Incorrectly specifying file paths for background images.
- Misunderstanding the difference between 'background' and 'bgcolor' attributes.
- Using incorrect syntax for HTML tags and attributes.
Revision tips
- Memorize the full form of HTML and key tag definitions.
- Practice identifying container vs. empty elements.
- Review the purpose of common BODY tag attributes like bgcolor, text, alink, and vlink.
- Understand how to correctly specify image paths for background attributes.
- Pay attention to the correct file extensions for HTML files.
Practice MCQs
Q1. What does HTML stand for?
Explanation: HTML is an acronym for HyperText Markup Language, which is the standard markup language for documents designed to be displayed in a web browser.
Q2. Which of the following is an example of an empty HTML element?
Explanation: <BR> is an empty element used to insert a line break, while <HEAD>, <BODY>, and <TITLE> are container elements that enclose other content.
Q3. What is the standard file extension for an HTML file?
Explanation: HTML files are typically saved with either the.html or.htm extension, allowing web browsers to recognize and render them correctly.
Q4. Which attribute is used to set the background color of an HTML document?
Explanation: The 'bgcolor' attribute within the <BODY> tag is specifically used to set the background color of the entire HTML document.
Q5. Which attribute specifies an image as the background for an HTML document?
Explanation: The 'background' attribute in the <BODY> tag is used to specify the path to an image file that will be displayed as the background of the web page.
Q6. Which of these is a common graphic file format recognized by most browsers?
Explanation: .gif and.jpg are common graphic file formats that are widely recognized and supported by most web browsers for displaying images.
Q7. The 'vlink' attribute in the <BODY> tag defines the color of:
Explanation: 'vlink' stands for visited link and sets the color of hyperlinks after the user has clicked on them.
Frequently asked questions
What is HTML and what does it stand for?
HTML stands for HyperText Markup Language. It is a standard markup language used to create web pages and structure their content for display in web browsers.
What is the difference between a container element and an empty element in HTML?
A container element has both an opening and a closing tag (e.g., <BODY>...</BODY>) and encloses content. An empty element has only a single tag (e.g., <BR>) and does not enclose content.
How can I set a background image for my HTML page?
You can set a background image using the 'background' attribute within the <BODY> tag, like this: <BODY background="path/to/your/image.jpg">.
What is the purpose of the 'bgcolor' attribute?
The 'bgcolor' attribute is used within the <BODY> tag to specify the background color of the entire web page. For example: <BODY bgcolor="yellow">.
What do 'alink', 'vlink', and 'text' attributes control in HTML?
The 'text' attribute sets the color of the main text on the page. 'alink' sets the color of an active link (while it's being clicked), and 'vlink' sets the color of a link after it has been visited.
What are the common file extensions for HTML files?
The common file extensions for HTML files are.html and.htm.
Content reviewed by the NCERT Help team. Editorial Team and update policy
NCERT Solutions PDF PDF on NCERT Help. URL unchanged for search indexing.