Week 4
HTML / CSS / JavaScript
The web
HTML
Codepen.io
Bryan Ollendyke
[at]btopro
Developer Activist
EdTechJoker Spring 2020 - Lecture 4 - HTML
Today’s Topic / What you'll learn about
- basics of HTML, CSS, JavaScript
- Where all this came from
- How to use the Inspector to modify web
pages
- Security implications of JavaScript and
past exploits that brought down github
- Writing some basics and modifying
existing HTML
- Forking and modifying a basic resume on
codepen.io
HTML
CSS
JS
Terms / definitions for today
- HTML – Hyper Text Markup Language
- CSS – Cascading Style Sheets
- JS – JavaScript
- DOM – Document Object Model
- IDE - Integrated development environment
- W3C – World Wide Web Consortium
- WHATWG - Web Hypertext Application
Technology Working Group
- DOS – Denial of Service
- DDOS – Distributed Denial of Service
- HTTP - hypertext transfer protocol
HTML
CSS
JS
Who’s using these
- HTML / CSS, every webpage on the internet
- JS... Damn near everyone unless disabled
on purpose
HTML
CSS
JS
blockmetry.com – web analytics for “ethical marketers”
Are there differences between browsers?
- Sadly, yes.
- Used to be dramatic differences in CSS
and JavaScript processing capabilities
- W3C founded to establish and help people
implement standards in a uniform way
- Web Hypertext Application Technology
Working Group (2004) founded by browser
vendors to push HTML further than the
W3C was able to do at that time (HTML5)
- 2019 – these orgs have committed to
merging efforts!
HTML
CSS
JS
pcninja.com – just an amazing google search here
statcounter.com – great browser usage reporting engine
html5rocks.com – Webkit (Safari, 2011)
html5rocks.com – Mozilla Gecko (2011)
The hierarchy of the document
Document Object Model (DOM)
What is HTML
- HTML Defines the structure and order
of the web page (DOM)
HTML
CSS
JS
What CSS does
- CSS styles the structure by applying
attributes directly to “selectors”
HTML
CSS
JS
EdTechJoker Spring 2020 - Lecture 4 - HTML
EdTechJoker Spring 2020 - Lecture 4 - HTML
Responsive design / @media queries
https://developers.google.com/web/fundamentals/design-and-ux/responsive/
CSS Design frameworks
- Bootstrap – open sourced by twitter
- https://getbootstrap.com/
- describes their visual language for
presenting interfaces
- Many (too many) have adopted it as a
replacement for design variability
- Canvas is built on this for example
- Clean defaults + basic javascript
elements
HTML
CSS
JS
EdTechJoker Spring 2020 - Lecture 4 - HTML
CSS Abstraction
- SASS - Sass is the most mature, stable,
and powerful professional grade CSS
extension language in the world.
- https://sass-lang.com/
- personal note: I’m not a huge fan of
languages that MUST be preprocessed
in order to work. I’d recommend learning
css long before SASS
however, there are many who make a living
just doing this so it’s legit.
HTML
CSS
JS
The “Script” part in JavaScript is
- What immediately complicates the web
- Leads to heavy abstractions and people
leveraging libraries in order to write
less code but do more
- jQuery != JavaScript
(though extremely popular)
- $ is a dead give away of jQuery
- Popular with those getting started
- https://jquery-tutorial.net/introduction/hello-world/
HTML
CSS
JS
What JavaScript screws up makes possible
- JavaScript allows for applying scripting
and interactivity to the HTML structure
to dynamically modify the DOM / HTML
HTML
CSS
JS
”Vanilla” JavaScript
vs
jQuery
JavaScript CDNs are popular
- Javascript loaded via a “CDN”
content delivery network
Security
Time
JavaScript CDNs are popular
- Javascript loaded via a “CDN”
content delivery network
Security
Time
JavaScript CDNs are popular an attack vector
- JavaScript loaded via a “CDN”
content delivery network
- Web pages are as secure as the JavaScript
loaded into them.
- XSS – Cross Site Script Attacks are
legit things to worry about and often
not terribly complicated to execute
Security
Time
EdTechJoker Spring 2020 - Lecture 4 - HTML
EdTechJoker Spring 2020 - Lecture 4 - HTML
CDNs are amazing though, don’t mistake
- CDNs must be from trusted source
- All modern businesses leverage CDNs
- CDNs serve content faster then traditional
server methods
- Faster content === more business
- We’ll talk more about CDNs in the future
- https://www.youtube.com/watch?time_continue=8&v=QCEid2WCszM
Security
Time
Let’s Hack Penn State
Ok well.. Not really.
The hierarchy of the document
Document Object Model (DOM)
The hierarchy of the document
Document Object Model (DOM)
The hierarchy of the document
Document Object Model (DOM)
The hierarchy of the document
Document Object Model (DOM)
Useful links / learning more
- https://www.quackit.com/html/tutorial/
- Google HTML or CSS cheat sheet
- Learn HTML in 12 Minutes
https://www.youtube.com/watch?v=bWPMSSsVdPk
- search https://codepen.io/ for tutorial
- https://caniuse.com – Spec search
- Mozilla JavaScript basics
https://developer.mozilla.org/en-
US/docs/Learn/Getting_started_with_the_web/JavaScript_basics
HTML
CSS
JS
Prep - Week 5 Topic:
Content Management
Systems via Reclaim
Hosting
Looking ahead
Bryan Ollendyke
[at]btopro
reclaimhosting.com
reclaimhosting.com
What we’ll do now
- Mess with Inspector to modify psu.edu
- Play with and explore CodePen.io
- Fork a pen of mine that we’ll step
through together
- Ask questions, this is just a foot
in the door to this topic and we’ll
be exploring other technologies and
related platforms as the semester
progresses
HTML
CSS
JS
Lab
- Start modifying a pen to reverse engineer
a resume boilerplate
- Fork Reflection Pen
- write your reflection post there
- add a link to your video response there
Reflection topic (pick at least one)
- Explaining styling an element in CSS
- Explain how to use JavaScript and
getElementById to add a click event to
an element in an existing codepen
- Value of CodePen as a platform
CodePen.io
Quick break and then..
CodePen
Editing and understanding
code pen
HTML
CodePen.io
Bryan Ollendyke
[at]btopro

