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

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how to change the alignment of headings in HTML using the CSS text-align property. It covers setting the alignment to left, center, and right, with a focus on centering an H1 heading. The tutorial demonstrates saving and running the HTML file to see the changes and discusses using the style attribute for inline styling. The video concludes with a summary of the steps to change heading alignment.

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?

Center

Left

Justify

Right

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

text-decoration

text-transform

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To center an H1 heading using CSS, which value should be assigned to the 'text-align' property?

Justify

Left

Right

Center

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Using a class attribute

Using an id attribute

Using a style attribute

Using a script tag

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'text-align' property in CSS?

To change the text color

To align text horizontally

To change the font size

To add a border to text