Podcast
Questions and Answers
The ______ tag has basically three attributes which are given below.
The ______ tag has basically three attributes which are given below.
font
What is the range of font size in HTML? (Select all that apply)
What is the range of font size in HTML? (Select all that apply)
What is the syntax for using the font size attribute?
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?
What are the three attributes of a font tag that can be used to change the appearance of text in HTML?
Signup and view all the answers
What is another way to set the type of font in HTML?
What is another way to set the type of font in HTML?
Signup and view all the answers
How can colors be specified in a font tag using the color attribute?
How can colors be specified in a font tag using the color attribute?
Signup and view all the answers
The font tag is still supported in HTML5.
The font tag is still supported in HTML5.
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.
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!