More Related Content

PPTX
HTML / CSS / JS Web basics
PDF
[jqconatx] Adaptive Images for Responsive Web Design
PDF
Introduction to WordPress Security
PPTX
A beginner's guide to twitter bootstrap
PDF
WordPress Theme Performance - WP Vienna meetup 8.6.2016
PDF
PrairieDevCon 2014 - Web Doesn't Mean Slow
PDF
JS in Rural Communities
PDF
Introduction to Web Development Career
HTML / CSS / JS Web basics
[jqconatx] Adaptive Images for Responsive Web Design
Introduction to WordPress Security
A beginner's guide to twitter bootstrap
WordPress Theme Performance - WP Vienna meetup 8.6.2016
PrairieDevCon 2014 - Web Doesn't Mean Slow
JS in Rural Communities
Introduction to Web Development Career

What's hot (20)

PDF
Disruptive code
KEY
Speed is Essential for a Great Web Experience
PPS
Introduction to Bootstrap: Design for Developers
PDF
Front-End Frameworks: a quick overview
PPT
The Need For Speed
ODP
When dynamic becomes static - the next step in web caching techniques
PDF
CSS Grid Changes Everything - Keynote at WebCamp Zagreb 2017
PDF
Introduction to Optimizing WordPress for Website Speed
PPTX
Making Web Fun
PDF
Building the next generation of themes with WP Rig 2.0
PDF
How to Build Custom WordPress Blocks
PDF
The Big Picture: Responsive Images in Action #devcon13
PDF
Fecrash10:3:17 sd
PDF
Making Mobile Sites Faster
KEY
Sniffing the Mobile Context
PPTX
Bootstrap ppt
PPTX
How to Build a Bespoke Page Builder in WordPress
PDF
Speed Index, explained!
PDF
CSS vs. JavaScript - Trust vs. Control
PPTX
Christmas Trees Made with HTML CSS and JS
Disruptive code
Speed is Essential for a Great Web Experience
Introduction to Bootstrap: Design for Developers
Front-End Frameworks: a quick overview
The Need For Speed
When dynamic becomes static - the next step in web caching techniques
CSS Grid Changes Everything - Keynote at WebCamp Zagreb 2017
Introduction to Optimizing WordPress for Website Speed
Making Web Fun
Building the next generation of themes with WP Rig 2.0
How to Build Custom WordPress Blocks
The Big Picture: Responsive Images in Action #devcon13
Fecrash10:3:17 sd
Making Mobile Sites Faster
Sniffing the Mobile Context
Bootstrap ppt
How to Build a Bespoke Page Builder in WordPress
Speed Index, explained!
CSS vs. JavaScript - Trust vs. Control
Christmas Trees Made with HTML CSS and JS
Ad

