Untitled Deck 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?

A

Used to represent content on the page, made by an opening and a closing tag (e.g., <h1></h1>, <p></p>).

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, used as a container for other HTML elements.

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

What are void elements?

A

Elements that 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 are 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 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></link> element do?

A

Links to external stylesheets.

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

What does the

 element do?
A

Embeds external JavaScript files.

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

What is HTML boilerplate?

A

Basic structure of a webpage, including 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?

A

Ensuring universal character display.

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

What are meta tags?

A

Provide a short description for the web page and impact SEO.

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

What are Open Graph tags?

A

Enhance 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 does optimizing media involve?

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 are HTML audio and video elements?

A

Used for embedding multimedia.

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

What does embedding with <iframe> do?

A

Integrates external video content.

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

What are target attribute types?

A

Controlling link behavior.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
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
22
Q

What is path syntax?

A

Understanding /, ./, ../ for file navigation.

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

What are link states?

A

Managing different link interactions (hover, active).

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

Why is semantic HTML important?

A

Maintains the structural hierarchy of content.

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

What are presentational HTML elements?

A

Elements that define the appearance of content (e.g., deprecated center, big, font).

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

What are semantic HTML elements?

A

Elements that hold meaning and structure (e.g., header, nav, figure).

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

What does the emphasis (em) element do?

A

Marks text that has stress emphasis.

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

What does the idiomatic text (i) element do?

A

Used for highlighting alternative voice or mood.

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

What does the strong importance (strong) element do?

A

Marks text that has strong importance.

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

What does the bring attention to (b) element do?

A

Used to bring attention to text that is not important for the meaning of the content.

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

What does the description list (dl) element do?

A

Represents a list of term-description groupings.

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

What does the description term (dt) element do?

A

Represents the term being defined.

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

What does the description details (dd) element do?

A

Represents the description of the term.

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

What does the block quotation (blockquote) element do?

A

Represents a section quoted from another source.

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

What does the inline quotation (q) element do?

A

Represents a short inline quotation.

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

What does the abbreviation (abbr) element do?

A

Represents an abbreviation or acronym.

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

What does the contact address (address) element do?

A

Represents the contact information.

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

What does the time (time) element do?

A

Represents a date and/or time.

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

What does the superscript (sup) element do?

A

Represents superscript text.

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

What does the subscript (sub) element do?

A

Represents subscript text.

41
Q

What does the inline code (code) element do?

A

Represents a fragment of computer code.

42
Q

What does the unarticulated annotation (u) element do?

A

Represents inline text with a non-textual annotation.

43
Q

What does the ruby annotation (ruby) element do?

A

Represents the text of a ruby annotation.

44
Q

What does the strikethrough (s) element do?

A

Represents content that is no longer accurate or relevant.

45
Q

What does the form element do?

A

Creates an HTML form for user input.

46
Q

What does the action attribute do?

A

Specifies the URL where the form data should be sent.

47
Q

What does the input element do?

A

Creates an input field for user input.

48
Q

What does the type attribute do?

A

Specifies the type of input field (e.g., text, password, email).

49
Q

What does the label element do?

A

Creates a label for an input field.

50
Q

What does the for attribute do?

A

Specifies which input field the label is for.

51
Q

What is implicit form association?

A

Inputs can be associated with labels by wrapping the input field inside the label element.

52
Q

What is explicit form association?

A

Inputs can be associated with labels using the for attribute on the label element.

53
Q

What does the placeholder attribute do?

A

Specifies a short hint that describes the expected value of an input field.

54
Q

What does the button element do?

A

Creates a clickable button (e.g., submit, reset, button).

55
Q

What does the value attribute do?

A

Specifies the value of the button.

56
Q

What does the required attribute do?

A

Specifies that an input field must be filled out before submitting the form.

57
Q

What does the size attribute do?

A

Specifies the width of an input field.

58
Q

What does the minlength attribute do?

A

Specifies the minimum number of characters required in an input field.

