Lesson 3: Tables & Forms

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/77

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:04 AM on 8/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

78 Terms

1
New cards

What is an HTML element?

A complete HTML structure that usually consists of an opening tag, content, and a closing tag.

2
New cards

What is the difference between an HTML tag and an HTML element?

A tag is the markup itself; an element includes the tags and the content they contain.

3
New cards

What are void or empty elements?

Elements that do not have closing tags or contain content, such as and
.

4
New cards

In an HTML document tree, what is an ancestor?

An element located higher in the document hierarchy.

5
New cards

What is a parent element?

An element directly above another element in the hierarchy.

6
New cards

What is a child element?

An element directly inside another element.

7
New cards

What are sibling elements?

Elements that share the same parent.

8
New cards

What is the purpose of ?

It declares that the document uses HTML5 and enables standards

9
New cards

What is the role of ?

It is the root element containing the entire HTML document.

10
New cards

What belongs in ?

Metadata and resources that describe or support the document.

11
New cards

What belongs in ?

The visible content displayed on the webpage.

12
New cards

What is the purpose of <meta charset="UTF

8">?

13
New cards

What is the purpose of the viewport meta tag?

It helps the webpage display properly across different screen sizes and devices.

14
New cards

What is the purpose of

It defines the document's title shown by the browser, such as in the browser tab.

15
New cards

What are

through

used for?

Creating headings from highest to lowest level of importance.

16
New cards

What is

used for?

Creating a paragraph of text.

17
New cards

What is

used for?

Grouping content into a generic block for organization and styling.

18
New cards

What does represent?

Important text, typically displayed in bold.

19
New cards

What does represent?

Emphasized text, typically displayed in italics.

20
New cards

What does
do?

Creates a line break.

21
New cards

Where are HTML attributes placed?

Inside the opening tag of an element.

22
New cards

What is the usual syntax of an HTML attribute?

name="value"

23
New cards

Why is the alt attribute important for images?

It provides a text alternative describing the image, improving accessibility.

24
New cards

What is the purpose of an HTML comment?

To provide notes for developers without displaying the comment on the webpage.

25
New cards

Which list should you use when the order of items does not matter?

An unordered list (

    ).

26
New cards

Which list should you use for ordered steps or rankings?

An ordered list (

    ).

27
New cards

Which list should you use for terms and their descriptions?

A description list (

), using
for the term and
for its description.

28
New cards

What does ../ mean in a relative path?

It moves up one folder from the current location.

29
New cards

What is a relative path?

A resource location described in relation to the current HTML file.

30
New cards

What is an absolute URL?

A complete web address that specifies the full location of a resource.

31
New cards

Why should forward slashes (/) be used in web paths?

They are the standard path separator for web resources.

32
New cards

If index.html is in MyWebsite/ and an image is in MyWebsite/images/, what relative path points to the image?

images/profile.jpg

33
New cards

If the current file is inside a subfolder and the resource is in its parent folder, what path notation can you use?

../

34
New cards

What HTML element embeds an image?

35
New cards

What HTML element embeds video?

36
New cards

What HTML element embeds audio?

37
New cards

Why should media elements provide meaningful alternatives or fallback content?

To improve accessibility and provide information when the media cannot be displayed or played.

38
New cards

What does the controls attribute do for audio and video?

It displays playback controls to the user.

39
New cards

What HTML element creates a hyperlink?

40
New cards

What attribute specifies where a hyperlink leads?

href

41
New cards

The content between the opening and closing tags.

42
New cards

What does target="_blank" do?

It opens the linked resource in a new browser tab.

43
New cards

How do you create a link to an email address?

44
New cards

Why should link text be descriptive instead of saying "click here"?

Descriptive text provides clearer meaning and improves accessibility.

45
New cards

What HTML element creates a table?

46
New cards

What does represent in a table?

A table row.

47
New cards

What does represent?

A table header cell.

48
New cards

What does represent?

A table data cell.

49
New cards

What is the purpose of in a table?

To provide a description or title for the table.

50
New cards

What belongs inside ?

The table's heading rows.

51
New cards

What belongs inside ?

The main data rows.

52
New cards

What is commonly used for?

Totals, summaries, or other footer information.

53
New cards

Why should tables not be used for page layout?

Tables are intended for structured data, while CSS should control page layout.

54
New cards

What is the purpose of the

element?

To group controls and collect user data for processing.

55
New cards

What does the action attribute of a form specify?

Where the submitted form data should be sent.

56
New cards

What does the method attribute specify?

How the form data is submitted to the destination.

57
New cards

Why is

It identifies and explains an input field, improving usability and accessibility.

58
New cards

What does the name attribute of a form control do?

It identifies the data when the form is submitted.

59
New cards

What does the required attribute do?

It prevents the form from being submitted when the required field is empty.

60
New cards

What is the purpose of

To trigger form submission.

61
New cards

Which input type should you use for names and short text?

text

62
New cards

Which input type provides email

specific validation?

63
New cards

Which input type masks characters such as passwords?

password

64
New cards

When should you use a radio button?

When the user must choose one option from a group.

65
New cards

When should you use checkboxes?

When the user can select multiple options.

66
New cards

Which control is appropriate for a long message?

67
New cards

Which control lets users choose an option from a menu?

68
New cards

What is the purpose of a submit control?

To send the form data for processing.

69
New cards

What is the purpose of

?

To group related form controls.

70
New cards

What is the purpose of ?

To provide a name or description for a

group.

71
New cards

How should a label be connected to its input?

Match the label's for attribute with the input's id.

72
New cards

Why should placeholders not replace labels?

A placeholder is only a temporary hint and does not reliably identify the field.

73
New cards

If a user needs to choose exactly one course from several choices, which control should you use?

Radio buttons.

74
New cards

If a user can select several skills they possess, which control should you use?

Checkboxes.

75
New cards

If a user needs to enter a paragraph

length message, which control should you use?

76
New cards

If you need to organize a class schedule into rows and columns, which HTML feature should you use?

A table.

77
New cards

If you need to group several related contact fields in a form, which elements should you use?

and
78
New cards

If an image is stored in an images folder next to index.html, which type of path is appropriate?

A relative path.