Similar to EdTechJoker Spring 2020 - Lecture 4 - HTML (20)

PPTX
Html5 & less css
PDF
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
PDF
DrupalCampLA 2011 - Drupal frontend-optimizing
PPT
Testable client side_mvc_apps_in_javascript
PDF
Frontend Performance: Illusions & browser rendering
PPT
State of modern web technologies: an introduction
PPTX
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
PPT
Using a CSS Framework
PPT
Scaling 101
PPT
Scaling 101 test
PPT
Please dont touch-3.6-jsday
PDF
Death of a Themer
PPTX
Building high performing web pages
PDF
A practical guide to building websites with HTML5 & CSS3
PPT
6 css week12 2020 2021 for g10
PPT
Mobile Monday Presentation: Responsive Web Design
PPT
performance.ppt
PDF
Building Performance - ein Frontend-Build-Prozess für Java mit Maven
PPTX
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
PPTX
Responsivedesign 7-3-2012
Html5 & less css
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
DrupalCampLA 2011 - Drupal frontend-optimizing
Testable client side_mvc_apps_in_javascript
Frontend Performance: Illusions & browser rendering
State of modern web technologies: an introduction
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
Using a CSS Framework
Scaling 101
Scaling 101 test
Please dont touch-3.6-jsday
Death of a Themer
Building high performing web pages
A practical guide to building websites with HTML5 & CSS3
6 css week12 2020 2021 for g10
Mobile Monday Presentation: Responsive Web Design
performance.ppt
Building Performance - ein Frontend-Build-Prozess für Java mit Maven
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
Responsivedesign 7-3-2012
Ad

More from Bryan Ollendyke (20)

PPTX
Lecture 14 - OER final project
PDF
Lecture 12 - Docker
PDF
Lecture 11 - Web components
PPTX
EdTechJoker Spring 2020 - Lecture 10 HAXTheWeb
PPTX
EdTechJoker Spring 2020 - Lecture 8 Drupal again
PPTX
EdTechJoker Spring 2020 - Lecture 7 Drupal intro
PPTX
EdTechJoker Spring 2020 - Lecture 6 - WordPress
PPTX
EdTechJoker Spring 2020 - Lecture 5 grav cms
PPTX
EdTechJoker Spring 2020 - Lecture 2 - Git
PPTX
EdTechJoker Spring 2020 - Lecture 1 - Welcome
PPTX
Apereo 2018 - NGDLE, OER, Cost reduction, accessibility and decentralization
PPTX
Apereo 2018 - Webcomponents and building a unified authoring experience for a...
PPTX
Apereo 2018 - HAX lightning talk
PPTX
Apereo 2018 - NGDLE efforts
PPTX
Apereo 2018 - Polymer training
PPTX
Building and Envisioning a Next Generation Digital Learning Environment
PPTX
History of the web as a platform from 1996 to 2017
PPTX
NGDLE (2016 version)
PPTX
Rethinking system design
PPTX
Drupal Govcon 2017 Polymer workshop slides
Lecture 14 - OER final project
Lecture 12 - Docker
Lecture 11 - Web components
EdTechJoker Spring 2020 - Lecture 10 HAXTheWeb
EdTechJoker Spring 2020 - Lecture 8 Drupal again
EdTechJoker Spring 2020 - Lecture 7 Drupal intro
EdTechJoker Spring 2020 - Lecture 6 - WordPress
EdTechJoker Spring 2020 - Lecture 5 grav cms
EdTechJoker Spring 2020 - Lecture 2 - Git
EdTechJoker Spring 2020 - Lecture 1 - Welcome
Apereo 2018 - NGDLE, OER, Cost reduction, accessibility and decentralization
Apereo 2018 - Webcomponents and building a unified authoring experience for a...
Apereo 2018 - HAX lightning talk
Apereo 2018 - NGDLE efforts
Apereo 2018 - Polymer training
Building and Envisioning a Next Generation Digital Learning Environment
History of the web as a platform from 1996 to 2017
NGDLE (2016 version)
Rethinking system design
Drupal Govcon 2017 Polymer workshop slides

