HTML Basics: Structure, Elements, Attributes, and Semantic Tags

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

1/51

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:16 AM on 2/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

52 Terms

1
New cards

What is the primary purpose of HTML?

HTML is for structure, not style.

2
New cards

How are HTML elements defined?

Using tags, which usually consist of an opening and a closing tag.

3
New cards

What does the

tag represent?

The Heading 1 tag.

4
New cards

What is a void element in HTML?

An element that has no closing tag and ends with a /, such as .

5
New cards

How are attributes written in an HTML tag?

Attributes are written in the opening tag after the tag name, in the format attributename="attributevalue".

6
New cards

What does the href attribute do in an tag?

It sets the destination of the link.

7
New cards

What does target="_blank" do in an tag?

It opens the link in another page.

8
New cards

What does the declaration do?

It tells the browser to use HTML5.

9
New cards

What is the element used for?

It contains the metadata for the HTML file.

10
New cards

What is the purpose of the tag?

It tells the browser to render the HTML text with the Unicode character encoding.

11
New cards

What does the element contain?

The content that gets displayed in the browser.

12
New cards

What are block elements in HTML?

Elements that start on a new line and take up the full width of their parent element, e.g.,

,

.

13
New cards

What are inline elements in HTML?

Elements that start on the same line as the previous element and take up only the width necessary to display their content, e.g., , , .

14
New cards

What is semantic HTML?

Using elements that have semantic meaning rather than just visual appeal.

15
New cards

What should each page have in terms of

tags?

Only one

tag.

16
New cards

What is the purpose of the

tag?

It serves as a container for copyright, navigation, and social media links, usually at the bottom of the page.

17
New cards

What does

    represent in HTML?

An unordered (bulleted) list.

18
New cards

What is the

    tag used for?

An ordered list that has an inherent order.

19
New cards

What does the

  • tag represent?
  • A list item in an

      or
        .

    20
    New cards

    What is the

    It is used to define a navigation bar.

    21
    New cards

    What is the role of the

    tag?

    It serves as a container for the main page content.

    22
    New cards

    What does tag do?

    It is used for strongly emphasizing text.

    23
    New cards

    What is the function of the tag?

    It is used for emphasizing text.

    24
    New cards

    What happens if is not included in HTML?

    The browser may not render the HTML text correctly.

    25
    New cards

    tag used for?

    A generic block container for grouping elements, primarily for styling.

    26
    New cards

    What is the tag used for?

    A generic inline container for grouping elements, primarily for styling.

    27
    New cards

    What is the default character encoding for web pages today?

    Unicode

    28
    New cards

    What does the tag do?

    It ensures that the browser renders the page in Unicode.

    29
    New cards

    What is the purpose of the tag in HTML?

    To display images on a webpage.

    30
    New cards

    What attributes are required for the tag?

    src (URL of the image) and alt (description of the image).

    31
    New cards

    What does the alt attribute in an tag do?

    It provides a description of the image for accessibility and displays if the image cannot be loaded.

    32
    New cards

    What is the

    To embed another HTML page within the current webpage.

    33
    New cards

    What are boolean attributes in HTML?

    Attributes that can be set to true or false, such as allowfullscreen in

    34
    New cards

    What happens when a boolean attribute is not included in an HTML tag?

    The value of the attribute is considered false.

    35
    New cards

    What is the function of the width and height attributes in an

    To set the dimensions of the iframe.

    36
    New cards

    What is a URL in the context of an tag?

    The address pointing to the location of the image file.

    37
    New cards

    What is the difference between relative and absolute URLs?

    Relative URLs point to a resource based on the current directory, while absolute URLs include the full path starting from the domain.

    38
    New cards

    What is the purpose of the target attribute in an tag?

    To specify where to open the linked document (e.g., current tab, new tab).

    39
    New cards

    What does the target value '_blank' do?

    It opens the link in a new tab or window.

    40
    New cards

    element used for in HTML?

    To group block elements and apply styles or layout.

    41
    New cards

    What are semantic tags introduced in HTML5?

    Tags like

    42
    New cards

    What is the significance of the width attribute in an tag?

    It sets the width of the image, which can be specified in pixels or as a percentage.

    43
    New cards

    What happens if only the width attribute is set for an tag?

    The height will scale automatically to maintain the aspect ratio of the image.

    44
    New cards

    What goes in the opening tags of an HTML element?

    Attributes that provide additional information about the element.

    45
    New cards

    What is the content of an HTML element?

    The text or other elements placed between the opening and closing tags.

    46
    New cards

    What is the role of the

    To embed video files directly into a webpage.

    47
    New cards

    What is the difference between

    48
    New cards

    What does the

    tag represent in HTML?

    A paragraph of text.

    49
    New cards

    What is the function of the title attribute in a

    tag?

    To provide additional information about the paragraph, often displayed as a tooltip.

    50
    New cards

    What is the default value of the target attribute in an tag?

    '_self', which opens the link in the same tab.

    51
    New cards

    How does the tag behave as an inline element?

    It does not start on a new line and allows other elements to sit beside it.

    52
    New cards

    What is the purpose of the

    tag in HTML5?

    To represent the dominant content of the of a document.