(4) How to set center alignment of a text by HTML code.

How to set center alignment of a text by HTML code:

To write html I am using here Notepad. To open Notepad click to start icon of computer. In search bar write notepad. Now click to notepad.

(i) Write your text between <center> </center> for center alignment. See following example:



Code:

--->

Output:

html









Video:

How to set center alignment of a text by HTML code: