Moksha - Test 2 - HTML

 



HTML Coding and Theory Test



Instructions:

  • Answer all the multiple-choice questions by selecting the correct option.
  • Write HTML code to solve the coding questions.
  • You have 60 minutes to complete the test.

Multiple-Choice Questions:

  1. What does HTML stand for?

    a) Hyper Text Markup Language b) High-level Text Markup Language c) Hyperlink and Text Markup Language d) Home Text Markup Language

  2. Which HTML element is used to create a hyperlink?

    a) <link> b) <hyperlink> c) <a> d) <href>

  3. What is the correct HTML tag for creating an ordered list?

    a) <ul> b) <li> c) <ol> d) <dl>

  4. Which HTML tag is used for creating a line break?

    a) <br> b) <lb> c) <newline> d) <break>

  5. Which HTML tag is used for defining the structure of an HTML document, including the title and metadata?

    a) <body> b) <head> c) <html> d) <meta>

Coding Questions:

  1. Create an HTML document that includes the following:

    • A title that says "My Web Page."
    • A heading with the text "Welcome to My Web Page."
    • A paragraph with the text "This is a sample web page."
  2. Add an image to your HTML document. Use the following URL for the image: https://example.com/image.jpg.

  3. Create an ordered list with three list items. Each list item should contain a fruit name (e.g., "Apple," "Banana," "Orange").

  4. Create a hyperlink that links to the URL https://www.example.com. The link text should say "Visit Example Website."

  5. Add a comment to your HTML document with the text "This is a comment."

Theory Questions:

  1. What is the purpose of the HTML <DOCTYPE> declaration?

  2. Explain the difference between HTML and HTML5.

  3. What is the purpose of the HTML <meta> tag, and why is it important in web development?

  4. Describe the difference between block-level elements and inline elements in HTML.

  5. How does HTML structure a web page, and why is it important for SEO (Search Engine Optimization)?

Scoring:

  • Each multiple-choice question is worth 2 points.
  • Each coding question is worth 10 points.
  • Each theory question is worth 5 points.

Total Points: 100

Comments

Popular posts from this blog

FrontEnd - FAQs - Part 1

Java Script - FAQs

CoreJava - ClassesObjectsMethods - Assignment