Home

Day 4 - My First HTML Document

3.3.26

Comment = a note written inside the code that humans can read and browsers ignore.
Comment example = <!-- add your notes here -->

Declaration

<!DOCTYPE html> = HTML5 = very top of page

HTML element

<html lang="en"> = includes language, in tis case “en” for English.

Head Element

Main Element

<main>
Things that live inside the “main” (two spaces in!)
Important content lives here.

</main>

Footer element: <footer></footer> goes below the <main> element text portion. Includes liner notes (like author information)

Other Notes

target="_blank" opend link in new tab (my favorite trick).

Image with a link: <a href="URL"> <img src="image-link.jpg" alt="Description"> </a>

figure element & ficure caption element example: <figure> <img src="image.jpg" alt="Image description"> <figcaption>Add caption here</figcaption> </figure>

Italicize text example: <em>love</em> = love

Bold text example: <strong>hate</strong> = hate

My First HTML Document :)

Code
Rendered Output

Using HTML for something personal - Colleen’s Killer Chili <3

Code
Rendered Output