HTML 1 Flashcards
(93 cards)
What does HTML stand for?
HyperText Markup Language
What is the main purpose of HTML?
Structuring web pages
What is the correct doctype declaration for HTML5?
<!DOCTYPE html>
Which tag is used to define the main content of an HTML page?
<body>
</body>
What is the function of the <head> tag?
Contains metadata and links to external resources
How do you define a hyperlink in HTML?
<a>Text</a>
Which tag is used to insert an image?
<img></img>
What does the alt attribute in <img></img> do?
Provides alternative text for accessibility
How do you create an ordered list?
<ol><li>Item</li></ol>
How do you create an unordered list?
<ul><li>Item</li></ul>
Which tag is used to create a table?
<table>
</table>
What is the function of the <th> tag in a table?
Defines a table header
What does the <td> tag represent in a table?
Defines a table cell
Which attribute is used to specify a unique identifier for an element?
id
How do you create a form in HTML?
<form>
</form>
What is the purpose of the <input></input> tag?
Collects user input
How do you create a text input field?
<input></input>
What is the difference between <section> and <article>?
<section> groups related content, <article> is independent content
</article></section>
Which tag is used for navigation menus?
<nav>
</nav>
What is the function of the <footer> tag?
Defines the footer section of a webpage
How do you add a video to an HTML page?
<video><source></source></video>
How do you add an audio file to an HTML page?
<audio><source></source></audio>
What is the <canvas> tag used for?</canvas>
Creating graphics using JavaScript
What does localStorage do?
Stores data persistently in the browser
tag do?
tag?
Hover over me