HTML Question Bank - Answers
1. What is HTML? What are features of HTML?
HTML (HyperText Markup Language): It is the standard language for creating web pages.
It allows users to structure content on the web, using elements and tags.
Features:
- Platform-independent.
- Supports multimedia (images, videos, etc.).
- Allows linking between pages via hyperlinks.
- Easy to learn and implement.
- Provides formatting options for text and page layout.
2. Mention 3 advantages and disadvantages each of HTML.
Advantages:
- Simple and easy to use.
- Free and widely supported.
- Compatible with all browsers.
Disadvantages:
- Limited styling capabilities compared to CSS.
- Static and lacks dynamic features (requires JavaScript for interactivity).
- Not ideal for large-scale applications.
3. What are the software tools to write and execute HTML programs? Mention 2 examples of each.
Writing Tools: Notepad, Sublime Text.
Execution Tools: Google Chrome, Mozilla Firefox.
4. What are the various file extensions in HTML and what each extension means?
- .html: Standard HTML file.
- .htm: Shorter version of the HTML file extension (legacy support).
5. Give 3 examples, each, of scripting and programming languages.
Scripting Languages: JavaScript, Python, PHP.
Programming Languages: C, Java, C++.
6. What is the structure of a typical HTML program? Explain.
A typical HTML structure includes:
1. <!DOCTYPE html>: Declaration to define document type.
2. <html>: Root element.
3. <head>: Contains metadata (title, links).
4. <body>: Contains the visible content.
Example:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
7. What do you mean by paired and unpaired tags? Give 2 examples of each.
Paired Tags: Have both opening and closing tags (e.g., <b>...</b>, <p>...</p>).
Unpaired Tags: Do not require a closing tag (e.g., <img>, <br>).
8. Explain terms with example: (i) Tag (ii) Attribute
- Tag: Basic building blocks of HTML. Example: <p> for a paragraph.
- Attribute: Provides additional information about an element. Example: <img src="image.jpg" alt="Descripti
9. What do you mean by physical tag? Give two examples.
Physical Tags: Modify the appearance of text.
Examples: <b> (bold), <i> (italic).
10. Give two examples of tags whose closing tag is optional.
- <li> in lists.
- <p> for paragraphs.
11. Write one point each for similarity and difference between P tag and BR tag.
- Similarity: Both are used for text formatting.
- Difference: <p> creates a new paragraph; <br> inserts a single line break.
12. How to insert an image in a webpage? Explain with its tag and attributes.
Use the <img> tag. Example:
<img src="image.jpg" alt="Description" width="200" height="100">
Attributes:
- src: Path of the image.
- alt: Alternative text.
13. In HTML, how do we give heading to any paragraph or a page? Explain in-built default features that com
Use heading tags <h1> to <h6> for headings. Default features include:
- <h1> is the largest, and <h6> is the smallest.
- Bold and block-styled.
14. Explain the RGB color code system in HTML.
RGB (Red, Green, Blue): Combines values of red, green, and blue (0-255 each). Example:
<p style="color: rgb(255, 0, 0);">This is red.</p>
15. State whether the following statement is true or false. Justify your answer.
(i) Any tag and attribute that are unknown are ignored.
True: Browsers skip unknown tags.
(ii) Any typographical error in tag/attributes appears as it is on the webpage.
True: Errors result in unprocessed raw text.
(iii) HTML is a powerful programming language.
False: HTML is a markup language, not a programming language.
16. Explain the structure of an HTML program, with window design.
Refer to the explanation in Q6 and practical examples provided in the documents for window design.
17. Explain the tag(s) with example(s) - (1, 2, or 3 marks in theory paper)
Refer to the study tags section in the document. Examples include <HTML>, <HEAD>, <TITLE>, <BODY>,