INFO 1300: Publishing a Static Website
Class 27: Publishing a Static Website
- Search Engine Optimization (SEO)
- Favicons
- Publishing a Website
- Domain Names
Copyright 2026, Kyle J. Harms
Review: Hotlink vs. Self-Host Resources
Hotlink
The website loads the resource from a server that's not controlled by you.
Examples:
- jQuery from a CDN
- Google Fonts
- Embed a YouTube video
Self-Host
The resource is located locally on your web server. (i.e. you control it.)
Examples:
scripts/jquery-4.0.0.min.jsmedia/video.mp4
Review: Why Self-Host?
✅ Benefits
- Privacy – no third party sees your users' data.
- Reliability – no outage or shutdown at another company can break your site.
- Control – the file never changes unless you change it.
- Security – a hacked third-party server can't inject code into your site.
:heavy_exclamation_mark: Risks
- Bandwidth & Storage – you pay to serve the files.
- Maintenance – you have to manage updates (e.g., security fixes) yourself.
- Setup – you may need to download or convert files yourself.
Publishing a Static Website
Publishing a Static Website
- ✅ A website
- ✖️ Search engine optimization (SEO)
- ✖️ Favicon (favorite icon)
- ✖️ Web server/host
- ✖️ Domain name
Search Engine Optimization (SEO)
The process for making your site better for search engines.
Goal: Improve your website's page rank (1st page!)
Page rank is a measure of a website's relevance to a search query.
Gotcha: Search is changing with AI search!
Optimize for the user's experience,
not the search engine.
Websites are for people, not algorithms.
Tips: User Experience Optimization
-
Use high quality content, content that your users want.
If users visit your site, and leave quickly (bounce), your page rank will go down.
-
Organize the content for your site's audience.
Design your site's information architecture (navigation + content organization) specifically for your audience.
-
Make your website accessible.
Tips: User Experience Optimization
-
Use responsive design – your website should work on all devices.
The Googlebot indexes your "mobile" site first.
-
Support many web browsers – your website should work in different browsers.
Not everyone uses Chrome or Safari! Does it also work in Firefox?
-
Host your website on a secure server using HTTPS
https://www.my-website.com/
Tips: User Experience Optimization
-
Your website should be fast on most internet connections.
Reduce your website's bandwidth where possible.
Scale image files!
-
Your code (HTML, CSS, and JavaScript) should be well-structured.
- HTML structures the content.
- HTML and CSS validate.
- JavaScript has no errors.
Lighthouse - SEO Audit
Lighthouse is an open-source, automated tool for improving the quality of web pages available in Chrome/Chromium.

Demo: SEO Audit

Meta Description

