1 of 17

STORMHACKS 2025�*Slides Reused From LANGARA HACKS 2024

HTML/CSS/JS

WORKSHOP

Brian Rahadi

brianrahadi.com

2 of 17

PREREQUISITES

  • Laptop with internet connection (use SFU Wi-Fi)
  • Visual Studio Code
  • GitHub Account

Don’t hesitate to ask volunteers for help in case you have troubles in any of these steps!

3 of 17

TODAY’S AGENDA

  • Introduction to HTML/CSS/JavaScript
  • Building website with HTML/CSS/JavaScript
  • Basic git commands
  • Deploying website with GitHub Pages

4 of 17

DISCLAIMER

This introduction to HTML, CSS, and JavaScript is very short.

  • No expectation to be proficient right away
  • Key idea is to help you get familiar with the idea of ‘learning by doing’. Short lectures + Heavy hands-on examples.
  • Always reach out if you have any questions:
    • To me (Brian) for questions about the lecture. Always learning and will try my best to answer.
    • To volunteers for installing/ debugging problems

5 of 17

WHY DO WE NEED TO LEARN HTML, CSS, AND JAVASCRIPT?

Many projects already use fancy frameworks that implements thing better and faster

6 of 17

WHY DO WE NEED TO LEARN HTML, CSS, AND JAVASCRIPT?

  • Almost all fancy frameworks are just (HTML, CSS, and JavaScript)++
  • Understand the basics first, everything else becomes easier to digest later (Transferrable)

7 of 17

INTRODUCTION TO HTML, CSS, AND JAVASCRIPT

HTML - What is the content? (Structural)

CSS - How the content should look like? (Presentational)

JavaScript - How to make the content interactive? (Behavioural)

8 of 17

INTRODUCTION TO HTML, CSS, AND JAVASCRIPT

9 of 17

INTRODUCTION TO HTML

(HYPERTEXT MARKUP LANGUAGE)

  • Standard markup language to display content and structure of website
  • HTML document is made of HTML elements (structure) containing texts/ images (contents)
  • HTML files end with .html or .htm

10 of 17

HTML ELEMENTS

  • HTML Elements are made of:
    • Element name within angle brackets (opening and closing)
    • Attributes inside the opening angle brackets (name=”value”) pairs
    • Content between the opening and closing angle brackets

INTRODUCTION TO HTML

11 of 17

HTML ELEMENTS

  • HTML Elements are made of element name (required), attributes (optional), and content (optional)

INTRODUCTION TO HTML

12 of 17

INTRODUCTION TO CSS

(CASCADING STYLE SHEETS)

  • Standard Style sheet language to describe presentation of markup document (HTML)
  • CSS document consists of style rules
  • CSS files end with .css

https://en.wikipedia.org/wiki/CSS

13 of 17

CSS Style rule consists of:

  • Selector to identify the HTML element(s)
  • Declaration in property:value pairs to describe the presentation

https://en.wikipedia.org/wiki/CSS

CSS STYLE RULES

INTRODUCTION TO CSS

14 of 17

  • Style rule consists of selector and declaration (property:value)

CSS STYLE RULES

INTRODUCTION TO CSS

15 of 17

INTRODUCTION TO JAVASCRIPT

  • Programming language for the World Wide Web
  • Will only be used minimally for this workshop to make some parts more interactive

16 of 17

INTRODUCTION TO HTML, CSS, AND JAVASCRIPT

  • This workshop is very short. Only gives a very short tour of what HTML, CSS, and JavaScript are
  • You can take CMPT 272 if you want to strengthen your HTML, CSS, and JavaScript fundamentals. (CMPT 276 with Bobby Chan but less focused).
  • Alternatively, heavily recommend FreeCodeCamp (https://www.freecodecamp.org/) to focus on HTML, CSS, and JavaScript. It’s an interactive playground, hands-on, and have certificates if this motivates you

17 of 17

RESOURCES