What is the purpose of the style attribute in HTML?
Web: Lesson 9 HTML Styling

Quiz
•
Business
•
11th Grade
•
Medium

Steve Wills
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To add images to the webpage
To add multiple styles to a single tag
To create new HTML tags
To define the structure of the webpage
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which property is used to define the text color for a tag?
text align
font size
color
background color
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for setting the font size to 30 pixels using the style attribute?
font size = 30px
size-font: 30px
font-size: 30px
font-size 30px
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many colors with names are available in HTML?
50
100
140
200
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to align text to the right using the style attribute?
text-align: center
text-align: left
align-text: right
text-align: right
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which tag can have the style attribute added to it?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the background color property in the style attribute?
To set the font size for the tag
To align the text within the tag
To set the background color for the tag
To define the text color for the tag