As Albert mentioned in the comments, you can use Cascading Style Sheets instead of inline-styles in your HTML document. With CSS, you can add styles like:
div {
text-align: center;
}
Written in a CSS file once, this style will be applied to all div elements. You can additionally add classes and/or IDs to your div (or other) elements:
<div class="cool"></div>
<div class="cool"></div>
<footer class="cool"></footer>
And use CSS to apply a style to all elements with that class:
.cool {
text-align: center;
}