html code for align text center

 

 

 

 

html5 development center.[Getting Text To Wrap] [Image In the Center] [Speaking of Tables] [ Align One Line of Text] [Align Two Lines of Text] [Adding Blank Lines] [ Aligning Text Alone] [What About Custom Text Shaping?] You can set the alignment of any HTML element using the text-align style rule. text-align can be used to set the alignment for a paragraph, aFirst, well create a styles class called centeralign by putting the following code into the section of the document: