first.html

Our Environment To get started in this class you need three items.

Making and Viewing PagesFor now, we will deal in mechanics. First, get your file system ready.Do not store files in VSCode's subtree.This is a very bad idea. You can lose data if you update VSCode.

You should have a place on your computer where you store your school work, as indicated in my stern lecture on your file system. Make a folder in it calledwebdev. Go inside of this folder and make a folders calledHTMLandCSS.

Now launch VSCode. You will see this.

Now select Save from the menu or hit command-s (mac) or control-s (windoze) and save this file asfirst.htmlinto your HTML folder.

Now you are ready to type. Put this in your file.

<!doctype html>

This says, "this is an HTML5 file" to the browser.

Now enter this.

<!doctype html>
<html lang="en">
    <head>
    </head>
    <body>
    </body>
</html>

Next add these goodies.


<!doctype html>
<html lang="en">
    <head>
        <title>My First Page</title>
    </head>
    <body>
        <h1>My First Page</h1>
    </body>
</html>

Once you do this, save agin. Here is what my file looks like on my local machine. You can see the contents of my 402 folder on the left. You can click on any file on the left to see it. Right now there is just one file in the folder.

VSCode Window

How do I see this masterpiece?Start Firefox or Chrome. Then from the File menu selectOpen...You can also hit command-o (mac) or control-o (windoze).

Chrome rendering first.html

Now you know the setup. Open files with VSCode to edit and open the same file with the browser to view it. If you add to the file, you save it, then hit the refresh button on the browser to see the changes.

What is the meaning of this?

Things that look like this <foo> are called opening tags. They start a rectangluar region on a document called an element. Things that looks like this</foo>are called closing tags. They end an element

Pod Activity

Now it's time to get your hands dirty. Go to theTag Reference PageYOu are going to lern about some tags and then put them into this page first.html.

Cap'n we're listing!

Ripped from the headlines!

Your image is a disgrace!Want an image? Here's how.

Making a linkGo to the <a> tag and see how to make a link. Add one on your first.html page. Submit this on Canvas. Make sure your page has all the requested elements. The name of the file should be first.html