HTML Formatting Tags
24 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the purpose of the <strong> element?

  • To define small text
  • To define bold text without semantic importance
  • To define italic text
  • To define emphasized text with strong semantic importance (correct)
  • Which element is used to define a section quoted from another source?

  • (correct)
  • What is the purpose of the <i> element?

  • To define small text with italic font
  • To define bold text with strong semantic importance
  • To define emphasis with strong semantic importance
  • To define italic text without semantic importance (correct)
  • Which element is used to define a brief quotation?

    Signup and view all the answers

    What is the purpose of the <em> element?

    <p>To define emphasized text with added semantic importance</p> Signup and view all the answers

    Which element is used to define an abbreviation or acronym?

    Signup and view all the answers

    What is the purpose of the `` element?

    <p>To define small text without semantic importance</p> Signup and view all the answers

    Which element is used to define subscripted text?

    Signup and view all the answers

    What is the purpose of the text-align property in HTML?

    <p>To align the text horizontally in an element</p> Signup and view all the answers

    Which of the following is an example of how to use the text-align property?

    <p style="text-align:center;">This is a paragraph.</p> Signup and view all the answers

    What is the default alignment of text in an HTML element?

    <p>Left-aligned</p> Signup and view all the answers

    Which HTML element is used to center a heading?

    <p>Centered Heading</p> Signup and view all the answers

    What is the purpose of the style attribute in HTML?

    <p>To change the style of an element</p> Signup and view all the answers

    Which property is used to align text vertically in an HTML element?

    <p>vertical-align</p> Signup and view all the answers

    What is the difference between the text-align and vertical-align properties?

    <p>text-align is used for horizontal alignment, while vertical-align is used for vertical alignment</p> Signup and view all the answers

    Can you use the text-align property to align text diagonally?

    <p>No</p> Signup and view all the answers

    What is the default alignment of table headers () in HTML?

    <p>Center-aligned and bold</p> Signup and view all the answers

    Which attribute is used to make a table cell span multiple columns?

    <p>colspan</p> Signup and view all the answers

    What is the purpose of the tag in HTML?

    <p>To add a caption or title to a table</p> Signup and view all the answers

    What is the default bullet style for unordered lists (

    • ) in HTML?

    <p>Small black circles</p> Signup and view all the answers

    Which HTML element defines the title of a work?

    Signup and view all the answers

    What is the purpose of the element in HTML?

    <p>To define a contact information</p> Signup and view all the answers

    Which attribute is used to make a table cell span multiple rows?

    <p>rowspan</p> Signup and view all the answers

    What is the purpose of the element in HTML?

    <p>To define a table or grid of data</p> Signup and view all the answers

    Study Notes

    Formatting Elements

    • <b> defines bold text without added semantic importance
    • <strong> defines strong text with added semantic importance
    • <i> defines italic text without added semantic importance
    • <em> defines emphasized text with added semantic importance
    • `` defines smaller text

    HTML Marked Formatting

    • `` defines marked or highlighted text

    HTML Deleted Formatting

    • `` defines deleted (removed) text

    HTML Inserted Formatting

    • `` defines inserted (added) text

    HTML Subscript and Superscript

    • `` defines subscripted text
    • `` defines superscripted text

    HTML Quotations

    • `` defines a short quotation
    • `` defines a section quoted from another source

    HTML Abbreviation

    • `` defines an abbreviation or acronym

    HTML Preformatted Text

    • </em></i></strong></b><pre><b><strong><i><em> displays text in a fixed-width font and preserves spaces and line breaks

    HTML Comments

    • Comments can be added to HTML source code using the following syntax: ``
    • Comments are not displayed by the browser but can help document the source code

    HTML Styles

    • The style of an HTML element can be set using the style attribute
    • The style attribute has the following syntax: style="property:value;"
    • Properties include:
      • background-color defines the background color for an element
      • color defines the text color for an element
      • font-family defines the font to use for an element
      • font-size defines the text size for an element
      • text-align defines the horizontal alignment of text for an element
      • border defines the border and its color

    HTML Tables

    • A table is defined with the </em></i></strong></b></pre><b><strong><i><em> tag
    • Table elements include:
      • `` defines a table row
      • `` defines a table header (header) cell, displayed in bold and centered
      • `` defines a table data cell, can contain all types of HTML elements
    • Cells can span multiple columns using the colspan attribute
    • Cells can span multiple rows using the rowspan attribute
    • A caption can be added to a table using the `` tag

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Description

    This quiz covers the different types of HTML formatting tags, including those for bold, italic, strong, emphasized, small, marked, deleted, and inserted text. Test your knowledge of HTML formatting elements!

    More Like This

    HTML and CSS Essentials Quiz
    10 questions
    CSA-CSS-MDL: Disk Management Tool Quiz
    18 questions
    CSS Text Formatting and Styling
    13 questions
    Use Quizgecko on...
    Browser
    Browser