SlideShare uma empresa Scribd logo
1 de 68
Baixar para ler offline
An intro to
HTML, CSS,
& SASS
Sean Wolfe
sean@zivtech.com
• Creative Director at
Zivtech in Philadelphia
• Designing and
theming Drupal sites
since 2008
• UPenn, Carilion Clinic,
Temple University
• A Text editor
• A local webserver (http://www.mamp.info/en)
• Github account (https://github.com)
• SASS (http://sass-lang.com/install)
• Compass (http://compass-style.org/install)
• Bundler (http://bundler.io)
• Livereload (http://livereload.com/)*
!
*optional but highly recommended
Tools
• HTML stands for Hyper Text Markup Language
• HTML is a markup language
• HTML documents contain HTML tags and plain text
• HTML documents are also called web pages
What is HTML?
• HTML tags are keywords (tag names) surrounded by
angle brackets like <html>
• HTML tags normally come in pairs like <p> and </p>
• The first tag in a pair is the start tag, the second tag
is the end tag
• The end tag is written like the start tag, with a slash
before the tag name
• Start and end tags are also called opening tags and
closing tags
HTML Tags
• HTML5 is the latest standard for HTML.
• <canvas> is an element for 2D drawing
• <video> and <audio> are elements for media
playback
• HTML5 uses new content-specific elements, like
<article>, <footer>, <header>, <nav>, <section
HTML5
• The DOCTYPE declaration defines the document type
• The text between <html> and </html> describes the web page
• The <head> element is a container for all the head elements.
• The text between <body> and </body> is the visible page content
• The text between <h1> and </h1> is displayed as a heading
• The text between <p> and </p> is displayed as a paragraph
Basic HTML
• The <title> tag defines the title of the document.
• The <link> tag defines the relationship between a document and an
external resource.
• The <style> tag is used to define style information for an HTML
document.
• The <meta> tag provides metadata about the HTML document.
• The <script> tag is used to define a client-side script, such as a
JavaScript.
HTML Head
• The DOCTYPE declaration defines the document type
• The text between <html> and </html> describes the web page
• The text between <body> and </body> is the visible page content
• The text between <h1> and </h1> is displayed as a heading
• The text between <p> and </p> is displayed as a paragraph
Basic HTML
HTML Headings
• HTML headings are defined with the <h1> to <h6> tags.
HTML Headings
• HTML headings are defined with the <h1> to <h6> tags.
HTML Paragraphs
• HTML paragraphs are defined with the <p> tag.
HTML Paragraphs
• HTML paragraphs are defined with the <p> tag.
HTML Links
• HTML links are defined with the <a> tag.
HTML Links
• HTML links are defined with the <a> tag.
HTML Images
• HTML images are defined with the <img> tag.
HTML Images
• HTML images are defined with the <img> tag.
HTML Lists
• In HTML, there are several types of lists:
• unordered lists - the list items are marked with
bullets
• ordered lists - the list items are marked with
numbers or letters
• description list - a list of terms/names, with a
description of each term/name.
HTML Lists
• CSS stands for Cascading Style Sheets
• Styles define how to display HTML elements
• CSS can solve many design problems without
adding images or changing the HTML
What is CSS?
CSS Syntax
html
Selector
ValueValue PropertyProperty
{margin:0; padding:0}
Declaration Declaration
CSS Selectors
• CSS selectors allow you to select and manipulate
HTML element(s).
• CSS selectors are used to "find" (or select) HTML
elements based on their id, classes, types,
attributes, and more.
Types of CSS Selectors
• The element Selector selects elements based on the
element name. (e.g. body, header, p, footer)
• The id Selector selects a specific element on the page and
can only be used once (e.g. #main, #content, #footer)
• The class Selector selects elements with the specific class
names and cans be reused
(e.g. .wrapper, .column, .panel, .panel-pane)
ID’s
classes
elements
Ways to use CSS
• CSS can be attached to HTML in 3 ways
• Inline (wysiwyg for example)
• Embedded (placed in document <head>)
• Links to CSS files (the preferred method)
Ways to use CSS
<p style=“color:red;”>Some Text</p>
Inline Styles
Ways to use CSS
<head>!
<style>p {color:red;}</style>!
</head>
Embedded Styles
Ways to use CSS
<head>!
<link rel="stylesheet"

type="text/css" href=“style.css">!
</head>
External Style Sheet reference
p {color:red;}
style.css
CSS Margin
• Margin is the space around elements (outside the
border).
• The margin does not have a background color,
and is completely transparent.
• The top, right, bottom, and left margin can be
changed independently using separate properties.
25px
50px
75px
100px
CSS Margin
{margin:25px 50px 75px 100px;}
CSS Padding
• Padding is the space between the element
border and the element content
• The top, right, bottom, and left padding can be
changed independently using separate
properties.
{padding:25px 50px 75px 100px;}
CSS Padding
25px
50px
75px
100px
{margin:25px 50px 75px 100px;}
CSS Padding & Margin
{padding:25px 50px 75px 100px;}
CSS Text
• color sets the color of text
• letter-spacing adjusts the space between characters
• line-height sets the distance between lines of text
• text-decoration specifies the decoration
• text-indent specifies the indentation of the first line
• text-shadow specifies the shadow effect
• text-transform controls the capitalization of text
• word-spacing changes the space between words
CSS Fonts
• CSS font properties define the font family, boldness, size,
and the style of a text.
• Not all computers have the same fonts installed
• font-family Specifies the font family for text
• font-size Specifies the font size of text
• font-style Specifies the font style for text (e.g. normal or
italic)
• font-variant Specifies if text should be small-caps
• font-weight Specifies the weight of a font
• font Sets all the font properties in one declaration
CSS Fonts
Serif Times New Roman, Georgia
Sans-serif Arial, Verdana
Monospace Courier New, Lucida Console
Web Fonts
Web Fonts
Web Fonts
CSS Pseudo-classes
• CSS pseudo-classes are used to select the current condition of
an element.
• The most common pseudo-classes are links
• Links can be styled differently depending on what state they
are in.
• a:link Selects an unvisited link
• a:visited Selects visited links
• a:active Selects the active link
• a:hover Selects links on mouse over
• p::first-letter Selects the first letter of a paragraph
• p::first-line Selects the first line of a paragraph
CSS Background
• CSS background properties are used to define the background
effects of an element.
• background-color sets the background color of an element
• background-image sets the background image for an element
• background-repeat sets how a background image will be
repeated
• background-attachment sets whether a background image is
xed or scrolls with the rest of the page
• background-position sets the starting position of a background
image
• background sets all the background properties in one declaration
CSS Positioning
• The CSS positioning properties allow you to position an
element.
• Elements can be positioned using the top, bottom, left, and
right properties.
• position:static is the default position of an element
• position:fixed tells an element to be positioned relative to the
browser window. It will not move even if the window is scrolled
• position:relative tells an element to be positioned relative to
its normal position.
• position:absolute tells an element where to be positioned
relative to its parent element.
{position:relative;}
{position:absolute;}
{position:static;}
{position:static;}
{position:fixed;}
{position:static;}
CSS Float
• With CSS float, an element can be pushed to the
left or right, allowing other elements to wrap
around it.
• clear Specifies which sides of an element where
other floating elements are not allowed.
• float Specifies whether or not a box should float
to the left or right.
img {float:none;}
• Vivamus dignissim nunc eleifend, commodo mi sed,
aliquam ante. Donec id lacus eu lectus sollicitudin viverra.
Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia
vel urna ac, dictum lobortis justo.“Donec et molestie
• purus”. Cras et faucibus est, a viverra odio. Praesent luctus vel
purus non mollis. In luctus vitae lectus quis fringilla. Curabitur
porttitor justo ac dolor iaculis convallis.
• Vivamus dignissim nunc eleifend, commodo mi sed,
aliquam ante. Donec id lacus eu lectus sollicitudin viverra.
Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia
vel urna ac, dictum lobortis justo.“Donec et molestie
• purus”. Cras et faucibus est, a viverra odio. Praesent luctus vel
purus non mollis. In luctus vitae lectus quis fringilla. Curabitur
porttitor justo ac dolor iaculis convallis.
img {float:left;}
img {float:right;}
• Vivamus dignissim nunc eleifend, commodo mi sed,
aliquam ante. Donec id lacus eu lectus sollicitudin viverra.
Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia
vel urna ac, dictum lobortis justo.“Donec et molestie
CSS Float
CSS Display and Visibility
• The display property specifies if/how an element is displayed,
and the visibility property species if an element should be
visible or hidden.
• visibility:hidden hides an element, but it will still take up
the same space as before.
• display:none hides an element, and it will not take up any
space.
• display:inline tells an element to only take up as much
width as necessary, and will not force line breaks.
• display:block tells an element will takes up the full width
available, and will have a line break before and after it
CSS Image Opacity / Transparency
• The CSS3 property for transparency is opacity.
• The opacity property can take a value from 0.0 -
1.0. A lower value makes the element more
transparent.
{opacity:0.1;} {opacity:0.5;} {opacity:1.0;}
CSS Image Sprites
• An image sprite is a collection of images put into
a single image.
• A web page with many images can take a long
time to load and generates multiple server
requests.
CSS Media Types
• By using the @media rule, a website can have a
different layout for screen, print, mobile phone,
tablet, etc.
• all Used for all media type devices
• braille Used for braille tactile feedback devices
• print Used for printers
• screen Used for computer screens
• tv Used for television-type devices
CSS3
• CSS3 is the latest standard for CSS and is completely
backwards-compatible with earlier versions of CSS.
• Selectors!
• Box Model!
• Borders!
• Text Effects!
• 2D/3D Transformations!
• Animations!
• Multiple Column Layout
CSS Preprocessors
• SASS stands for Syntactically Awesome Style Sheets
• Sass is a CSS preprocessor
• Sass can be written in either the sass or scss syntax
• Sass files compile into css files
What is SASS?
• CSS doesn’t allow variables
• SASS uses mixins (reusable blocks of styles)
• SASS is faster, more efficient, and easier to maintain
• Using COMPASS with SASS allows us to write many lines
of cross-browser compatible CSS in a single line of code!
Why do we use SASS?
Install Sass
$ gem install sass
nav {!
ul {!
margin: 0;!
}!
li {!
display: block;!
}!
a {!
padding: 6px 12px;!
color: $yellow;!
}!
}
SCSS
nav!
ul!
margin: 0!
li display: block!
a!
padding: 6px 12px!
color: $yellow
SASS
nav {!
ul {!
margin: 0;!
}!
li {!
display: block;!
}!
a {!
padding: 6px 12px;!
color: $yellow;!
}!
}
SCSS
nav!
ul!
margin: 0!
li display: block!
a!
padding: 6px 12px!
color: $yellow
SASS
SASS Mixins
@mixin my-background($radius) {!
margin-top: 12px;!
height: 10px;!
background: red;!
border-radius: $radius;!
}
Dene the mixin
.box {@include my-background(12px);}
Include the mixin
SASS Extend
%my-background {!
margin-top: 12px;!
height: 10px;!
background: red;!
border: 1px solid $yellow;!
}
Dene the placeholder selector
.box {@extend %my-background;}
Extend the placeholder selector
Mixin or Extend
.box,.footer {@include my-background(12px);}
Arguments
.box,.footer {@extend %my-background;}
Smaller CSS
Resources
• www.w3schools.com/css
• css-tricks.com
• alistapart.com
• thesassway.com
Questions &
Answers
sean@zivtech.com
Assignment
github.com/sean3325/bullfrog
Assignment
1. Fork it.
2. Create a branch (`git checkout -b
toms_branch`)
3. Commit your changes (`git commit -m "Fixed
Navigation Styles"`)
4. Push to the branch (`git push origin
toms_branch`)

Mais conteĂşdo relacionado

Mais procurados

HTML & CSS Masterclass
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS MasterclassBernardo Raposo
 
Introduction to flexbox
Introduction  to  flexboxIntroduction  to  flexbox
Introduction to flexboxJyoti Gautam
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpcasestudyhelp
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout Rachel Andrew
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksAmit Tyagi
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSSSyed Sami
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.pptvaseemshaik21
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to JavascriptSeble Nigussie
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS Dave Kelly
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3Seble Nigussie
 
HTML CSS JS in Nut shell
HTML  CSS JS in Nut shellHTML  CSS JS in Nut shell
HTML CSS JS in Nut shellAshwin Shiv
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLAjay Khatri
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Chris Poteet
 

Mais procurados (20)

HTML & CSS Masterclass
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS Masterclass
 
Introduction to flexbox
Introduction  to  flexboxIntroduction  to  flexbox
Introduction to flexbox
 
Css ppt
Css pptCss ppt
Css ppt
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
CSS
CSSCSS
CSS
 
HTML CSS JS in Nut shell
HTML  CSS JS in Nut shellHTML  CSS JS in Nut shell
HTML CSS JS in Nut shell
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 

Destaque

Learning HTML
Learning HTMLLearning HTML
Learning HTMLDesarae Veit
 
Html basics
Html basicsHtml basics
Html basicsmcatahir947
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formattingeShikshak
 
Intro to css & sass
Intro to css & sassIntro to css & sass
Intro to css & sassSean Wolfe
 
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da prĂłxima web?
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da prĂłxima web?Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da prĂłxima web?
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da prĂłxima web?Renato Bongiorno Bonfanti
 
Html text formatting
Html text formattingHtml text formatting
Html text formattingderekoei
 

Destaque (8)

Html Unit B
Html   Unit BHtml   Unit B
Html Unit B
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Html basics
Html basicsHtml basics
Html basics
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
 
Intro to css & sass
Intro to css & sassIntro to css & sass
Intro to css & sass
 
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da prĂłxima web?
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da prĂłxima web?Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da prĂłxima web?
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da prĂłxima web?
 
Html text formatting
Html text formattingHtml text formatting
Html text formatting
 

Semelhante a Intro to html, css & sass

BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptxMattMarino13
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptxMattMarino13
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxkarthiksmart21
 
Journey To The Front End World - Part2 - The Cosmetic
Journey To The Front End World - Part2 - The  CosmeticJourney To The Front End World - Part2 - The  Cosmetic
Journey To The Front End World - Part2 - The CosmeticIrfan Maulana
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1jeweltutin
 
Html and css
Html and cssHtml and css
Html and cssSukrit Gupta
 
BITM3730Week4.pptx
BITM3730Week4.pptxBITM3730Week4.pptx
BITM3730Week4.pptxMattMarino13
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheetssmithaps4
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheetssmitha273566
 
MTA css flow, positioning, and styling
MTA css flow, positioning, and stylingMTA css flow, positioning, and styling
MTA css flow, positioning, and stylingDhairya Joshi
 
Unit 3 (it workshop).pptx
Unit 3 (it workshop).pptxUnit 3 (it workshop).pptx
Unit 3 (it workshop).pptxDr.Lokesh Gagnani
 

Semelhante a Intro to html, css & sass (20)

BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptx
 
Css
CssCss
Css
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
 
Css
CssCss
Css
 
Html
HtmlHtml
Html
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptx
 
Journey To The Front End World - Part2 - The Cosmetic
Journey To The Front End World - Part2 - The  CosmeticJourney To The Front End World - Part2 - The  Cosmetic
Journey To The Front End World - Part2 - The Cosmetic
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
 
Html and css
Html and cssHtml and css
Html and css
 
BITM3730Week4.pptx
BITM3730Week4.pptxBITM3730Week4.pptx
BITM3730Week4.pptx
 
Css
CssCss
Css
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
CSS Introduction
CSS Introduction CSS Introduction
CSS Introduction
 
CSS.pptx
CSS.pptxCSS.pptx
CSS.pptx
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
Css
CssCss
Css
 
MTA css flow, positioning, and styling
MTA css flow, positioning, and stylingMTA css flow, positioning, and styling
MTA css flow, positioning, and styling
 
Unit 3 (it workshop).pptx
Unit 3 (it workshop).pptxUnit 3 (it workshop).pptx
Unit 3 (it workshop).pptx
 
ppt.ppt
ppt.pptppt.ppt
ppt.ppt
 

Último

Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Onlineanilsa9823
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.CarlotaBedoya1
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Delhi Call girls
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...tanu pandey
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663Call Girls Mumbai
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...Neha Pandey
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...SofiyaSharma5
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445ruhi
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Standkumarajju5765
 

Último (20)

Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 

Intro to html, css & sass

  • 1. An intro to HTML, CSS, & SASS
  • 2. Sean Wolfe sean@zivtech.com • Creative Director at Zivtech in Philadelphia • Designing and theming Drupal sites since 2008 • UPenn, Carilion Clinic, Temple University
  • 3. • A Text editor • A local webserver (http://www.mamp.info/en) • Github account (https://github.com) • SASS (http://sass-lang.com/install) • Compass (http://compass-style.org/install) • Bundler (http://bundler.io) • Livereload (http://livereload.com/)* ! *optional but highly recommended Tools
  • 4. • HTML stands for Hyper Text Markup Language • HTML is a markup language • HTML documents contain HTML tags and plain text • HTML documents are also called web pages What is HTML?
  • 5. • HTML tags are keywords (tag names) surrounded by angle brackets like <html> • HTML tags normally come in pairs like <p> and </p> • The rst tag in a pair is the start tag, the second tag is the end tag • The end tag is written like the start tag, with a slash before the tag name • Start and end tags are also called opening tags and closing tags HTML Tags
  • 6. • HTML5 is the latest standard for HTML. • <canvas> is an element for 2D drawing • <video> and <audio> are elements for media playback • HTML5 uses new content-specic elements, like <article>, <footer>, <header>, <nav>, <section HTML5
  • 7.
  • 8.
  • 9.
  • 10. • The DOCTYPE declaration denes the document type • The text between <html> and </html> describes the web page • The <head> element is a container for all the head elements. • The text between <body> and </body> is the visible page content • The text between <h1> and </h1> is displayed as a heading • The text between <p> and </p> is displayed as a paragraph Basic HTML
  • 11. • The <title> tag denes the title of the document. • The <link> tag denes the relationship between a document and an external resource. • The <style> tag is used to dene style information for an HTML document. • The <meta> tag provides metadata about the HTML document. • The <script> tag is used to dene a client-side script, such as a JavaScript. HTML Head
  • 12. • The DOCTYPE declaration denes the document type • The text between <html> and </html> describes the web page • The text between <body> and </body> is the visible page content • The text between <h1> and </h1> is displayed as a heading • The text between <p> and </p> is displayed as a paragraph Basic HTML
  • 13. HTML Headings • HTML headings are dened with the <h1> to <h6> tags.
  • 14. HTML Headings • HTML headings are dened with the <h1> to <h6> tags.
  • 15. HTML Paragraphs • HTML paragraphs are dened with the <p> tag.
  • 16. HTML Paragraphs • HTML paragraphs are dened with the <p> tag.
  • 17. HTML Links • HTML links are dened with the <a> tag.
  • 18. HTML Links • HTML links are dened with the <a> tag.
  • 19. HTML Images • HTML images are dened with the <img> tag.
  • 20. HTML Images • HTML images are dened with the <img> tag.
  • 21. HTML Lists • In HTML, there are several types of lists: • unordered lists - the list items are marked with bullets • ordered lists - the list items are marked with numbers or letters • description list - a list of terms/names, with a description of each term/name.
  • 23. • CSS stands for Cascading Style Sheets • Styles dene how to display HTML elements • CSS can solve many design problems without adding images or changing the HTML What is CSS?
  • 24.
  • 26. CSS Selectors • CSS selectors allow you to select and manipulate HTML element(s). • CSS selectors are used to "nd" (or select) HTML elements based on their id, classes, types, attributes, and more.
  • 27. Types of CSS Selectors • The element Selector selects elements based on the element name. (e.g. body, header, p, footer) • The id Selector selects a specic element on the page and can only be used once (e.g. #main, #content, #footer) • The class Selector selects elements with the specic class names and cans be reused (e.g. .wrapper, .column, .panel, .panel-pane)
  • 29. Ways to use CSS • CSS can be attached to HTML in 3 ways • Inline (wysiwyg for example) • Embedded (placed in document <head>) • Links to CSS les (the preferred method)
  • 30. Ways to use CSS <p style=“color:red;”>Some Text</p> Inline Styles
  • 31. Ways to use CSS <head>! <style>p {color:red;}</style>! </head> Embedded Styles
  • 32. Ways to use CSS <head>! <link rel="stylesheet"
 type="text/css" href=“style.css">! </head> External Style Sheet reference p {color:red;} style.css
  • 33. CSS Margin • Margin is the space around elements (outside the border). • The margin does not have a background color, and is completely transparent. • The top, right, bottom, and left margin can be changed independently using separate properties.
  • 35. CSS Padding • Padding is the space between the element border and the element content • The top, right, bottom, and left padding can be changed independently using separate properties.
  • 36. {padding:25px 50px 75px 100px;} CSS Padding 25px 50px 75px 100px
  • 37. {margin:25px 50px 75px 100px;} CSS Padding & Margin {padding:25px 50px 75px 100px;}
  • 38. CSS Text • color sets the color of text • letter-spacing adjusts the space between characters • line-height sets the distance between lines of text • text-decoration species the decoration • text-indent species the indentation of the rst line • text-shadow species the shadow effect • text-transform controls the capitalization of text • word-spacing changes the space between words
  • 39. CSS Fonts • CSS font properties dene the font family, boldness, size, and the style of a text. • Not all computers have the same fonts installed • font-family Species the font family for text • font-size Species the font size of text • font-style Species the font style for text (e.g. normal or italic) • font-variant Species if text should be small-caps • font-weight Species the weight of a font • font Sets all the font properties in one declaration
  • 40. CSS Fonts Serif Times New Roman, Georgia Sans-serif Arial, Verdana Monospace Courier New, Lucida Console
  • 44. CSS Pseudo-classes • CSS pseudo-classes are used to select the current condition of an element. • The most common pseudo-classes are links • Links can be styled differently depending on what state they are in. • a:link Selects an unvisited link • a:visited Selects visited links • a:active Selects the active link • a:hover Selects links on mouse over • p::first-letter Selects the rst letter of a paragraph • p::first-line Selects the rst line of a paragraph
  • 45. CSS Background • CSS background properties are used to dene the background effects of an element. • background-color sets the background color of an element • background-image sets the background image for an element • background-repeat sets how a background image will be repeated • background-attachment sets whether a background image is xed or scrolls with the rest of the page • background-position sets the starting position of a background image • background sets all the background properties in one declaration
  • 46. CSS Positioning • The CSS positioning properties allow you to position an element. • Elements can be positioned using the top, bottom, left, and right properties. • position:static is the default position of an element • position:fixed tells an element to be positioned relative to the browser window. It will not move even if the window is scrolled • position:relative tells an element to be positioned relative to its normal position. • position:absolute tells an element where to be positioned relative to its parent element.
  • 48. CSS Float • With CSS float, an element can be pushed to the left or right, allowing other elements to wrap around it. • clear Species which sides of an element where other floating elements are not allowed. • float Species whether or not a box should float to the left or right.
  • 49. img {float:none;} • Vivamus dignissim nunc eleifend, commodo mi sed, aliquam ante. Donec id lacus eu lectus sollicitudin viverra. Curabitur congue ultricies elit, at euismod mauris iaculis at. Sed et dignissim ipsum. Quisque massa quam, lacinia vel urna ac, dictum lobortis justo.“Donec et molestie • purus”. Cras et faucibus est, a viverra odio. Praesent luctus vel purus non mollis. In luctus vitae lectus quis fringilla. Curabitur porttitor justo ac dolor iaculis convallis. • Vivamus dignissim nunc eleifend, commodo mi sed, aliquam ante. Donec id lacus eu lectus sollicitudin viverra. Curabitur congue ultricies elit, at euismod mauris iaculis at. Sed et dignissim ipsum. Quisque massa quam, lacinia vel urna ac, dictum lobortis justo.“Donec et molestie • purus”. Cras et faucibus est, a viverra odio. Praesent luctus vel purus non mollis. In luctus vitae lectus quis fringilla. Curabitur porttitor justo ac dolor iaculis convallis. img {float:left;} img {float:right;} • Vivamus dignissim nunc eleifend, commodo mi sed, aliquam ante. Donec id lacus eu lectus sollicitudin viverra. Curabitur congue ultricies elit, at euismod mauris iaculis at. Sed et dignissim ipsum. Quisque massa quam, lacinia vel urna ac, dictum lobortis justo.“Donec et molestie CSS Float
  • 50. CSS Display and Visibility • The display property species if/how an element is displayed, and the visibility property species if an element should be visible or hidden. • visibility:hidden hides an element, but it will still take up the same space as before. • display:none hides an element, and it will not take up any space. • display:inline tells an element to only take up as much width as necessary, and will not force line breaks. • display:block tells an element will takes up the full width available, and will have a line break before and after it
  • 51. CSS Image Opacity / Transparency • The CSS3 property for transparency is opacity. • The opacity property can take a value from 0.0 - 1.0. A lower value makes the element more transparent. {opacity:0.1;} {opacity:0.5;} {opacity:1.0;}
  • 52. CSS Image Sprites • An image sprite is a collection of images put into a single image. • A web page with many images can take a long time to load and generates multiple server requests.
  • 53. CSS Media Types • By using the @media rule, a website can have a different layout for screen, print, mobile phone, tablet, etc. • all Used for all media type devices • braille Used for braille tactile feedback devices • print Used for printers • screen Used for computer screens • tv Used for television-type devices
  • 54. CSS3 • CSS3 is the latest standard for CSS and is completely backwards-compatible with earlier versions of CSS. • Selectors! • Box Model! • Borders! • Text Effects! • 2D/3D Transformations! • Animations! • Multiple Column Layout
  • 56. • SASS stands for Syntactically Awesome Style Sheets • Sass is a CSS preprocessor • Sass can be written in either the sass or scss syntax • Sass les compile into css les What is SASS?
  • 57. • CSS doesn’t allow variables • SASS uses mixins (reusable blocks of styles) • SASS is faster, more ecient, and easier to maintain • Using COMPASS with SASS allows us to write many lines of cross-browser compatible CSS in a single line of code! Why do we use SASS?
  • 58. Install Sass $ gem install sass
  • 59. nav {! ul {! margin: 0;! }! li {! display: block;! }! a {! padding: 6px 12px;! color: $yellow;! }! } SCSS nav! ul! margin: 0! li display: block! a! padding: 6px 12px! color: $yellow SASS
  • 60. nav {! ul {! margin: 0;! }! li {! display: block;! }! a {! padding: 6px 12px;! color: $yellow;! }! } SCSS nav! ul! margin: 0! li display: block! a! padding: 6px 12px! color: $yellow SASS
  • 61. SASS Mixins @mixin my-background($radius) {! margin-top: 12px;! height: 10px;! background: red;! border-radius: $radius;! } Dene the mixin .box {@include my-background(12px);} Include the mixin
  • 62. SASS Extend %my-background {! margin-top: 12px;! height: 10px;! background: red;! border: 1px solid $yellow;! } Dene the placeholder selector .box {@extend %my-background;} Extend the placeholder selector
  • 63. Mixin or Extend .box,.footer {@include my-background(12px);} Arguments .box,.footer {@extend %my-background;} Smaller CSS
  • 67.
  • 68. Assignment 1. Fork it. 2. Create a branch (`git checkout -b toms_branch`) 3. Commit your changes (`git commit -m "Fixed Navigation Styles"`) 4. Push to the branch (`git push origin toms_branch`)