1/28
Looks like no tags are added yet.
Why do we use HTML when creating websites?
To structure webpage content
Why should a webpage have a clear heading?
To identify its main topic
Why would you use a p element instead of an h1 element for a description?
A paragraph contains regular text rather than a heading
Why do we separate head and body?
To separate document information from visible content
Why do we use opening and closing tags?
To mark the boundaries of an element
Why should matching opening and closing tags use the same element name?
To correctly identify the element's boundaries
Why do we add attributes to elements?
To provide additional information or settings
Why does an image need a src attribute?
To tell the browser where to find the image
Why should an image have alternative text?
To provide information when the image cannot be seen
Why would you change an image's width attribute?
To control its displayed width
Why does a hyperlink need an href attribute?
To specify where the link leads
Why would you use target="_blank" on a link?
To open the destination in a new browsing context
Why would you use a link instead of a button for navigation?
A link is intended for navigation
Why would you use a button instead of a paragraph for an action?
A button is an interactive control
Why would you use an ordered list for instructions?
The sequence of the instructions matters
Why would you use an unordered list for a shopping list?
The order of the items usually does not matter
Why are li elements placed inside ol or ul elements?
They represent individual items in a list
Why would you group a heading and paragraph inside a div?
To organize related content together
Why is correct nesting important?
It preserves the intended document structure
Why should you indent nested elements?
To make the code easier to read
Why would you use strong instead of regular text?
To indicate strong importance
Why would you use em instead of regular text?
To indicate stress emphasis
Why would you use a form?
To organize controls for collecting and submitting information
Why should an input have a label?
To tell the user what information to enter
Why should the label's for attribute match the input's id?
To associate the label with the correct input
Why should different elements have different id values?
To identify each element uniquely
Why would you use a password input instead of a text input?
To mask the characters being entered
Why would you use an email input for an email address?
It is designed for email entry and supports email format validation
Why is memorizing HTML tags alone not enough?
You must also understand how to use them together