HTML & CSS
BASICS
BY: ANDRES GONZALEZ
Software Engineer Jr for BAQ/CALI/ECU and Bomberbot
Background
-Front End developer at Immigo (Final project - Holberton foundations)
-Holberton CH13
-Former UX Researcher at Torre
-Former Filmmaker and voiceover actor
Twitter: @andresgfranco
Linkedin: https://www.linkedin.com/in/andresgfranco/
Today's Guide
HTML
Brief context.
Web CSS
browser/client. Ways of using
Syntax. CSS.
DOM. Selectors.
Tags. Cascade,
Attributes. specificity, and
Semantic. inheritance.
Web's anatomy. Box model.
Dimensions.
What's next.
HTML
Tim
Berners-Lee
URL
SUGGESTION:
HTTP W3C - WORLD
WIDE WEB
CONSORTIUM
MOSAIC
IBM
Web NETSCAPE
INTERNET
browsers EXPLORER
SAFARI
GOOGLE
CHROME(V8)
FIREFOX
Standards
HTML5 CSS JAVASCRIPT
Static pages vs dynamic pages
You are here
HTML
HYPERTEXT MARKUP LANGUAGE
THE MOST BASIC WEB COMPONENT. IT
DEFINES THE MEANING AND CONTENT
STRUCTURE
Syntax-analogy
LET'S SEE SOME CODE:
-VS CODE
-HTML5 TEMPLATE GENERATOR
-LIVE SERVER
DOM
STRUCTURE AND SEMANTIC TO
WEBSITE CONTENT
Hierarchy
EACH ONE HAS DIFFERENT
TAGS
USES AND CHARACTERISTICS
Even their final look could be similar
MOST OF THEM SHOULD BE
CLOSED
Open tags, closing tags, and self-closing
tags.
ATTRIBUTES
Extra characteristics. Some of them are
shared others are exclusive.
TAG
ANATOMY
Semantic web
HYPERTEXT MARKUP LANGUAGE
Webpage
anatomy
CSS
CASCADING STYLE SHEETS
IS THE STYLES LANGUAGE USED TO DESCRIBE
THE HTML DOCUMENTS PRESENTATION
DIRECTLY
BY
ATTRIBUTE
3 ways of
adding BY
CREATING
CSS to
A STYLE
TAG
our HTML BY
IMPORTING
AN
EXTERNAL
CSS FILE
Skipped on purpose: last property
semicolon optional
but it is suggested to use it.
Selectors
GLOBAL
Selectors
CLASS
TAG
Selectors
ID ATTRIBUTE
Selectors
GROUP
Selectors
DESCENDANT
Selectors
DESCENDANT
Selectors
DIRECT
DESCENDANT
GENERAL SIBLING (~)
ADJACENT SIBLING (+)
PSEUDOCLASS (:)
PSEUDOELEMENT (::)
Some others
Cascade,
specificity, and
inheritance
TRIVIA TIME!
What color will be .title?
What would be the output color?
What would be the output color?
What would be the output color?
What would be the output color?
What would be the output color?
What would be the output color?
What would be the output color?
Inheritance
TRIVIA TIME!
What would be the output color?
What would be the output color?
Box model
Dimensions
Colors
FLEXBOX, AND GRID
What's next? CSSOM, RENDER
TREE, LAYOUT
RESPONSIVE DESIGN,
MOBILE FIRST, SASS,
SCSS
JAVASCRIPT,
WEBPACK, BABEL,
ECMASCRIPT,
FRAMEWORKS, ETC.
Thanks!