HTML Lab Questions
Introduction to HTML, Editors, Basic Structure
1. What is HTML? Write a short HTML page displaying “Welcome to Web Development”.
2. Name three popular HTML editors and create a simple webpage using any one of them.
3. Create an HTML document with proper <!DOCTYPE html>, <html>, <head>, and <body>
structure.
4. Write a basic HTML page with the title “My First Website” and display your name and
course details.
5. Create an HTML file that contains comments explaining each section of your code.
HTML Elements and Attributes
6. Write an HTML page using the following tags: <h1>, <p>, <a>, <img>, and <br>.
7. Create a webpage with an image and add alt, width, and height attributes.
8. Write an HTML page with three links: one opening in the same tab, one in a new tab, and
one linking to an email.
9. Create a list of your 5 favorite movies using <ol> and <ul> elements.
10. Create an HTML page using id and class attributes and style them using inline CSS.
Headings, Paragraphs, Inline Styles
11. Create a webpage with all six heading levels (<h1> to <h6>) showing a hierarchy of
topics.
12. Write a paragraph explaining your favorite hobby and make certain words bold and
italic using inline styles.
13. Create a webpage with a paragraph and change the text color to red using the style
attribute.
14. Make a paragraph where the first word is highlighted using a <span> tag and inline CSS.
15. Write an HTML page showing two paragraphs and separate them using a horizontal line
(<hr>).
Formatting Tags, Quotations, Comments
16. Create an HTML page showing the use of <b>, <i>, <u>, <mark>, and <strong> tags.
17. Display a blockquote of a famous person on your webpage with proper citation using
<blockquote> and <cite>.
18. Create a webpage using <q> tag for inline quotation and <abbr> tag for abbreviations.
19. Add at least five comments in an HTML page explaining different sections of your code.
20. Build a webpage with a heading, two paragraphs, a blockquote, and comments
explaining each line.