59
Q

What does the maxlength attribute do?

A

Specifies the maximum number of characters allowed in an input field.

60
Q

What does the disabled attribute do?

A

Specifies that an input field should be disabled.

61
Q

What does the readonly attribute do?

A

Specifies that an input field is read-only.

62
Q

What is the focused state?

A

The state of an input field when it is selected by the user.

63
Q

What does the table element do?

A

Creates an HTML table.

64
Q

What does the table head (thead) element do?

A

Groups the header content in an HTML table.

65
Q

What does the table row (tr) element do?

A

Creates a row in an HTML table.

66
Q

What does the table header (th) element do?

A

Creates a header cell in an HTML table.

67
Q

What does the colspan attribute do?

A

Specifies the number of columns a header cell should span.

68
Q

What does the table body (tbody) element do?

A

Groups the body content in an HTML table.

69
Q

What does the table data cell (td) element do?

A

Creates a data cell in an HTML table.

70
Q

What does the table foot (tfoot) element do?

A

Groups the footer content in an HTML table.

71
Q

What is an HTML validator?

A

A tool that checks the syntax of HTML code to ensure it is valid.

72
Q

What is a DOM inspector?

A

A tool that allows you to inspect and modify the HTML structure of a web page.

73
Q

What are Devtools?

A

A set of web developer tools built into the browser for debugging and analyzing web pages.

74
Q

What are the Web Content Accessibility Guidelines (WCAG)?

A

A set of guidelines for making web content more accessible to people with disabilities.

75
Q

What does POUR stand for in WCAG?

A

Perceivable, Operable, Understandable, and Robust.

76
Q

What are screen readers?

A

Software programs that read the content of a computer screen out loud.

77
Q

What are large text or braille keyboards?

A

Used by people with visual impairments to access the web.

78
Q

What are screen magnifiers?

A

Software programs that enlarge the content of a computer screen.

79
Q

What are alternative pointing devices?

A

Devices used by people with mobility impairments to access the web.

80
Q

What is voice recognition?

A

Allows users to control a computer using their voice.

81
Q

What are common accessibility tools?

A

Google Lighthouse, Wave, IBM Equal Accessibility Checker, and axe DevTools.

82
Q

What is proper heading level structure?

A

Using proper heading levels to create a logical structure for content.

83
Q

How should tables be structured for accessibility?

A

Use <th> for header cells and <td> for data cells.

84
Q

Why is it important for inputs to have an associated label?

A

Helps assistive technologies understand the purpose of the input.

85
Q

What is the importance of good alt text?

A

Helps assistive technologies understand the content of the image.

86
Q

What is the importance of good link text?

A

Helps users understand the purpose of the link.

87
Q

What are best practices for making audio and video content accessible?

A

Provide captions, transcripts, and audio descriptions.

88
Q

What does the tabindex attribute do?

A

Makes elements focusable and defines the order for keyboard navigation.

89
Q

What does the accesskey attribute do?

A

Defines a keyboard shortcut for an element.

90
Q

What is WAI-ARIA?

A

Web Accessibility Initiative - Accessible Rich Internet Applications.

91
Q

What are aria roles?

A

Predefined roles added to HTML elements to define their purpose.

92
Q

What do aria-label and aria-labelledby attributes do?

A

Give an element a programmatic name for assistive technology.

93
Q

What does the aria-hidden attribute do?

A

Hides an element from assistive technologies.

94
Q

What does the aria-expanded attribute do?

A

Conveys the state of a toggle feature to screen reader users.

95
Q

What does the aria-live attribute do?

A

Indicates that an element’s content changes should be announced to screen reader users.

96
Q

What are common Aria states?

A

Include aria-haspopup, aria-checked, aria-disabled, and aria-selected.

97
Q

What does the aria-controls attribute do?

A

Associates an element with another element that it controls.

98
Q

What does the aria-describedby attribute do?

A

Provides additional information about an element by associating it with another element.