Step 2: Understanding HTML Structure

1. Tags

Two Types of Tags

Structure Tags

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

Note: 99.9% of all tags work in pairs — a beginning and an end tag. Example: <h1>Title</h1>

Common structure tags include:

Note: Any name can be used for a class or ID <div> (division) tag.

Text Tags

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

Note: "h" stands for headline.

Other text tags include:

3. Media Queries

Purpose

Media Queries enable websites to adjust to various screen sizes, improving usability across devices.

The Code

Media queries are added within CSS:

@media only screen and (max-width: 990px) {
    .image-selector {
        display: none;
    }
}
            

Note: Be sure to close curly braces properly to avoid errors.

Best Practices