AI Flashcards
(27 cards)
What does HTML stand for?
HyperText Markup Language
True or False: HTML is a programming language.
False
Fill in the blank: The basic structure of an HTML document starts with the ______ tag.
<!DOCTYPE html>
What is the purpose of the <head> tag in HTML?
To contain meta-information about the document, such as the title and links to stylesheets.
Which tag is used to create a hyperlink in HTML?
<a></a>
What attribute is used with the <img></img> tag to specify the image source?
src
Multiple Choice: Which of the following is a valid HTML5 doctype? A) <!DOCTYPE html5> B) <!DOCTYPE HTML PUBLIC> C) <!DOCTYPE html>
<!DOCTYPE html>
What does the <title> tag define in an HTML document?</title>
The title of the document that appears in the browser tab.
True or False: HTML tags are case sensitive.
False
What is the purpose of the <body> tag in HTML?
To define the main content of the HTML document that is visible to users.
Fill in the blank: The <ul> tag is used to create an ______ list.
unordered
Which tag is used to create a table in HTML?
<table>
</table>
What attribute is commonly used to provide alternative text for images?
alt
Multiple Choice: Which of the following tags is used for creating a line break? A) <break> B) <br></br> C) <lb></lb></break>
<br></br>
What HTML tag is used to define the largest heading?
<h1>
</h1>
True or False: The <div> tag is a block-level element.
True
What is the purpose of the <meta></meta> tag in HTML?
To provide metadata about the HTML document, such as character set and viewport settings.
Fill in the blank: The <form> tag is used to collect ______ from users.
input
What attribute is used to specify a unique identifier for an HTML element?
id
Multiple Choice: Which of the following is not a valid HTML element? A) <p> B) <text> C) <span></span></text>
<text>
</text>
What is the function of the <link></link> tag in the <head> section?
To link external resources, such as stylesheets, to the HTML document.
True or False: You can nest HTML elements inside one another.
True
What does the <footer> tag represent in an HTML document?
The footer section that typically contains information about the author, copyright, or links.
Fill in the blank: The ______ tag is used to define an inline style in HTML.
<style>
</style>