As I always say, having order in general is necessary and makes things easier, and HTML is no exception. 🙌
A lot of websites have a similar structure, so now it is time to add Header, Navigation, Article, Aside, and Footer to my code. It seems that is going to be the last step with HTML and then we will be ready to CSS. 👀 In my opinion, this part is very intuitive because it is like 🚶♂️ the skeleton of the page, a combination of elements, and <id> and <class> attributes can give a page structure.
<header>: A big strip across the top with a big heading, logo, and perhaps a tagline that defines the general header of the page. It goes inside the <body>.
<nav>: This navigation bar is the main menu or a table of contents.
<main>: Main content unique to the page with various content subsections represented by <article>, <section>, and <div> elements. It goes inside the <body>.
<article>: It contains a block of related content that makes sense on its own without the rest of the page. Such as an article, blog entry, comment, forum post.
<section>: Similar to <article>, a group of related content, a generic section of a page with its own heading. A page might have multiple sections.
<div>: It has no meaning itself and it is used to group content together if there is no better semantic block element to use.
<aside>: Also referred to as a ‘sidebar’, contains content that is not directly related to the main content but can provide additional information indirectly related to it, such as advertisements, links, recent posts, etc.
<footer>: Copyright notices, details, or contact info with fine print on the bottom of the page.
<class>: Identify one or more elements in a document and it can appear multiple times on a page. One element may also have multiple classes.
<meta>: It allows to include information about the document. It is a void element, and it must appear inside <head>.
<charset>: Specify a character set for the browser to use in displaying the page.
This should be declared after <head> and utf-8 is recommended.
I am really excited to start learning CSS! 🤩