A. Tick the Correct Answer (Multiple Choice Questions)
Q1. Which of the following is an Empty tag?
(A) Head tag (B) Body tag (C) HTML tag (D) BR tag
Answer: (D) BR tag
Q2. Which of the following tags does not emphasize the text?
(A) Body tag (B) B tag (C) I tag (D) U tag
Answer: (A) Body tag
Q3. A computer on the Internet that shares available data and information is called –
(A) Client (B) Server (C) Website (D) Web browser
Answer: (B) Server
Q4. ____ define how different elements look on the web page.
(A) Property (B) Value (C) Selector (D) None of these
Answer: (C) Selector
Q5. Which of the following element is written after the <!DOCTYPE html> tag?
(A) Body tag (B) Head tag (C) HTML tag (D) Title tag
Answer: (C) HTML tag
B. True or False:
Q1. HTML element that does not require a closing tag is known as an Empty element.
Answer: True
Q2. Notepad and WordPad are WYSIWYG editors.
Answer: False
Q3. WYSIWYG stands for “What You See Is What You Get.”
Answer: True
Q4. <hr> and <br> are container tags.
Answer: False
Q5. Heading tags are also known as physical mark-ups.
Answer: False
C. Fill in the Blanks:
Q1. Google Web Designer and Adobe Dreamweaver are two of the popular ________.
Answer: HTML Editors
Q2. The ________ is the name of the HTML element to which we want to apply the property and value.
Answer: Selector
Q3. A tag that does not require a closing tag is known as an ________ tag.
Answer: Empty
Q4. ________ tag is used to define different heading levels in an HTML document.
Answer: Heading (<h1> to <h6>) tag
Q5. ________ and ________ are the two sections of the standard structure of an HTML document.
Answer: Head and Body
D. Answer the Following Questions:
Q1. What is the difference between WYSIWYG editor and text editor?
Answer:
WYSIWYG Editor: It stands for What You See Is What You Get; it allows users to design web pages visually (e.g., Google Web Designer, Adobe Dreamweaver).
Text Editor: It is a simple program (like Notepad) where HTML code is written manually without visual design tools.
Q2. What is the difference between container elements and empty elements?
Answer:
Container Elements: These tags have both opening and closing tags, and they enclose content.
Example: <p>…</p>
Empty Elements: These tags have only a starting tag and no closing tag.
Example: <br>, <hr>
Q3. How can you include CSS styles in HTML? Explain in detail.
Answer:
CSS can be added to HTML in three ways:
Inline CSS – Written inside an HTML tag using the style attribute.
Example: <p style="color:red;">Hello</p>
Internal CSS – Written inside the <style> tag within the <head> section of the HTML document.
External CSS – Written in a separate .css file and linked using the <link> tag in the <head> section.
Q4. Explain the various components that make up the HTML code.
Answer:
The main components of HTML code are:
DOCTYPE Declaration: Defines the document type.
HTML Element: The root element that contains all other elements.
Head Section: Contains title, metadata, and CSS links.
Body Section: Contains all visible content like text, images, tables, and links.
Q5. Write a short note on CSS.
Answer:
CSS (Cascading Style Sheets) is used to describe how HTML elements should be displayed on the web page. It controls layout, colors, fonts, and spacing. CSS helps to separate the content (HTML) from the design (style) of a webpage, making web pages attractive and easier to manage.

No comments:
Post a Comment