HTML Tutorial for Beginners(2022) - Change Text Alignment in HTML

HTML Tutorial for Beginners(2022) - Change Text Alignment in HTML

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how to align text in HTML using the CSS text-align property. It covers the basics of text alignment, demonstrates how to use the style element to apply the text-align property, and shows practical examples of aligning text to the center, right, and left. The tutorial concludes with a summary of the key points discussed.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary CSS property used to align text in HTML?

font-size

text-align

color

margin

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where can the text-align property be used in an HTML document?

In the body tag

In the script tag

In the style attribute or style element

In the title tag

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to center align text using the text-align property?

text-align: justify;

text-align: center;

text-align: right;

text-align: left;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you do after changing the text-align property to see the changes?

Restart the computer

Close the browser

Refresh the page

Reopen the HTML file

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid value for the text-align property?

bold

center

right

left