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

PPTX
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
DOCX
Java Script
ODP
Introduction of Html/css/js
PDF
Tech Winter Break GDG on Campus MM(DU) - Web dev Session
PPT
ppt.ppt
PPTX
WEB DEVELOPMENT
PPTX
Html-meeting1-1.pptx
PDF
Presentation on htmlcssjs-130221085257-phpapp02.pdf
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
Java Script
Introduction of Html/css/js
Tech Winter Break GDG on Campus MM(DU) - Web dev Session
ppt.ppt
WEB DEVELOPMENT
Html-meeting1-1.pptx
Presentation on htmlcssjs-130221085257-phpapp02.pdf

Similar to HTML_CSS_JS Workshop (20)

PPTX
Html, css and jquery introduction
DOCX
What is Web designing.docx? What are its components
PPT
Web Designing
PPTX
Internet and Web Technology (CLASS-4) [CSS & JS]
PDF
Class 1: Introductions
PDF
Introduction to HTML and CSS
PPTX
FFW Gabrovo PMG - HTML
PPTX
Markup language classification, designing static and dynamic
PDF
Html tutorials-infotech aus
PPT
Unit 2 dhtml
PPT
HTML & CSS.ppt
PPT
SDP_-_Module_4.ppt
PPTX
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
PDF
Intro to mobile web application development
PPTX
(Fast) Introduction to HTML & CSS
KEY
HTML/CSS Lecture 1
PPTX
Web development using HTML and CSS
PDF
A Complete Guide to Frontend - UI Developer
PPTX
Fundamentals of Web building
PDF
GDI Seattle Intermediate HTML and CSS Class 1
Html, css and jquery introduction
What is Web designing.docx? What are its components
Web Designing
Internet and Web Technology (CLASS-4) [CSS & JS]
Class 1: Introductions
Introduction to HTML and CSS
FFW Gabrovo PMG - HTML
Markup language classification, designing static and dynamic
Html tutorials-infotech aus
Unit 2 dhtml
HTML & CSS.ppt
SDP_-_Module_4.ppt
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Intro to mobile web application development
(Fast) Introduction to HTML & CSS
HTML/CSS Lecture 1
Web development using HTML and CSS
A Complete Guide to Frontend - UI Developer
Fundamentals of Web building
GDI Seattle Intermediate HTML and CSS Class 1
Ad

More from GDSC UofT Mississauga (20)

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

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Approach and Philosophy of On baking technology
PDF
KodekX | Application Modernization Development
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Advanced IT Governance
PDF
Empathic Computing: Creating Shared Understanding
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Electronic commerce courselecture one. Pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
“AI and Expert System Decision Support & Business Intelligence Systems”
Network Security Unit 5.pdf for BCA BBA.
Approach and Philosophy of On baking technology
KodekX | Application Modernization Development
The Rise and Fall of 3GPP – Time for a Sabbatical?
Advanced IT Governance
Empathic Computing: Creating Shared Understanding
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm
Review of recent advances in non-invasive hemoglobin estimation
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
NewMind AI Monthly Chronicles - July 2025
Electronic commerce courselecture one. Pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
NewMind AI Weekly Chronicles - August'25 Week I
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

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.