Text with HTML/CSS and tutorial jQuery
- In the picture beside, you see an example of a website where you will find three blocks of text.
- All text blocks are equal to centered, but with different commands.

Centered Text with HTML
HTML: 3 simple methods to center Text
On this Screenshot, you can see the Code used. Below we present the three different Code snippets short:
- Text - This way is for the layman the easiest way. Between and you can place any elements and content. Note: However, this command is no longer supported with HTML5. Therefore, we recommend one of the following two methods:
-
Text
- As to the Syntax, perhaps already recognize, this is a CSS command. If you do not otherwise CSS, we recommend the following way. -
Text
- Here you have to do something with a classic HTML-command that corresponds to the first presented.

HTML Code: Text to center
To be able to HTML Code clearer edit, are recommended special editors. We show you the best HTML Tools for Linux. Use you not (yet) Linux, you can also to the corresponding Online services use.
