HTML and CSS are the core technologies for building any website. In this presentation I focus on the core features of each and also introduce Sass as the next way of writing more efficient CSS.
7. HTML5
HyperText Markup Language
Progressive Enhancements and GracefulDegradation
It’s official!
Block LevelElements vs. Inline LevelElements
Forms and Form Elements
Audio &Video
Picture
ExtendingSemantics &Accessibility
Performance and Optimization
25. Agenda
Syntax and code format
AddingCSS to apage
Floats
Positions
z-index
Box Model
Web fonts
MediaQueries
Flexbox
Transitions
Preprocessors -Introduction to Sass
35. Fixed Positioning
An elementwith fixed position is positioned relative to the
browser window. Itwillnotmove even if the window is scrolled:
h1{
position:fixed;
top:30px;
right:5px;
}
38. Absolute Positioning
An absolute position elementis positioned relative to the first
parentelementthathas aposition other than static. If no such
elementis found, the containingblock is <html>:
h2{
position:absolute;
left:100px;
top:150px;
}
39. Absolute Positioning
Absolutelypositioned elements are removed from the normal
flow. The documentand other elements behave like the
absolutelypositioned elementdoes notexist. Absolutely
positioned elements can overlap other elements.
40. Overlapping Elements
When elements are positioned outside the normalflow, theycan
overlap other elements.
The z-index propertyspecifies the stack order of an element
(which elementshould be placed in frontof, or behind, the
others).
An elementcan have apositive or negative stack order:
42. Box Model
The CSS box modelis essentiallyabox thatwraps around HTML
elements, and itconsists of: margins, borders, padding, and the
actualcontent.
Demo
&
Code Example
46. What is Sass?
Sass is an extension of CSS thatadds power and elegance to the
basic language. Itallows you to use variables, nested rules,
mixins, inline imports, and more, allwith afullyCSS-compatible
syntax.