HTML Assignment – 1

Basic Questions

  1. Create a basic HTML document with <html>, <head>, and <body> tags.
  2. Write an HTML document that displays a heading using <h1> with your name.
  3. Add six headings (<h1> to <h6>) in a web page, each showing “Heading 1” to “Heading 6”.
  4. Create a paragraph using <p> that describes yourself in 2–3 sentences.
  5. Add a line break (<br>) in between two sentences inside a paragraph.
  6. Insert a horizontal line (<hr>) between two headings.
  7. Write a short paragraph and include an HTML comment describing the paragraph.
  8. Use <b> to make the text “Important” bold inside a sentence.
  9. Use <i> to make the text “Special” italic inside a paragraph.
  10. Use <u> to underline the word “Highlight”.
  11. Create a paragraph where the word “Warning” is inside a <strong> tag.
  12. Create a paragraph where the word “Note” is emphasized using <em>.
  13. Write a chemical formula for water (H<sub>2</sub>O) using subscript.
  14. Write a mathematical equation for square (x<sup>2</sup>) using superscript.
  15. Display a block of preformatted text using the <pre> tag.
  16. Highlight the word “HTML” inside a sentence using the <mark> tag.
  17. Use <small> to make the copyright notice small: “© 2025”.
  18. Use <del> to show deleted text “Old Price: $100”.
  19. Use <ins> to show inserted text “New Price: $80”.
  20. Display a famous quote inside a <blockquote> element.

Intermediate Questions

  1. Create an HTML page with a title in <head> and display “Welcome to My Webpage” in <body>.
  2. Add two paragraphs on a page and insert a horizontal line between them.
  3. Create an HTML page that contains all heading levels <h1> to <h6> followed by a short paragraph for each.
  4. Write an HTML page with one comment at the top saying “This is my practice page”.
  5. Create a paragraph that contains a mix of bold, italic, and <u>underlined</u> text.
  6. Make a sentence that contains both <strong> and <em> tags.
  7. Show the following math formula in HTML: E = mc<sup>2</sup>.
  8. Write “log<sub>10</sub>” using subscript formatting.
  9. Display a block of text using <pre> that shows:
    Name: Vivek
    Age: 25
    Country: India
  10. Highlight the word “Important” using <mark> inside a paragraph.
  11. Create a paragraph where one word is shown as <small>, another as <del>, and another as <ins>.
  12. Add a famous quote inside <blockquote> and cite the author using <cite>.
  13. Write an HTML page where you use <hr> to divide three different sections.
  14. Create a paragraph and insert two <br> tags to separate three sentences.
  15. Use multiple formatting tags together: make one word bold, italic, underlined, and marked.
  16. Write a paragraph with one part normal, another emphasized <em>, and another strong <strong>.
  17. Show an example where old price is shown using <del> and new price using <ins>.
  18. Insert your name inside <mark> and display it as highlighted text.
  19. Display a paragraph with a citation at the end using <cite>.
  20. Write a page that contains at least 5 formatting tags in one sentence (bold, italic, underline, subscript, superscript).

Advanced Questions

  1. Create a complete HTML document that demonstrates all heading levels (<h1>–<h6>), paragraphs, <br>, <hr>, and comments.
  2. Build a formatted biography page of yourself using <p>, <b>, <i>, <u>, <strong>, <em>.
  3. Write an HTML page that shows a scientific formula with multiple subscripts and superscripts, e.g., C<sub>6</sub>H<sub>12</sub>O<sub>6</sub> + O<sub>2</sub> → CO<sub>2</sub> + H<sub>2</sub>O.
  4. Create an HTML article where you use <blockquote> for a quote and <cite> for the source.
  5. Make an HTML page that displays a paragraph with deleted, inserted, marked, and small text all in one example.
  6. Create a structured document with <head> (title & meta info), <body> (content), multiple headings, horizontal rules, and formatting.
  7. Show a block of preformatted poetry or code using <pre> and mix it with text formatting tags inside.
  8. Write an HTML page that combines text formatting: one word bold, italic, underlined, small, highlighted, deleted, and inserted — all in one sentence.
  9. Create an HTML page that explains HTML comments with an example — write comments before headings and paragraphs.
  10. Build a “Quotes Page” that contains at least 3 quotes in <blockquote>, each followed by <cite>.