Hızlı yanıt: kod örneği
The text alignment needs to be declared in CSS. You can do this in a CSS section at the top of the file, in a separate file, or in the element itself. The simplest method would be the latter (note that this method is not generally considered a good practice):If you want to put it at the top of the html file, it would look like this:The best method would be to have a separate CSS stylesheet containing the CSS. Then, add a link to the CSS in the section of your html:
<p style="text-align: center">Text</p>
<head><style type="text/css"><!--p.centered{ text-align:center;}--></style></head><body>... <p class="centered">Text</p></body>
<head></head>
<head><link href="path/to/file/name.css" rel="stylesheet" type="text/css" /></head>