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:
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
Which HTML element is used to create a hyperlink?
a)
<link>
b)<hyperlink>
c)<a>
d)<href>
What is the correct HTML tag for creating an ordered list?
a)
<ul>
b)<li>
c)<ol>
d)<dl>
Which HTML tag is used for creating a line break?
a)
<br>
b)<lb>
c)<newline>
d)<break>
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:
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."
Add an image to your HTML document. Use the following URL for the image:
https://example.com/image.jpg
.Create an ordered list with three list items. Each list item should contain a fruit name (e.g., "Apple," "Banana," "Orange").
Create a hyperlink that links to the URL
https://www.example.com
. The link text should say "Visit Example Website."Add a comment to your HTML document with the text "This is a comment."
Theory Questions:
What is the purpose of the HTML
<DOCTYPE>
declaration?Explain the difference between HTML and HTML5.
What is the purpose of the HTML
<meta>
tag, and why is it important in web development?Describe the difference between block-level elements and inline elements in HTML.
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
Post a Comment