What does HTML stand for?
A) HyperText Markup Language
B) HighText Machine Language
C) Hyperlink and Text Markup Language
D) Home Tool Markup Language
A
What is the main purpose of HTML?
A) Styling web pages
B) Structuring web content
C) Adding interactivity
D) Managing databases
B
Which tag represents the root of an HTML document?
A) <head>
B) <body>
C) <html>
D) <title></title>
C
What does the <title> tag define?
A) Main heading
B) Page content
C) Metadata
D) Title shown in browser tab</title>
D
Which element contains visible content of a webpage?
A) <body>
B) <head>
C) <meta></meta>
D) <link></link>
A
What is an HTML element composed of?
A) Only a tag
B) Start tag, content, and end tag
C) Only content
D) Only attributes
B
Which of the following is an example of an empty element?
A) <p>
B) <div>
C) <br></br>
D) <h1>
C
What does the <h1> tag represent?
A) Paragraph
B) Link
C) Image
D) Large heading
D
Which tag is used to create a paragraph?
A) <p>
B) <h1>
C) <div>
D) <span></span>
A
What type of element is <div>?
A) Inline element
B) Block-level element
C) Empty element
D) Semantic element
B
Which of the following is an inline element?
A) <div>
B) <p>
C) <span>
D) <section></span>
C
What is a key characteristic of block-level elements?
A) Do not use width
B) Appear inline
C) Only used for text
D) Start on a new line and take full width
D
What tag is used to create hyperlinks?
A) <a>
B) <link></link>
C) <href>
D) <url></url></href></a>
A
What does the href attribute specify?
A) Style of link
B) Destination URL
C) Link color
D) Link size
B
What does target=”_blank” do?
A) Closes the page
B) Reloads the page
C) Opens link in new tab
D) Downloads file
C
What is an absolute URL?
A) A local file path
B) A relative link
C) A shortened link
D) A full web address
D
Which list type uses bullet points?
A) <ul>
B) <ol>
C) <dl>
D) <li>
A
Which list type uses numbers?
A) <ul>
B) <ol>
C) <dl>
D) <li>
B
Which tag defines a term in a description list?
A) <dd>
B) <li>
C) <dt>
D) <ul>
C
What is a URL?
A) A programming language
B) A database query
C) A design pattern
D) A web address used to locate resources
D
Which part of a URL indicates the type of service (e.g., http, https)?
A) Scheme
B) Domain
C) Path
D) Port
A
What does the domain in a URL represent?
A) File location
B) Website name
C) Protocol type
D) Page content
B
What does the path in a URL indicate?
A) Browser type
B) Server name
C) Location of resource on server
D) File format
C
What is the purpose of the id attribute in bookmarks?
A) Styling
B) Linking external sites
C) Creating forms
D) Navigating to specific sections
D