1/69
Looks like no tags are added yet.
What does HTML stand for?
HyperText Markup Language
What is HTML used for?
Structuring webpage content
Is HTML a programming language?
No it is a markup language
What is an HTML tag?
Markup that identifies an element
What is an HTML element?
A component of an HTML document
What is an opening tag?
A tag that marks the beginning of an element
What is a closing tag?
A tag that marks the end of an element
What symbol identifies a closing tag?
A forward slash
What is element content?
Information contained inside an element
What is a void element?
An element that cannot contain child content or have a closing tag
What is an HTML attribute?
Additional information or settings for an element
Where are attributes written?
Inside the opening tag
What is an attribute value?
The information assigned to an attribute
Can an element have multiple attributes?
Yes
What does DOCTYPE html do?
Declares modern HTML
What does the html element do?
Contains the HTML document's elements
What does the head element do?
Contains metadata and document settings
What does the body element do?
Contains visible webpage content
What does the title element do?
Sets the browser tab title
Where does the title element belong?
Inside the head element
Where does visible webpage content belong?
Inside the body element
What does the h1 tag do?
Creates the highest-level heading
What does the h2 tag do?
Creates a second-level heading
How many heading levels are there?
Six
Which heading level is the lowest?
h6
What does the p tag do?
Creates a paragraph
What does the strong tag do?
Indicates strong importance
How is strong text usually displayed?
Bold
What does the em tag do?
Indicates stress emphasis
How is emphasized text usually displayed?
Italic
What does the img tag do?
Displays an image
What does the src attribute do?
Specifies a resource's location
What does the alt attribute do?
Provides alternative text for an image
What does the width attribute do on an image?
Specifies its width in pixels
Does the img element have a closing tag?
No
What does the a tag do?
Creates a hyperlink when used with href
What does the href attribute do?
Specifies a hyperlink destination
What does the target attribute do on a link?
Specifies where the linked page opens
What does target="_blank" do?
Usually opens the link in a new tab
What does the button tag do?
Creates an interactive button
Does a button automatically have custom functionality?
No
What does the div tag do?
Groups elements inside a generic container
Can a div contain another div?
Yes
Can a div contain multiple paragraphs?
Yes
What does the ol tag do?
Creates an ordered list
What does the ul tag do?
Creates an unordered list
What does the li tag do?
Defines a list item
Which list uses numbers by default?
An ordered list
Which list uses bullets by default?
An unordered list
Where do list items belong?
Inside an ol or ul element
What is nesting?
Placing one element inside another
What is a parent element?
An element that directly contains another element
What is a child element?
An element directly contained inside another element
What are sibling elements?
Elements that share the same parent
Which nested element should be explicitly closed first?
The innermost element
What is indentation?
Spacing used to improve code readability
Does indentation normally change HTML structure?
No
What does the form tag do?
Groups controls for collecting and submitting information
What does the input tag do?
Creates a control for entering or selecting information
What does the label tag do?
Describes a form control
What does the type attribute do on an input?
Specifies the kind of input control
What does type="text" create?
A single-line text field
What does type="password" create?
A field that masks entered characters
What does type="email" create?
A field intended for email addresses
What does the id attribute do?
Uniquely identifies an element
What does the for attribute do on a label?
Associates the label with a matching control
Which attributes explicitly connect a label and an input?
The label's for and the input's id
Can two elements have the same id in valid HTML?
No
Does the input element have a closing tag?
No
What does a submit button do inside a form?
Initiates form submission