HTML BASICS-COMPLETE FUNDAMENTALS

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

1/69

encourage image

There's no tags or description

Looks like no tags are added yet.

70 Terms

1
New cards

What does HTML stand for?

HyperText Markup Language

2
New cards

What is HTML used for?

Structuring webpage content

3
New cards

Is HTML a programming language?

No it is a markup language

4
New cards

What is an HTML tag?

Markup that identifies an element

5
New cards

What is an HTML element?

A component of an HTML document

6
New cards

What is an opening tag?

A tag that marks the beginning of an element

7
New cards

What is a closing tag?

A tag that marks the end of an element

8
New cards

What symbol identifies a closing tag?

A forward slash

9
New cards

What is element content?

Information contained inside an element

10
New cards

What is a void element?

An element that cannot contain child content or have a closing tag

11
New cards

What is an HTML attribute?

Additional information or settings for an element

12
New cards

Where are attributes written?

Inside the opening tag

13
New cards

What is an attribute value?

The information assigned to an attribute

14
New cards

Can an element have multiple attributes?

Yes

15
New cards

What does DOCTYPE html do?

Declares modern HTML

16
New cards

What does the html element do?

Contains the HTML document's elements

17
New cards

What does the head element do?

Contains metadata and document settings

18
New cards

What does the body element do?

Contains visible webpage content

19
New cards

What does the title element do?

Sets the browser tab title

20
New cards

Where does the title element belong?

Inside the head element

21
New cards

Where does visible webpage content belong?

Inside the body element

22
New cards

What does the h1 tag do?

Creates the highest-level heading

23
New cards

What does the h2 tag do?

Creates a second-level heading

24
New cards

How many heading levels are there?

Six

25
New cards

Which heading level is the lowest?

h6

26
New cards

What does the p tag do?

Creates a paragraph

27
New cards

What does the strong tag do?

Indicates strong importance

28
New cards

How is strong text usually displayed?

Bold

29
New cards

What does the em tag do?

Indicates stress emphasis

30
New cards

How is emphasized text usually displayed?

Italic

31
New cards

What does the img tag do?

Displays an image

32
New cards

What does the src attribute do?

Specifies a resource's location

33
New cards

What does the alt attribute do?

Provides alternative text for an image

34
New cards

What does the width attribute do on an image?

Specifies its width in pixels

35
New cards

Does the img element have a closing tag?

No

36
New cards

What does the a tag do?

Creates a hyperlink when used with href

37
New cards

What does the href attribute do?

Specifies a hyperlink destination

38
New cards

What does the target attribute do on a link?

Specifies where the linked page opens

39
New cards

What does target="_blank" do?

Usually opens the link in a new tab

40
New cards

What does the button tag do?

Creates an interactive button

41
New cards

Does a button automatically have custom functionality?

No

42
New cards

What does the div tag do?

Groups elements inside a generic container

43
New cards

Can a div contain another div?

Yes

44
New cards

Can a div contain multiple paragraphs?

Yes

45
New cards

What does the ol tag do?

Creates an ordered list

46
New cards

What does the ul tag do?

Creates an unordered list

47
New cards

What does the li tag do?

Defines a list item

48
New cards

Which list uses numbers by default?

An ordered list

49
New cards

Which list uses bullets by default?

An unordered list

50
New cards

Where do list items belong?

Inside an ol or ul element

51
New cards

What is nesting?

Placing one element inside another

52
New cards

What is a parent element?

An element that directly contains another element

53
New cards

What is a child element?

An element directly contained inside another element

54
New cards

What are sibling elements?

Elements that share the same parent

55
New cards

Which nested element should be explicitly closed first?

The innermost element

56
New cards

What is indentation?

Spacing used to improve code readability

57
New cards

Does indentation normally change HTML structure?

No

58
New cards

What does the form tag do?

Groups controls for collecting and submitting information

59
New cards

What does the input tag do?

Creates a control for entering or selecting information

60
New cards

What does the label tag do?

Describes a form control

61
New cards

What does the type attribute do on an input?

Specifies the kind of input control

62
New cards

What does type="text" create?

A single-line text field

63
New cards

What does type="password" create?

A field that masks entered characters

64
New cards

What does type="email" create?

A field intended for email addresses

65
New cards

What does the id attribute do?

Uniquely identifies an element

66
New cards

What does the for attribute do on a label?

Associates the label with a matching control

67
New cards

Which attributes explicitly connect a label and an input?

The label's for and the input's id

68
New cards

Can two elements have the same id in valid HTML?

No

69
New cards

Does the input element have a closing tag?

No

70
New cards

What does a submit button do inside a form?

Initiates form submission