Web I
Class 3
Spring 2023
AAV255
Assignment Recap:
Post your sitemap and wireframe links to the discussion in Canvas along with the required information, provide feedback to at least 3 others.
A brief history of the web
A brief history of the web
How the Web Works
Front-end and Back-end
Static vs Dynamic
What the heck is HTML?
What the heck is CSS and JS?
Websites without CSS
HTML can be nested
Pseudo code from Professor Kelter
The HTML Family Tree
HTML5 is Semantic
HTML5 is Semantic
You could replace With
and it would still be “valid” but less helpful for developers and computers alike
All HTML elements and examples from Mozilla
Some HTML has “default” CSS styles
File Paths
<a href=”classes/class1.html”>Class 1</a>
<a href=”../index.html”>Home</a>
The “../” means go up a level
<img src=”../assets/imgs/tcnj-logo.png”>
H1, h2, h3, h4, h5, h6
Buttons vs Links
Git and GitHub
Git Terms
Making and using a GitHub Repository for your own website’s code
2. Give your repo a name and leave everything else as it is. Hit create repository
3. Click “set up in desktop”
4. Pick the local path on your computer where you want to edit your code from
5. That folder will now exist where you set the file path. Open it in VS Code by dragging the folder to the VS Code App Icon
6. Make a new file called index.html in the folder
6. Make a new file called index.html in the folder. Let’s add the HTML boilerplate code. Type “hello world” in the body.
7. Git has tracked your change!
8. Write a message and commit
9. Push the change to GitHub
Make sure to edit your code in that folder, and make commits frequently! Your code will now be saved and track with Git.
BONUS! Want to put your code on a live url anyone can see? With GitHub it’s easy
2. Click pages
3. Select your main branch and hit save
In a few minutes, your website will be live at [your-username].github.io/[your-repo-name]
Every time you push code it will update!
Getting our own fork of the class project
4. Uncheck “copy the main branch only” and create fork
5. Go to your new fork on your page, and open it via GitHub desktop
6. Clone it locally (change the file path to where you’d like it to save)
7. When it asks how you’re planning to use the fork, select “for my own purposes”
8. Switch to the branch for today’s class
9. Open the folder in VS Code.
The purpose of all this is so that we can start demos with the same code while keep your own copy of the work.
Coding the beginnings of a website
Really useful VS Code Shortcuts
Mark up your wireframe with the HTML elements you’ll use
This week’s assignment