Professional Documents
Culture Documents
02-Intro To Websites
02-Intro To Websites
02-Intro To Websites
Class Prep has been extended until the EOD today Thu 1/25.
Be sure to complete the Dev Env Setup Guide before lab on Fri.
Topics > Introduction to Websites
Why do we go to websites?
How to create a website
Languages used to build webpages
How web projects are organized
How the browser accesses a web server
Participation Activity
Q: Why do we goto websites?
Take a moment and think about the last website your visited.
Answer the following questions:
1. Why did you visit the site? What was your goal for visiting the
site?
2. Were you able to accomplish your goal?
3. If you were able to accomplish your goal, what about the site
made that possible? If not, what prevented you?
A: Why do we goto websites?
Was your success (or lack of) with your goal related to...?
1. The website being built with React?
2. The website being designed with Figma?
3. The website contained the content you were looking for?
It all starts with Content
"Content is King"
- Bill Gates, 1996
Web Page > Core Components
Content + Design + Code
Content is the
purpose for web pages
Code
Design organizes
Design content
Content
HTML → Content
CSS → Styling and Layout
JavaScript → Interaction
HTML > Structures Content
Adds Content and Structure to a Webpage
→ Content
Text | Images | Video | Audio
→ Structure
Navigation | Header | Paragraph | Footer
HTML > Tags
A markup language is all about Tags
→ Style
fonts | colors
→ Layout
positioning | layout
CSS > Rules
JS → JavaScript
→ Interactivity
Every time a web page does more than just sit
there and display static information for you to
look at — displaying timely content updates,
interactive maps, animated 2D/3D graphics,
scrolling or expanding content, pop up
windows — JavaScript is probably involved.
JS > Scripting Programming Language
JavaScripts allows you to dynamically access HTML elements and CSS rules
and add or change content and how its displayed.
Static Website > Collection of Pages
HTML page references JS + CSS + Media When the server returns the HTML Page
1. Browser requests the HTML page;
CSS Server returns the HTML page
2. Bowser loads HTML and begins to
HTML JS process the HTML code
3. Browser then requests CSS; server
returns file with CSS
Media
4. Browser then requests JS; server
returns file with the JS
5. Browser then requests Media; server
returns the file that is the image
6. Bowser then renders the page
combining > HTML + CSS + JS + Media
How the Browser renders a Webpage
index.html
…
<head>
<head>
<body>
</body>
Anatomy of a Webpage