5. HTML Continued
CSCI 344: Advanced Web Technologies
Spring 2025
1
Announcements
2
Recap from Wednesday
Ideally, we should have all completed these tasks:
Any questions about any of these things?
3
Outline
4
Please download today’s lecture files
5
Outline
6
Some questions about the web...
Web Servers
Web browsers
Browser
Browser
Browser
Web Server
Web Browsers (Contd.)
10
Bots
When building web applications, you also have to think about how easy it is for a machine to consume your web content.
11
Screen Reader considerations
12
Web Crawler Considerations (SEO)
“Search Engine Optimization” (SEO) refers to the tools and techniques you use to ensure that you are found by search engines (ideally at the top of search results). To optimize your page for bots (like search engines), make sure you:
13
Outline
14
Semantic Tags and Search Engines / Screen Readers
15
What are some examples of semantic tags?
16
A Semantic Web Vision
Tim Berners-Lee originally expressed his vision of the Semantic Web as follows:
“I have a dream for the Web [in which computers] become capable of analyzing all the data on the Web – the content, links, and transactions between people and computers. A "Semantic Web", which makes this possible, has yet to emerge, but when it does, the day-to-day mechanisms of trade, bureaucracy and our daily lives will be handled by machines talking to machines. The intelligent agents people have touted for ages will finally materialize.
17
Outline
18
Linking to Resources
Many tags use the concept of linking, including:
19
Linking to Resources
Absolute links
Relative links
20
Today
Scenario:
Answer:
my_website
├── files
│ └── gallery.html
├── home
│ ├── contact.html
│ ├── index.html
│ └── styles
│ ├── dark
│ │ └── new.css
│ └── my_style.css
├── images
│ ├── cat.jpg
│ └── dog.jpg
└── test.html
21
Scenario:
Answer:
my_website
├── files
│ └── gallery.html
├── home
│ ├── contact.html
│ ├── index.html
│ └── styles
│ ├── dark
│ │ └── new.css
│ └── my_style.css
├── images
│ ├── cat.jpg
│ └── dog.jpg
└── test.html
22
Scenario:
Answer:
my_website
├── files
│ └── gallery.html
├── home
│ ├── contact.html
│ ├── index.html
│ └── styles
│ ├── dark
│ │ └── new.css
│ └── my_style.css
├── images
│ ├── cat.jpg
│ └── dog.jpg
└── test.html
23
Scenario:
Answer:
my_website
├── files
│ └── gallery.html
├── home
│ ├── contact.html
│ ├── index.html
│ └── styles
│ ├── dark
│ │ └── new.css
│ └── my_style.css
├── images
│ ├── cat.jpg
│ └── dog.jpg
└── test.html
24
Scenario:
Answer:
???
my_website
├── files
│ └── gallery.html
├── home
│ ├── contact.html
│ ├── index.html
│ └── styles
│ ├── dark
│ │ └── new.css
│ └── my_style.css
├── images
│ ├── cat.jpg
│ └── dog.jpg
└── test.html
25
Outline
26
Outline
27
Git v. GitHub
28
Simple Git Workflow: Solo Project
29
Simple Git Workflow: Solo Project Commands
30
clone | Copies a remote repository (e.g., one hosted on a GitHub server) onto your local machine (within your current directory). |
status | Tells you which of the files in your current directory are different from the latest commit in the repo. |
add | Stages the specified files to be committed |
log | Shows you the commit history |
commit | Saves a snapshot of your staged files at the moment the commit is issued. Each commit represents the state of your code at a particular moment in time. |
push | Uploads your commits to a remote repo |
pull | Downloads changes from a remote repo to your local repo |
A few tips…
31
1. Don’t forget to add a commit message
If you issue the commit command without a commit message, VS code will hang. You’ll have to restart VS Code and try again with a commit message.
32
2. Don’t check in API keys, passwords, or dependencies
Use the .gitignore file to exclude files you don’t want under version control.
Files you typically want to exclude from version control:
33
Activity 6: Configure git / GitHub
What you don’t finish today you can finish next Monday
34