HTML Font Tags and Attributes Quiz
7 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

The ______ tag has basically three attributes which are given below.

font

What is the range of font size in HTML? (Select all that apply)

  • 1 to 10
  • 1 to 7 (correct)
  • 2 to 12
  • 1 to 20
  • What is the syntax for using the font size attribute?

    content

    What are the three attributes of a font tag that can be used to change the appearance of text in HTML?

    <p>font color</p> Signup and view all the answers

    What is another way to set the type of font in HTML?

    <p>Using the font-family property in CSS</p> Signup and view all the answers

    How can colors be specified in a font tag using the color attribute?

    <p>All of the above</p> Signup and view all the answers

    The font tag is still supported in HTML5.

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

    Study Notes

    Font Tags and Attributes

    • Font tags are used to format text in HTML documents. The font tag is no longer supported in HTML5.
    • Font tags can have attributes like:
      • size: Adjusts the size of the text. Values range from 1 (smallest) to 7 (largest); default is 3.
      • face: Specifies the font family. Ensure fonts are installed on the user's system. Examples include "Times New Roman", "Verdana", "Comic Sans MS," and "Calibri".
      • color: Sets the text color. Values can be color names (e.g., "red," "blue"), hexadecimal color codes (e.g., "#FF0000"), or RGB values (e.g., "rgb(255, 0, 0)").

    Objectives

    • Identify font tags and their attributes in HTML.
    • Apply font tags to format text within HTML documents.

    Font Size

    • The size attribute defines the font size.
    • The size values range from 1 to 7. A size of 3 is the default.
    • The font tag syntax is <font size="number">content</font>.

    Font Face/Type

    • The face attribute sets the font family.
    • Font families need to be installed on the user's system for display.
    • The general syntax is <font face="font_family">content</font>. Or, <font face="font_family" size="number">content</font>.

    Font Color

    • The color attribute formats the text color.
    • Values can be color names, hexadecimal codes (#RRGGBB), or RGB values (rgb(red, green, blue)).
    • Syntax: <font color="color_value">content</font>.

    Studying That Suits You

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

    Quiz Team

    Related Documents

    Description

    Test your knowledge on font tags and attributes used in HTML. This quiz focuses on identifying and applying font tags such as size, face, and color to format text. Ideal for web development students and enthusiasts!

    More Like This

    HTML Font-Face Quiz
    10 questions

    HTML Font-Face Quiz

    DesirableSatire avatar
    DesirableSatire
    HTML Font Size Attribute
    3 questions
    CSS Text Formatting and Styling
    13 questions
    Understanding Fonts and Cuneiform System
    11 questions
    Use Quizgecko on...
    Browser
    Browser