understanding HTML

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

1/28

encourage image

There's no tags or description

Looks like no tags are added yet.

29 Terms

1
New cards

Why do we use HTML when creating websites?

To structure webpage content

2
New cards

Why should a webpage have a clear heading?

To identify its main topic

3
New cards

Why would you use a p element instead of an h1 element for a description?

A paragraph contains regular text rather than a heading

4
New cards

Why do we separate head and body?

To separate document information from visible content

5
New cards

Why do we use opening and closing tags?

To mark the boundaries of an element

6
New cards

Why should matching opening and closing tags use the same element name?

To correctly identify the element's boundaries

7
New cards

Why do we add attributes to elements?

To provide additional information or settings

8
New cards

Why does an image need a src attribute?

To tell the browser where to find the image

9
New cards

Why should an image have alternative text?

To provide information when the image cannot be seen

10
New cards

Why would you change an image's width attribute?

To control its displayed width

11
New cards

Why does a hyperlink need an href attribute?

To specify where the link leads

12
New cards

Why would you use target="_blank" on a link?

To open the destination in a new browsing context

13
New cards

Why would you use a link instead of a button for navigation?

A link is intended for navigation

14
New cards

Why would you use a button instead of a paragraph for an action?

A button is an interactive control

15
New cards

Why would you use an ordered list for instructions?

The sequence of the instructions matters

16
New cards

Why would you use an unordered list for a shopping list?

The order of the items usually does not matter

17
New cards

Why are li elements placed inside ol or ul elements?

They represent individual items in a list

18
New cards

Why would you group a heading and paragraph inside a div?

To organize related content together

19
New cards

Why is correct nesting important?

It preserves the intended document structure

20
New cards

Why should you indent nested elements?

To make the code easier to read

21
New cards

Why would you use strong instead of regular text?

To indicate strong importance

22
New cards

Why would you use em instead of regular text?

To indicate stress emphasis

23
New cards

Why would you use a form?

To organize controls for collecting and submitting information

24
New cards

Why should an input have a label?

To tell the user what information to enter

25
New cards

Why should the label's for attribute match the input's id?

To associate the label with the correct input

26
New cards

Why should different elements have different id values?

To identify each element uniquely

27
New cards

Why would you use a password input instead of a text input?

To mask the characters being entered

28
New cards

Why would you use an email input for an email address?

It is designed for email entry and supports email format validation

29
New cards

Why is memorizing HTML tags alone not enough?

You must also understand how to use them together