SlideShare a Scribd company logo
Frontend Basics
An intro to HTML/CSS & JS!
By Brian Zhang
HTML
An intro to HTML
CSS
An intro to CSS
JavaScript
An intro to JavaScript
Today’s Agenda
Coding
Demonstration
Coding a basic webpage
HTML
What’s HTML?
Elements, attributes, and more!
Learn more here: www.w3schools.com/html
What is HTML?
HTML (HyperText Markup Language) is a
standard markup language used to create
documents that will be displayed on a browser.
An HTML document is composed of a series of
elements.
Every HTML document uses a DOM model.
It’s the most fundamental language for web
development!
HTML Basics
All HTML documents begin with a <!DOCTYPE
html> declaration, followed by <html>, <head>,
and <body> elements.
An HTML element is defined by a start tag,
content, and an end tag.
( e.g. <tagname> Content… </tagname>).
Basic HTML elements include headings (<h1>,
<h2>, etc.), paragraphs (<p>) and lists (<ul>, <li>).
Some HTML elements have attributes, such as
links (<a href=”#”>), images (<img src="cat.jpg">),
and forms (<input type="text">).
Best Practices
Ideally, an HTML document should be
accessible.
Examples include:
1. Adding alt text to images (e.g. <img
src="cat.jpg" alt=”image of a cat”>)
2. Adding metadata (e.g. <meta
charset="UTF-8"> in <head>)
3. Using semantic elements (e.g. <header>,
<main>, <footer> etc.)
CSS
What’s CSS?
Selectors, declarations, and more!
Learn more here: www.w3schools.com/css
What is CSS?
CSS (Cascading Style Sheets) is a style sheet
language meant to describe how elements
within an HTML document are displayed.
An CSS file contains selectors with
declarations that defines an HTML element’s
display.
CSS lessens the workload, and one CSS file is
applicable to multiple HTML files.
CSS is often always stored as external
stylesheets (i.e. .css files).
CSS Basics
A CSS rule consists of a selector and
declaration.
(e.g. h1 {font-size: 2em; })
A selector can be either an id (e.g.
#main-container) or a class (e.g. .container)
There are many CSS properties, which control
properties such as element size (e.g width,
height, max-height, etc), display & positioning
(e.g. display, float, position, etc) and colours &
backgrounds (e.g. color, background-color,
background-image, etc.).
When working with borders, padding, and
margin, CSS follows a box model.
The Box Model
JavaScript
What’s JavaScript?
Arrow functions, variables, and more!
Learn more here: www.w3schools.com/js
What is Javascript?
JavaScript is a programming language that is used
to define a web page’s behaviour.
JavaScript can change HTML content.
(e.g. document.getElementById("demo").innerHTML
= "Hello JavaScript";).
JavaScript is:
● Meant to program the behaviour of web apps
● Designed to be easy to learn
● One of the world’s most popular programming
languages
In this workshop, we’ll only learn just enough for
the live demonstration.
Variables
Variables are containers for storing data.
A variable is declared with:
- const if you would like the data to be
immutable.
- var if you would like the data to be mutable
and function-scoped
- Nowadays, you don’t usually use var!
- let if you would like the data to be mutable
and block-scoped
Data Types
Data types define the type of a variable.
JavaScript is not strongly-typed language, meaning the same
variable can hold different values.
Functions
A function—like in other programming languages—is a piece of code that
is executed when something calls it.
Arrow functions provide closure to the environment around it. It allows us
to shorten function syntax, writing “const hello = () => {}” rather than “const
hello = function() {}”!
Now Let’s
Code!
Additional Resources
● www.w3schools.com/js
● www.w3schools.com/css
● www.w3schools.com/html
Thanks for Coming!
This presentation template was created by Slidesgo, including
icons by Flaticon, infographics & images by Freepik.

More Related Content

Similar to HTML_CSS_JS Workshop (20)

PPTX
Web Development.pptx sadfd fwd w dwdwdw
cxcxcsad
 
PDF
Presentation on htmlcssjs-130221085257-phpapp02.pdf
MeetRajani2
 
PDF
Intro to HTML and CSS basics
Eliran Eliassy
 
PDF
WEB DEVELOPMENT20CS41.pdf
DeepakMeena597272
 
PDF
Web.pdf
AkankshaPathak42
 
PDF
Web Dev - 1 PPT.pdf
gdsczhcet
 
PDF
Introduction to HTML and CSS
Mario Hernandez
 
PPTX
Teched Inetrgation ppt and lering in simple
JagadishBabuParri
 
PPT
WebDev Simplified Day 1 ppt.ppt
SarikaPurohit1
 
PDF
HTML CSS JS in Nut shell
Ashwin Shiv
 
PPTX
Webdev bootcamp
DSCMESCOE
 
PPT
ppt.ppt
Sana903754
 
PDF
slidesgo-mastering-html-and-css-a-comprehensive-guide-to-tags-and-elements-20...
MrunmayiLohakare
 
PPTX
Web development it slideWeb development it slidemy web development slide-...
AliyuUmarIsa
 
PPTX
Introduction to Web Development.pptx
GDSCVJTI
 
PPTX
Introduction to Web Development.pptx
Alisha Kamat
 
PPTX
Introduction to Web Development.pptx
Alisha Kamat
 
PPTX
Html, css and jquery introduction
cncwebworld
 
PPTX
Tech Winter Break'24 Workshop A hands-o
ghatbandhechinmayi
 
Web Development.pptx sadfd fwd w dwdwdw
cxcxcsad
 
Presentation on htmlcssjs-130221085257-phpapp02.pdf
MeetRajani2
 
Intro to HTML and CSS basics
Eliran Eliassy
 
WEB DEVELOPMENT20CS41.pdf
DeepakMeena597272
 
Web Dev - 1 PPT.pdf
gdsczhcet
 
Introduction to HTML and CSS
Mario Hernandez
 
Teched Inetrgation ppt and lering in simple
JagadishBabuParri
 
WebDev Simplified Day 1 ppt.ppt
SarikaPurohit1
 
HTML CSS JS in Nut shell
Ashwin Shiv
 
Webdev bootcamp
DSCMESCOE
 
ppt.ppt
Sana903754
 
slidesgo-mastering-html-and-css-a-comprehensive-guide-to-tags-and-elements-20...
MrunmayiLohakare
 
Web development it slideWeb development it slidemy web development slide-...
AliyuUmarIsa
 
Introduction to Web Development.pptx
GDSCVJTI
 
Introduction to Web Development.pptx
Alisha Kamat
 
Introduction to Web Development.pptx
Alisha Kamat
 
Html, css and jquery introduction
cncwebworld
 
Tech Winter Break'24 Workshop A hands-o
ghatbandhechinmayi
 

More from GDSC UofT Mississauga (20)

PDF
CSSC ML Workshop
GDSC UofT Mississauga
 
PPTX
ICCIT Council × GDSC: UX / UI and Figma
GDSC UofT Mississauga
 
PDF
Community Projects Info Session Fall 2023
GDSC UofT Mississauga
 
PDF
GDSC x Deerhacks - Origami Workshop
GDSC UofT Mississauga
 
PDF
Reverse Engineering 101
GDSC UofT Mississauga
 
PDF
Michael's OWASP Juice Shop Workshop
GDSC UofT Mississauga
 
PDF
MCSS × GDSC: Intro to Cybersecurity Workshop
GDSC UofT Mississauga
 
PDF
Basics of C
GDSC UofT Mississauga
 
PDF
Discord Bot Workshop Slides
GDSC UofT Mississauga
 
PDF
Web Scraping Workshop
GDSC UofT Mississauga
 
PDF
Devops Workshop
GDSC UofT Mississauga
 
PDF
DevOps Workshop Part 1
GDSC UofT Mississauga
 
PDF
Docker workshop GDSC_CSSC
GDSC UofT Mississauga
 
PDF
Back-end (Flask_AWS)
GDSC UofT Mississauga
 
PDF
Full Stack React Workshop [CSSC x GDSC]
GDSC UofT Mississauga
 
PDF
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
PPTX
Database Workshop Slides
GDSC UofT Mississauga
 
PPTX
ChatGPT General Meeting
GDSC UofT Mississauga
 
PPTX
Elon & Twitter General Meeting
GDSC UofT Mississauga
 
CSSC ML Workshop
GDSC UofT Mississauga
 
ICCIT Council × GDSC: UX / UI and Figma
GDSC UofT Mississauga
 
Community Projects Info Session Fall 2023
GDSC UofT Mississauga
 
GDSC x Deerhacks - Origami Workshop
GDSC UofT Mississauga
 
Reverse Engineering 101
GDSC UofT Mississauga
 
Michael's OWASP Juice Shop Workshop
GDSC UofT Mississauga
 
MCSS × GDSC: Intro to Cybersecurity Workshop
GDSC UofT Mississauga
 
Discord Bot Workshop Slides
GDSC UofT Mississauga
 
Web Scraping Workshop
GDSC UofT Mississauga
 
Devops Workshop
GDSC UofT Mississauga
 
DevOps Workshop Part 1
GDSC UofT Mississauga
 
Docker workshop GDSC_CSSC
GDSC UofT Mississauga
 
Back-end (Flask_AWS)
GDSC UofT Mississauga
 
Full Stack React Workshop [CSSC x GDSC]
GDSC UofT Mississauga
 
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
Database Workshop Slides
GDSC UofT Mississauga
 
ChatGPT General Meeting
GDSC UofT Mississauga
 
Elon & Twitter General Meeting
GDSC UofT Mississauga
 
Ad

Recently uploaded (20)

PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Digital Circuits, important subject in CS
contactparinay1
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Ad

HTML_CSS_JS Workshop

  • 1. Frontend Basics An intro to HTML/CSS & JS! By Brian Zhang
  • 2. HTML An intro to HTML CSS An intro to CSS JavaScript An intro to JavaScript Today’s Agenda Coding Demonstration Coding a basic webpage
  • 3. HTML What’s HTML? Elements, attributes, and more! Learn more here: www.w3schools.com/html
  • 4. What is HTML? HTML (HyperText Markup Language) is a standard markup language used to create documents that will be displayed on a browser. An HTML document is composed of a series of elements. Every HTML document uses a DOM model. It’s the most fundamental language for web development!
  • 5. HTML Basics All HTML documents begin with a <!DOCTYPE html> declaration, followed by <html>, <head>, and <body> elements. An HTML element is defined by a start tag, content, and an end tag. ( e.g. <tagname> Content… </tagname>). Basic HTML elements include headings (<h1>, <h2>, etc.), paragraphs (<p>) and lists (<ul>, <li>). Some HTML elements have attributes, such as links (<a href=”#”>), images (<img src="cat.jpg">), and forms (<input type="text">).
  • 6. Best Practices Ideally, an HTML document should be accessible. Examples include: 1. Adding alt text to images (e.g. <img src="cat.jpg" alt=”image of a cat”>) 2. Adding metadata (e.g. <meta charset="UTF-8"> in <head>) 3. Using semantic elements (e.g. <header>, <main>, <footer> etc.)
  • 7. CSS What’s CSS? Selectors, declarations, and more! Learn more here: www.w3schools.com/css
  • 8. What is CSS? CSS (Cascading Style Sheets) is a style sheet language meant to describe how elements within an HTML document are displayed. An CSS file contains selectors with declarations that defines an HTML element’s display. CSS lessens the workload, and one CSS file is applicable to multiple HTML files. CSS is often always stored as external stylesheets (i.e. .css files).
  • 9. CSS Basics A CSS rule consists of a selector and declaration. (e.g. h1 {font-size: 2em; }) A selector can be either an id (e.g. #main-container) or a class (e.g. .container) There are many CSS properties, which control properties such as element size (e.g width, height, max-height, etc), display & positioning (e.g. display, float, position, etc) and colours & backgrounds (e.g. color, background-color, background-image, etc.). When working with borders, padding, and margin, CSS follows a box model.
  • 11. JavaScript What’s JavaScript? Arrow functions, variables, and more! Learn more here: www.w3schools.com/js
  • 12. What is Javascript? JavaScript is a programming language that is used to define a web page’s behaviour. JavaScript can change HTML content. (e.g. document.getElementById("demo").innerHTML = "Hello JavaScript";). JavaScript is: ● Meant to program the behaviour of web apps ● Designed to be easy to learn ● One of the world’s most popular programming languages In this workshop, we’ll only learn just enough for the live demonstration.
  • 13. Variables Variables are containers for storing data. A variable is declared with: - const if you would like the data to be immutable. - var if you would like the data to be mutable and function-scoped - Nowadays, you don’t usually use var! - let if you would like the data to be mutable and block-scoped
  • 14. Data Types Data types define the type of a variable. JavaScript is not strongly-typed language, meaning the same variable can hold different values.
  • 15. Functions A function—like in other programming languages—is a piece of code that is executed when something calls it. Arrow functions provide closure to the environment around it. It allows us to shorten function syntax, writing “const hello = () => {}” rather than “const hello = function() {}”!
  • 17. Additional Resources ● www.w3schools.com/js ● www.w3schools.com/css ● www.w3schools.com/html Thanks for Coming! This presentation template was created by Slidesgo, including icons by Flaticon, infographics & images by Freepik.