Full HTML Review Flashcards

1
Q

What is the role of HTML?

A

Foundation of web structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are HTML elements used for?

A

Used to represent content on the page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a div element?

A

A generic HTML element that does not hold any semantic meaning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are void elements?

A

Do not have a closing tag (e.g., <img></img>)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are attributes in HTML?

A

Adding metadata and behavior to elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of IDs in HTML?

A

Unique element identifiers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are classes used for in HTML?

A

Grouping elements for styling and behavior

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are HTML entities?

A

Using special characters like & and <

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the link element do?

A

Linking to external stylesheets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the purpose of the script element?

A

Embedding external JavaScript files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is included in the HTML boilerplate?

A

DOCTYPE, html, head, and body elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is UTF-8 character encoding used for?

A

Ensuring universal character display

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the function of meta tags in HTML?

A

Providing a short description for the web page and impacting SEO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are Open Graph tags used for?

A

Enhancing social media sharing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are replaced elements in HTML?

A

Embedded content (e.g., images, iframes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What techniques are used for optimizing media?

A

Techniques to improve media performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are SVGs?

A

Scalable vector graphics for sharp visuals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What elements are used for embedding multimedia in HTML?

A

HTML audio and video elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the purpose of the target attribute?

A

Controlling link behavior

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is the difference between absolute and relative paths?

A

Navigating directories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What does the path syntax in HTML include?

A

/, ./, ../ for file navigation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Why is semantic HTML important?

A

Maintains the structural hierarchy of the content

23
Q

What are presentational HTML elements?

A

Elements that define the appearance of content

24
Q

What is the em element used for?

A

Marks text that has stress emphasis

25
What does the strong element indicate?
Marks text that has strong importance
26
What is the function of the blockquote element?
Used to represent a section that is quoted from another source
27
What does the form element do?
Used to create an HTML form for user input
28
What is the action attribute in a form?
Specifies the URL where the form data should be sent
29
What are the common HTTP methods used in forms?
* GET * POST
30
What is the purpose of the input element?
Used to create an input field for user input
31
What does the type attribute specify in an input field?
The type of input field (e.g., text, email, number)
32
What is the placeholder attribute used for?
Shows a hint to the user about what to enter in the input field
33
What does the required attribute indicate?
Specifies that an input field must be filled out before submitting the form
34
What is the purpose of the label element?
Creates a label for an input field
35
What is the button element used for?
Creates a clickable button
36
What does the fieldset element do?
Groups related inputs together
37
What is the use of the legend element?
Adds a caption to describe the group of inputs
38
What is the purpose of the table element?
Used to create an HTML table
39
What does the thead element do?
Groups the header content in an HTML table
40
What is the function of the th element?
Creates a header cell in an HTML table
41
What is the purpose of the caption element in a table?
Adds a title to an HTML table
42
What is an HTML validator?
A tool that checks the syntax of HTML code to ensure it is valid
43
What are the Web Content Accessibility Guidelines (WCAG)?
A set of guidelines for making web content more accessible
44
What is a screen reader?
Software programs that read the content of a computer screen out loud
45
What is the importance of good alt text?
Provides a text alternative for images
46
What is the tabindex attribute used for?
Makes elements focusable and defines the relative order for keyboard navigation
47
What does WAI-ARIA stand for?
Web Accessibility Initiative - Accessible Rich Internet Applications
48
What are aria-label and aria-labelledby attributes used for?
Give an element a programmatic name for assistive technology
49
What is the aria-hidden attribute used for?
Hides an element from assistive technologies
50
What does the aria-expanded attribute indicate?
Conveys the state of a toggle feature to screen reader users
51
What are common Aria states?
* aria-haspopup * aria-checked * aria-disabled * aria-selected
52
What does the aria-controls attribute do?
Associates an element with another element that it controls
53
What is the purpose of the aria-describedby attribute?
Provides additional information about an element