centering a h1 tag code example
Example: how to center an h1 in html
<style>
h1 {
text-align: center;
}
h2 {
text-align: left;
}
h3 {
text-align: right;
}
</style>
/* or you can do inlne
<h1 align="center">Example</h1>
<style>
h1 {
text-align: center;
}
h2 {
text-align: left;
}
h3 {
text-align: right;
}
</style>
/* or you can do inlne
<h1 align="center">Example</h1>