ECOM 4th Semester
Web Technologies (HTML) – Assignment
Topics: HTML Introduction | Total Marks: 10 | Deadline: 3-02-2026(Tuesday)
Student Name: Roll No: Date:
_______________________ _______________________ _______________________
_ _ _
Section: Program: Total Marks:
_______________________ _______________________ _______________________
_ _ _
Instructions: Answer all questions. Write neatly. For practical questions, write proper HTML code with
correct indentation. Copying will result in zero marks.
Section A – Multiple Choice Questions (MCQs) | 10 × 1 = 10 Marks
Q1. Which tag is used to define the largest heading in HTML?
A) <h6>
B) <h1>
C) <head>
D) <title>
Answer: _______
Q2. What does HTML stand for?
A) Hyper Text Markup Language
B) High Tech Modern Language
C) Hyper Transfer Markup Language
D) None of these
Answer: _______
Q3. Which HTML attribute is used to define inline styles?
A) class
B) font
C) style
D) styles
Answer: _______
Q4. Which tag is used to create a line break in HTML?
A) <lb>
B) <break>
C) <br>
D) <newline>
Answer: _______
Q5. What is the correct HTML for adding a background color?
A) <body style='background-color:yellow;'>
B) <background>yellow</background>
C) <body bg='yellow'>
D) <body color='yellow'>
Answer: _______
Q6. Which element is used to display text in bold in HTML?
A) <b>
B) <bold>
C) <strong> only
D) Both A and C
Answer: _______
Q7. The <!-- --> tag in HTML is used for:
A) Formatting text
B) Adding comments
C) Creating headings
D) Linking CSS
Answer: _______
Q8. Which color format is NOT valid in HTML?
A) #FF5733
B) rgb(255,87,51)
C) color('red')
D) red
Answer: _______
Q9. The <blockquote> tag in HTML is used for:
A) Bold text
B) Long quotations
C) Hyperlinks
D) Paragraphs
Answer: _______
Q10. Which HTML tag is used to define a paragraph?
A) <para>
B) <p>
C) <par>
D) <pg>
Answer: _______
Section B – Short Answer Questions |
Q11. Define HTML and explain its basic structure with a simple example. Include the role of
<html>, <head>, and <body> tags.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Q12. What is the difference between HTML Elements and HTML Attributes? Give two
examples of each.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Q13. Explain the use of HTML Headings. How do h1 to h6 tags differ from each other? Write
code showing all six heading levels.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Q14. What are HTML Styles? Describe three ways to apply styles in HTML with syntax and
examples.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Q15. Differentiate between the following HTML Formatting tags: <b> vs <strong>, <i> vs
<em>, and <del> vs <ins>. Provide examples.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Section C – Long Answer / Practical Questions |
Q16. Write a complete HTML page titled 'My Web Portfolio' that demonstrates the use of all of
the following: headings (h1–h3), at least two paragraphs with styled text, a horizontal rule, bold
and italic formatting, an inline color style, an HTML comment, and a blockquote with a citation.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Q17. Explain in detail the following HTML concepts with working code examples for each: (a)
HTML Quotations – <q>, <blockquote>, <abbr>, <address>, <cite> (b) HTML Comments –
single-line and multi-line usage (c) HTML Colors – using color names, hex codes, and RGB
values
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________