How to create centering content in HTML.

<center> tag using for create centering content in HTML. You must check tag open<center> & close</center> every coding.

Ex - <center>  <p>Welcome to Coding Request</p>  </center>

Now we are checking the centering content in HTML


<html>
 <head>
  <title>Coding Request</title>
 </head>
  <body>
    <p>Welcome to Coding Request</p>
    <center>
    <p>Now we are learning centering content</p>
    </center>
  </body>
</html>

Code view in notepad++

Noteped++ Download link here https://notepad-plus-plus.org/downloads/


Image 1

Some coding meaning here

  • <title>........</title> - Your title place
  • <p>..........</p> - Your paragraph place
  • <center> ...........</center> - Centering Content

Result view in browser




Image 2

C:/Users/MUNZIR/Document/centering.html this is our programme file path. You need more information check the practical video.

Practical Video




Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.