1/36
Flashcards based on the HTML cheat sheet covering basic structure, text elements, links, images, lists, tables, forms, media, meta tags, and semantic elements.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is the purpose of the declaration?
Defines the document type and version of HTML used.
What is the purpose of the
element in HTML?
Contains metadata about the HTML document, such as character set, viewport settings, and page title.
What does <meta charset="UTF-8" />
do?
Specifies the character encoding for the HTML document, typically set to UTF-8 for broad compatibility.
What is the purpose of the <meta name="viewport" content="width=device-width, initial-scale=1.0" />
tag?
Configures the viewport for responsive design, setting the initial scale and width to the device width.
What are the `
` tags used for?
Used to define headings of different levels, from `
` (lowest).
` tag represent?
Represents a paragraph of text.
Used to emphasize text, making it bold.
Used to italicize text.
What does the <br>
tag do?
Inserts a single line break.
What does the <hr>
tag do?
Creates a horizontal line.
Creates a hyperlink to another web page or resource.
What does the <img src="image.jpg" alt="Description" width="200" />
tag do?
Embeds an image in the HTML document.
Creates an unordered list with bullet points.
Creates an ordered list with numbered items.
Defines a table.
What does the <thead>
tag do within a table?
Defines the table header.
What does the <tbody>
tag do within a table?
Defines the table body.
What does the <form>
tag do?
Creates a form for user input.
What does the action
attribute in a <form>
tag specify?
Specifies the URL where the form data is sent.
What does the method
attribute in a <form>
tag specify?
Specifies the HTTP method used to submit the form data (e.g., GET, POST).
What does the <input type="text">
tag do?
Creates a text input field.
What does the <input type="email">
tag do?
Creates an email input field.
What does the <input type="password">
tag do?
Creates a password input field.
What does the <textarea>
tag do?
Creates a multi-line text input area.
What does the <button type="submit">
tag do?
Creates a button that submits the form.
What does the <video>
tag do?
Embeds a video player.
What does the <audio>
tag do?
Embeds an audio player.
What does the <title>
tag specify?
Specifies the title that appears in the browser tab or window title bar.
What does <link rel="stylesheet" href="style.css">
do?
Defines a link to an external stylesheet.
What does <script src="script.js"></script>
do?
Defines a link to an external JavaScript file.
What does the <header>
tag represent semantically?
Represents the header of a page or section.
What does the <nav>
tag represent semantically?
Represents a section of navigation links.
What does the <main>
tag represent semantically?
Represents the main content of a document.
What does the <section>
tag represent semantically?
Represents a thematic grouping of content.
What does the <article>
tag represent semantically?
Represents a self-contained composition in a document.
What does the <aside>
tag represent semantically?
Represents content aside from the main content.
What does the <footer>
tag represent semantically?
Represents the footer of a page or section.