Web Design Project - Step Two

1. Tags

Two Types of Tags

There are tags for structure (think of them as boxes), and there are tags for text.

Structure Tags

Structure tags function as boxes, they developed from <div> tags.

  • <header> </header>
  • <nav> </nav>
  • <main> </main>
  • <article> </article>
  • <section> </section>
  • <footer> </footer>
  • <aside> </aside>

Text Tags

Text tags give hierarchy to the text. They were part of the original concept for HTML.

  • <h1> to <h6> (headlines)
  • <b> and <strong> (bold)
  • <i> and <em> (italic)
  • <p> (paragraph)
  • <code> (for displaying code)
  • <span> (for inline styling)
  • <br> (line break)

3. Media Queries

Purpose

Media Queries enable websites to seamlessly adjust to various screen sizes, improving usability across devices like smartphones, tablets, and desktops.

The Code

Media queries are incorporated within the CSS file of a website. Their syntax begins as follows:

@media only screen and (max-width: ___px) {
/* CSS rules */
}

Best Practices

Focus on modifying only what's necessary across different screen sizes. Implement a foundational CSS for all devices, and use media queries for specific alterations.