What all formatting can you do on a web page?
Answers
Every webpage is different, and depending on the type of website, and the content held therein, different formats might be more appropriate than others. But regardless of the type of site, there are a few HTML elements which we can use to format things in a consistent and organized way.
To begin, let’s take a look at a website which is formatted using a variety of HTML container tags. By most standards, this would be considered a well formatted website. Once you’ve taken a look, I’ll walk you through what everything means:
<body>
<header>
Header
<nav>
Nav
</nav>
</header>
<main>
Main
<article>
Article
<section>
Section 1
<aside>
Aside
</aside>
</section>
<section>
Section 2
</section>
</article>
</main>
<footer>
Footer
</footer>
</body>
As you can see, we are utilizing a lot of tags here, which, aside from the body tag, you might never have seen before.