Q1: What does HTML stand for?
A: HTML stands for Hyper Text Markup Language.
Q2: What is the purpose of the <!DOCTYPE html> declaration?
A: The <!DOCTYPE html> declaration tells the browser that the document is an HTML5 document.
Q3: Which tag is used to create a hyperlink in HTML?
A: The <a> tag is used to create a hyperlink in HTML.
Q4: How do you add an image to a web page using HTML?
A: You add an image using the <img> tag. Example:
<img src="image.jpg" alt="Description of Image">
srcspecifies the path to the image.altprovides alternative text for the image.
Q5: What is the difference between <ul> and <ol> tags?
A:
<ul>is used to create an unordered list with bullet points.<ol>is used to create an ordered list with numbered items.
Q6: What tag is used to define the title of a web page?
A: The <title> tag is used to define the title of a web page, which appears on the browser tab.
Q7: How can you write a comment in HTML?
A: You can write a comment in HTML by enclosing the text within <!-- and -->. Example:
<!-- This is a comment -->
Q8: What is the purpose of the <head> tag in an HTML document?
A: The <head> tag contains meta-information about the web page, such as the title, links to stylesheets, and other metadata.
Q9: Which tag is used to define a paragraph in HTML?
A: The <p> tag is used to define a paragraph in HTML.
Q10: What attribute would you use to open a link in a new browser tab?
A: The target="_blank" attribute is used with the <a> tag to open a link in a new browser tab.
<a href="https://www.example.com" target="_blank">Open in New Tab</a>
These questions and answers are designed to help students review and reinforce their understanding of basic HTML concepts.
No comments:
Post a Comment