Recently uploaded (20)

PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
International_Financial_Reporting_Standa.pdf
PPTX
What’s under the hood: Parsing standardized learning content for AI
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
semiconductor packaging in vlsi design fab
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
English Textual Question & Ans (12th Class).pdf
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
My India Quiz Book_20210205121199924.pdf
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
Module on health assessment of CHN. pptx
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
International_Financial_Reporting_Standa.pdf
What’s under the hood: Parsing standardized learning content for AI
AI-driven educational solutions for real-life interventions in the Philippine...
semiconductor packaging in vlsi design fab
Paper A Mock Exam 9_ Attempt review.pdf.
B.Sc. DS Unit 2 Software Engineering.pptx
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Virtual and Augmented Reality in Current Scenario
English Textual Question & Ans (12th Class).pdf
Cambridge-Practice-Tests-for-IELTS-12.docx
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
Empowerment Technology for Senior High School Guide
My India Quiz Book_20210205121199924.pdf
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Introduction to pro and eukaryotes and differences.pptx
Hazard Identification & Risk Assessment .pdf
Module on health assessment of CHN. pptx
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf

EdTechJoker Spring 2020 - Lecture 4 - HTML

  • 1. Week 4 HTML / CSS / JavaScript The web HTML Codepen.io Bryan Ollendyke [at]btopro Developer Activist
  • 3. Today’s Topic / What you'll learn about - basics of HTML, CSS, JavaScript - Where all this came from - How to use the Inspector to modify web pages - Security implications of JavaScript and past exploits that brought down github - Writing some basics and modifying existing HTML - Forking and modifying a basic resume on codepen.io HTML CSS JS
  • 4. Terms / definitions for today - HTML – Hyper Text Markup Language - CSS – Cascading Style Sheets - JS – JavaScript - DOM – Document Object Model - IDE - Integrated development environment - W3C – World Wide Web Consortium - WHATWG - Web Hypertext Application Technology Working Group - DOS – Denial of Service - DDOS – Distributed Denial of Service - HTTP - hypertext transfer protocol HTML CSS JS
  • 5. Who’s using these - HTML / CSS, every webpage on the internet - JS... Damn near everyone unless disabled on purpose HTML CSS JS
  • 6. blockmetry.com – web analytics for “ethical marketers”
  • 7. Are there differences between browsers? - Sadly, yes. - Used to be dramatic differences in CSS and JavaScript processing capabilities - W3C founded to establish and help people implement standards in a uniform way - Web Hypertext Application Technology Working Group (2004) founded by browser vendors to push HTML further than the W3C was able to do at that time (HTML5) - 2019 – these orgs have committed to merging efforts! HTML CSS JS
  • 8. pcninja.com – just an amazing google search here
  • 9. statcounter.com – great browser usage reporting engine
  • 10. html5rocks.com – Webkit (Safari, 2011)
  • 12. The hierarchy of the document Document Object Model (DOM)
  • 13. What is HTML - HTML Defines the structure and order of the web page (DOM) HTML CSS JS
  • 14. What CSS does - CSS styles the structure by applying attributes directly to “selectors” HTML CSS JS
  • 17. Responsive design / @media queries https://developers.google.com/web/fundamentals/design-and-ux/responsive/
  • 18. CSS Design frameworks - Bootstrap – open sourced by twitter - https://getbootstrap.com/ - describes their visual language for presenting interfaces - Many (too many) have adopted it as a replacement for design variability - Canvas is built on this for example - Clean defaults + basic javascript elements HTML CSS JS
  • 20. CSS Abstraction - SASS - Sass is the most mature, stable, and powerful professional grade CSS extension language in the world. - https://sass-lang.com/ - personal note: I’m not a huge fan of languages that MUST be preprocessed in order to work. I’d recommend learning css long before SASS however, there are many who make a living just doing this so it’s legit. HTML CSS JS
  • 21. The “Script” part in JavaScript is - What immediately complicates the web - Leads to heavy abstractions and people leveraging libraries in order to write less code but do more - jQuery != JavaScript (though extremely popular) - $ is a dead give away of jQuery - Popular with those getting started - https://jquery-tutorial.net/introduction/hello-world/ HTML CSS JS
  • 22. What JavaScript screws up makes possible - JavaScript allows for applying scripting and interactivity to the HTML structure to dynamically modify the DOM / HTML HTML CSS JS
  • 24. JavaScript CDNs are popular - Javascript loaded via a “CDN” content delivery network Security Time
  • 25. JavaScript CDNs are popular - Javascript loaded via a “CDN” content delivery network Security Time
  • 26. JavaScript CDNs are popular an attack vector - JavaScript loaded via a “CDN” content delivery network - Web pages are as secure as the JavaScript loaded into them. - XSS – Cross Site Script Attacks are legit things to worry about and often not terribly complicated to execute Security Time
  • 29. CDNs are amazing though, don’t mistake - CDNs must be from trusted source - All modern businesses leverage CDNs - CDNs serve content faster then traditional server methods - Faster content === more business - We’ll talk more about CDNs in the future - https://www.youtube.com/watch?time_continue=8&v=QCEid2WCszM Security Time
  • 30. Let’s Hack Penn State Ok well.. Not really.
  • 31. The hierarchy of the document Document Object Model (DOM)
  • 32. The hierarchy of the document Document Object Model (DOM)
  • 33. The hierarchy of the document Document Object Model (DOM)
  • 34. The hierarchy of the document Document Object Model (DOM)
  • 35. Useful links / learning more - https://www.quackit.com/html/tutorial/ - Google HTML or CSS cheat sheet - Learn HTML in 12 Minutes https://www.youtube.com/watch?v=bWPMSSsVdPk - search https://codepen.io/ for tutorial - https://caniuse.com – Spec search - Mozilla JavaScript basics https://developer.mozilla.org/en- US/docs/Learn/Getting_started_with_the_web/JavaScript_basics HTML CSS JS
  • 36. Prep - Week 5 Topic: Content Management Systems via Reclaim Hosting Looking ahead Bryan Ollendyke [at]btopro
  • 39. What we’ll do now - Mess with Inspector to modify psu.edu - Play with and explore CodePen.io - Fork a pen of mine that we’ll step through together - Ask questions, this is just a foot in the door to this topic and we’ll be exploring other technologies and related platforms as the semester progresses HTML CSS JS
  • 40. Lab - Start modifying a pen to reverse engineer a resume boilerplate - Fork Reflection Pen - write your reflection post there - add a link to your video response there Reflection topic (pick at least one) - Explaining styling an element in CSS - Explain how to use JavaScript and getElementById to add a click event to an element in an existing codepen - Value of CodePen as a platform CodePen.io
  • 41. Quick break and then.. CodePen Editing and understanding code pen HTML CodePen.io Bryan Ollendyke [at]btopro

Editor's Notes

  • #3: Icon created by Creative Stall from the Noun Project
  • #7: Icon created by Creative Stall from the Noun Project
  • #9: Icon created by Creative Stall from the Noun Project
  • #10: Icon created by Creative Stall from the Noun Project
  • #11: Icon created by Creative Stall from the Noun Project
  • #12: Icon created by Creative Stall from the Noun Project
  • #13: Icon created by Creative Stall from the Noun Project
  • #31: Icon created by Creative Stall from the Noun Project
  • #32: Icon created by Creative Stall from the Noun Project
  • #33: Icon created by Creative Stall from the Noun Project
  • #35: Icon created by Creative Stall from the Noun Project