code to make text in center in html code example
Example 1: centering in html
<style>
element
{
text-align: center;
}
</style>
-------------------------------------------------------------------------------
style.css
element
{
text-align: center;
}
Example 2: how to center a html header
h1{text-align: center;}