blue

View the Project on GitHub PennSpark/blue

2.1 HTML

What is HTML/CSS?

[toc]

Our First HTML Code

<!DOCTYPE html>
<html>
    <head>
        <title>Your Title Here</title>
    </head>
    <body>
        <h1>Your Website Header</h1>
        <p>Yada Yada this is some text!</p>
    </body>
</html>

TO-DO

  • Create a new folder on your Desktop and name it “YourNameWebsite” (eg: mine would be GraceWebsite)
  • Copy and paste the code above into your code editor
  • Save the file into your folder as index.html
  • Double click on your file index.html or open it in a web browser – your website should look something like this:

01

Basic HTML Elements

TO-DO

  • Add at least 3 different types of elements onto your website!

Formatting Text (Optional)

Sectioning Your Page

TO-DO:

  • Split up your page into at least 3 different sections, using div and span.

Styling Text

Identifying Elements on Your Page

Congrats! + Recap