HTML Cheat Sheet Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/36

flashcard set

Earn XP

Description and Tags

Flashcards based on the HTML cheat sheet covering basic structure, text elements, links, images, lists, tables, forms, media, meta tags, and semantic elements.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

37 Terms

1
New cards

What is the purpose of the declaration?

Defines the document type and version of HTML used.

2
New cards

What is the purpose of the

element in HTML?

Contains metadata about the HTML document, such as character set, viewport settings, and page title.

3
New cards

What does <meta charset="UTF-8" /> do?

Specifies the character encoding for the HTML document, typically set to UTF-8 for broad compatibility.

4
New cards

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.

5
New cards

What are the `

` to `

` tags used for?

Used to define headings of different levels, from `

` (highest) to `

` (lowest).

6
New cards
What does the `

` tag represent?

Represents a paragraph of text.

7
New cards
What does the `` tag do?

Used to emphasize text, making it bold.

8
New cards
What does the `` tag do?

Used to italicize text.

9
New cards

What does the <br> tag do?

Inserts a single line break.

10
New cards

What does the <hr> tag do?

Creates a horizontal line.

11
New cards
What does the `Visit Site` tag do?

Creates a hyperlink to another web page or resource.

12
New cards

What does the <img src="image.jpg" alt="Description" width="200" /> tag do?

Embeds an image in the HTML document.

13
New cards
What does the `
    ` tag represent?

Creates an unordered list with bullet points.

14
New cards
What does the `
    ` tag represent?

Creates an ordered list with numbered items.

15
New cards
What does the `` tag do?

Defines a table.

16
New cards

What does the <thead> tag do within a table?

Defines the table header.

17
New cards

What does the <tbody> tag do within a table?

Defines the table body.

18
New cards

What does the <form> tag do?

Creates a form for user input.

19
New cards

What does the action attribute in a <form> tag specify?

Specifies the URL where the form data is sent.

20
New cards

What does the method attribute in a <form> tag specify?

Specifies the HTTP method used to submit the form data (e.g., GET, POST).

21
New cards

What does the <input type="text"> tag do?

Creates a text input field.

22
New cards

What does the <input type="email"> tag do?

Creates an email input field.

23
New cards

What does the <input type="password"> tag do?

Creates a password input field.

24
New cards

What does the <textarea> tag do?

Creates a multi-line text input area.

25
New cards

What does the <button type="submit"> tag do?

Creates a button that submits the form.

26
New cards

What does the <video> tag do?

Embeds a video player.

27
New cards

What does the <audio> tag do?

Embeds an audio player.

28
New cards

What does the <title> tag specify?

Specifies the title that appears in the browser tab or window title bar.

29
New cards

What does <link rel="stylesheet" href="style.css"> do?

Defines a link to an external stylesheet.

30
New cards

What does <script src="script.js"></script> do?

Defines a link to an external JavaScript file.

31
New cards

What does the <header> tag represent semantically?

Represents the header of a page or section.

32
New cards

What does the <nav> tag represent semantically?

Represents a section of navigation links.

33
New cards

What does the <main> tag represent semantically?

Represents the main content of a document.

34
New cards

What does the <section> tag represent semantically?

Represents a thematic grouping of content.

35
New cards

What does the <article> tag represent semantically?

Represents a self-contained composition in a document.

36
New cards

What does the <aside> tag represent semantically?

Represents content aside from the main content.

37
New cards

What does the <footer> tag represent semantically?

Represents the footer of a page or section.