Search Header Logo
HTML Tutorial for Beginners(2022) - Change Alignment of Heading in HTML

HTML Tutorial for Beginners(2022) - Change Alignment of Heading in HTML

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explains how to change the alignment of headings in HTML using the CSS text-align property. It covers the default alignment of H1 elements and demonstrates how to center or right-align them using CSS. The tutorial also shows how to test these changes in a browser and discusses using the style attribute for inline alignment settings.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default alignment for an H1 heading in HTML?

Justified

Right

Left

Center

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property is used to change the alignment of text in HTML?

text-align

font-style

align-content

text-decoration

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you center an H1 heading using CSS?

Set 'text-align' to 'right'

Set 'text-align' to 'center'

Set 'text-align' to 'justify'

Set 'text-align' to 'left'

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you do after modifying the CSS to see the changes in the browser?

Reopen the browser

Refresh the page

Restart the computer

Clear the browser cache

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you apply the 'text-align' property directly in an HTML element?

By using the 'id' attribute

By using the 'class' attribute

By using the 'style' attribute

By using the 'align' attribute

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?