<head>
<title>
Search Engine Optimization (SEO)
Starter Guide - Google Developers
</title>
<meta name="description"
content="Search engine optimization
(SEO) is often about making small
modifications to parts of your
website. When viewed individually,
these changes might seem like
incremental improvements, but
when...">
</head>
AI Search
Many searches are now answered by AI.
- AI-generated summaries at the top of search results (e.g., Google's AI Overviews)
- AI assistants that search the web for you (e.g., ChatGPT, Claude)
The AI reads websites, summarizes them, and cites its sources.
Gotcha: Users may get their answer without ever visiting your website.
Tips: Optimizing for AI Search
AI search tools mostly "read" your website's HTML, not what it looks like.
- Write original, high quality content that's worth citing.
- Properly structure your content with HTML.
- Content should be accessible via text. (e.g. use alt text)
- Important content should exist in the HTML, not dynamically added with JavaScript.
- Write a descriptive
<title>and meta description for every page.
Sound familiar? It's the same advice as SEO and accessibility!
Opting Out of AI Search
You can't fully opt out. But you can ask AI search crawlers not to read your website by adding a robots.txt file at the root of your domain:
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Disallow: /
Gotcha: This is a request. Some crawlers ignore it.
Trade-off: If AI search can't read your website, it can't cite your website either.
Opting Out of AI Training
AI companies train their AI models on websites. You can ask them not to train on your website by adding a robots.txt file at the root of your domain:
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /
Gotcha: This is a request. Some crawlers ignore it.
Publishing a Static Website
- ✅ A website
- ✅ Search engine optimization (SEO)
- ✖️ Favicon (favorite icon)
- ✖️ Web server/host
- ✖️ Domain name
Favicon – Favorite Icon
Favicons are typically displayed in places like the browser's address bar, tabs, and the bookmarks/favorites menu.
![]()
Favicon
-
Any ICO, PNG, GIF, JPEG, or SVG image file.
-
For raster images, must be a multiple of 48px square. (Does not apply to SVG.)
Examples: 48x48px, 96x96px, 144x144px
-
Link to the image file in the
<head>of your HTML files.<head><link rel="icon" href="images/favicon.png">
Demo: Favicon
-
Add a favicon.svg to your website.
-
Link to the favicon in the
<head>.<head><link rel="icon"href="images/favicon.svg">
![]()
Publishing a Static Website
- ✅ A website
- ✅ Search engine optimization (SEO)
- ✅ Favicon (favorite icon)
- ✖️ Web server/host
- ✖️ Domain name
Web Server / Host
How the Web Works

Development Web Server

Development Web Server $\neq$ Worldwide Access
Your development web server is only available to you.
You need a web server that has worldwide access!

Web Server
A web server has two parts:
-
Software (think: app)
Delivers web content via HTTP.
Examples: nginx, Apache, Cloudflare Server, LiteSpeed
-
Hardware (think: computer)
Web Server ➜ Web Hosting Service Provider
Purchase hosting from a web hosting service provider.
A web hosting service is a type of Internet hosting service that hosts websites for clients. (Source: Wikipedia)
How to Find a Web Hosting Service Provider
Search: "web host"
Demo: GitHub Pages as a Web Host

Activity: Publish on GitHub Pages
Publish your project website on GitHub Pages.

Activity: Lighthouse Audit
Conduct a Lighthouse audit on your project website in Chrome.
- Mode: Navigation
- Device: Mobile
- Categories:
- Accessibility
- Best practices
- SEO

Publishing a Static Website
- ✅ A website
- ✅ Search engine optimization (SEO)
- ✅ Favicon (favorite icon)
- ✅ Web server/host
- ✖️ Domain name
Domain Name
A Web Server's "Address" – IP Address
IP Address
Every computer connected to the internet has a number that identifies that computer.

Activity: Usable Computer Addresses
Vote with your thumbs: :thumbsup: :thumbsdown:
Both are valid addresses for Cornell's web server(s)!
A Web Server's "Address" $=$ Domain Name
Domain Name
Readable/usable computer address
Example: cornell.edu
Domain Name Server (DNS) – "translates" domain names into IP addresses to fulfill HTTP requests.
Example: cornell.edu ➜ 128.253.173.245
Purchasing a Domain Name – Domain Registrar
Purchase (lease) a domain name from a domain name registrar.
A domain name registrar is a company that manages the reservation of Internet domain names. (Source: Wikipedia)
How to Find a Domain Name Registrar
Search: "domain registrar"
Designing a Usable Domain Name
- Short (12 characters or less)
- Guessable
- Easy to spell
- Easy to type
- Easy to say and pronounce
- Memorable
- Meaningful to customers
- Meaningful to website partners
- Meaningful in the intended language
- Run together without punctuation, if compound words (e.g., FuelEconomy.gov)
Source: Usability.gov (retired; now https://digital.gov/topics/usability/)
Activity: Project Domain Names
On your handout, design a usable domain name for your project website.
Check if your domain names are available: https://lookup.icann.org/en
Publishing a Static Website
- ✅ A website
- ✅ Search engine optimization (SEO)
- ✅ Favicon (favorite icon)
- ✅ Web server/host
- ✅ Domain name
But... How?
Publishing a Website to a Web Server
- Rent/purchase web hosting.
- Register/lease a domain name.
- Configure domain name with web host.
- Transfer website files to the web server.
- Profit! 🙌
Transferring Files to a Web Server
Refer to the web host's reference documentation.
SFTP
Use an SSH File Transfer Protocol client to transfer the files from your computer to the web host.

Git
Many web hosts provide Git repositories for publishing.
Clone the Git repository from the web host, and then push the files to the repository.
Pushing $=$ Publishing!
What's Next
Today (12/2): project, oral defense due
Friday (12/4): oral defense presentations during sections
Monday (12/7): final exam Q & A (class)
