SlideShare uma empresa Scribd logo
1 de 15
Baixar para ler offline
presents
HTML / CSS: Getting to
Know the Face of the Web
TOM BOATES
@tomboates
Good to know...
• “standards” are rarely “standards”
• No “right way” to do anything (though plenty of
people will tell you otherwise)
• Media/OS/Browser matters!
What is HTML?
• HyperText Markup Language
• Originally built for structural layout
• The lifeblood of the entire web
<div>
CONTENT
</div>
what HTML looks like
CONTENT=
“div” is imaginary box
HTML Structure
html
head body
meta title div div
p ul ul img
li li lili li li
<div>
<ul>
<li>ONE</li>
<li>TWO</li>
<li>THREE</
li>
</ul>
</div>
WHAT NESTING looks like
ONE
= TWO
THREE
Block vs. Inline elements
BLOCK elements have a
natural width and height,
and “stack” by default.
DIV 1
DIV 2
DIV 3
INLINE elements don’t
carry a width or height,
and don’t displace
elements around them.
This is displaying how
inline elements get
rendered in HTML.
<element attribute=”value”>
html attributes
Examples:
<div id=”mainContent”>
<div class=”black”>
What is CSS?
• Cascading StyleSheet
• Supplement to HTML
• Designed to manage styling and layout
• Central place to manage styles across many
HTML pages
• Order of definitions very important
• Linked, <head>, inline, user agent
selector {
property: value;
property: value;
}
what CSS looks like
div {
width: 100px;
padding: 5px;
}
EXAMPLE
SELECTING NESTED elements
CSS: div ul li span { ... }
Is referencing these elements:
<div>
<ul>
<li>This is a first <span>SPAN</span> element.</li>
<li>This is a second <span>SPAN</span> element.</
li>
<li>This is a third <span>SPAN</span> element.</li>
</ul>
</div>
SELECTING with Attributes
CSS: p#main span.bold.italic { ... }
Is referencing this element:
<p id=”main”>
I am selecting <span class=”bold italic”>this text</span>
</p>
<p>
I’m not selecting <span class=”bold italic”>this one</span>.
</p>
but not <span class=”bold”>this one</span>.
hands on
Making a landing page for this class
Resources
W3 Schools - Lists all HTML elements, what attributes they take and what values are available. Also lists all
CSS selectors and options, and provides all properties and values. (http://www.w3schools.com/)
CSS3 Generator - For the more advanced side of you, this tool provides an easy to understand form to
generate the necessary CSS for the effect you’re trying to achieve (shadows, rounded corners, etc.). (http://
www.css3generator.com)
HTML Emails Tips and Tricks - A collection of posts and articles on what’s up with HTML emails. (http://
www.1stwebdesigner.com/tutorials/ultimate-guide-html-emails/)
30 Best Practices for CSS - Good list of some of the things I taught as well as some others to keep in mind
when writing your CSS. (http://net.tutsplus.com/tutorials/html-css-techniques/30-css-best-practices-for-
beginners/)
Wordpress.com - If you’re looking to create a website and have a simpler interface for managing your
content than writing every line of HTML/CSS this is for you. Themes are available to completely skin your
website and you can customize images and styles even more with the knowledge you learned here! (http://
www.wordpress.com)
Google - Honestly almost all I learned I learned from a blog post someone wrote somewhere that I found
after googling what I needed. The internet is FILLED with helpful information and often you can find a post or
article explaining how to do what you’re trying to do. (http://www.google.com
Check out these helpful resources for reference.
Course Title
Course Title
INSTRUCTOR NAME

Mais conteúdo relacionado

Mais de Intelligent_ly

Craft Your Marketing To-Do List Like a Growth Hacker
Craft Your Marketing To-Do List Like a Growth HackerCraft Your Marketing To-Do List Like a Growth Hacker
Craft Your Marketing To-Do List Like a Growth HackerIntelligent_ly
 
The UX Playbook: Tools, Tips, & Tricks
The UX Playbook: Tools, Tips, & TricksThe UX Playbook: Tools, Tips, & Tricks
The UX Playbook: Tools, Tips, & TricksIntelligent_ly
 
Founder Selling: How to Win Deals & Close Critical Sales
Founder Selling: How to Win Deals & Close Critical SalesFounder Selling: How to Win Deals & Close Critical Sales
Founder Selling: How to Win Deals & Close Critical SalesIntelligent_ly
 
Tech for the Non Technical - Anatomy of an Application Stack
Tech for the Non Technical - Anatomy of an Application StackTech for the Non Technical - Anatomy of an Application Stack
Tech for the Non Technical - Anatomy of an Application StackIntelligent_ly
 
Fundamentals of Facebook Advertising
Fundamentals of Facebook AdvertisingFundamentals of Facebook Advertising
Fundamentals of Facebook AdvertisingIntelligent_ly
 
Introduction to Paid Customer Acquisition
Introduction to Paid Customer AcquisitionIntroduction to Paid Customer Acquisition
Introduction to Paid Customer AcquisitionIntelligent_ly
 
Immigration Issues for Startups
Immigration Issues for StartupsImmigration Issues for Startups
Immigration Issues for StartupsIntelligent_ly
 
Product Management and the Search for Product Market Fit
Product Management and the Search for Product Market Fit Product Management and the Search for Product Market Fit
Product Management and the Search for Product Market Fit Intelligent_ly
 
Sales 101: How to Write an Email that Everyone Responds To
Sales 101: How to Write an Email that Everyone Responds To Sales 101: How to Write an Email that Everyone Responds To
Sales 101: How to Write an Email that Everyone Responds To Intelligent_ly
 
How to Market Unsexy Products
How to Market Unsexy ProductsHow to Market Unsexy Products
How to Market Unsexy ProductsIntelligent_ly
 
Get funded Expert Advice from the People Who Know
Get funded Expert Advice from the People Who KnowGet funded Expert Advice from the People Who Know
Get funded Expert Advice from the People Who KnowIntelligent_ly
 
Dave Balter's Advocacy Marketing Class
Dave Balter's Advocacy Marketing ClassDave Balter's Advocacy Marketing Class
Dave Balter's Advocacy Marketing ClassIntelligent_ly
 
The Short List: Choosing Critical Features for Your Minimum Viable Product
The Short List: Choosing Critical Features for Your Minimum Viable ProductThe Short List: Choosing Critical Features for Your Minimum Viable Product
The Short List: Choosing Critical Features for Your Minimum Viable ProductIntelligent_ly
 
Whale Hunting: How to Get Intros and Sell to Big Brands as a Startup
Whale Hunting: How to Get Intros and Sell to Big Brands as a Startup  Whale Hunting: How to Get Intros and Sell to Big Brands as a Startup
Whale Hunting: How to Get Intros and Sell to Big Brands as a Startup Intelligent_ly
 
Don't Get Funded: How to Use Your Customers to Bootstrap
Don't Get Funded: How to Use Your Customers to Bootstrap Don't Get Funded: How to Use Your Customers to Bootstrap
Don't Get Funded: How to Use Your Customers to Bootstrap Intelligent_ly
 
Facebook Advertising: Launch a Campaign That Really Works
Facebook Advertising: Launch a Campaign That Really WorksFacebook Advertising: Launch a Campaign That Really Works
Facebook Advertising: Launch a Campaign That Really WorksIntelligent_ly
 
UX & Wireframes Know Your Weapon of Choice
UX & Wireframes Know Your Weapon of ChoiceUX & Wireframes Know Your Weapon of Choice
UX & Wireframes Know Your Weapon of ChoiceIntelligent_ly
 
Content 101: How to Create Content People Actually Care About
Content 101: How to Create Content People Actually Care About Content 101: How to Create Content People Actually Care About
Content 101: How to Create Content People Actually Care About Intelligent_ly
 
Ramping Up: B2C Acquisition Marketing for Start-Ups
Ramping Up: B2C Acquisition Marketing for Start-UpsRamping Up: B2C Acquisition Marketing for Start-Ups
Ramping Up: B2C Acquisition Marketing for Start-UpsIntelligent_ly
 
Email Strategy, Design and User Experience: Keys to Success
Email Strategy, Design and User Experience: Keys to SuccessEmail Strategy, Design and User Experience: Keys to Success
Email Strategy, Design and User Experience: Keys to SuccessIntelligent_ly
 

Mais de Intelligent_ly (20)

Craft Your Marketing To-Do List Like a Growth Hacker
Craft Your Marketing To-Do List Like a Growth HackerCraft Your Marketing To-Do List Like a Growth Hacker
Craft Your Marketing To-Do List Like a Growth Hacker
 
The UX Playbook: Tools, Tips, & Tricks
The UX Playbook: Tools, Tips, & TricksThe UX Playbook: Tools, Tips, & Tricks
The UX Playbook: Tools, Tips, & Tricks
 
Founder Selling: How to Win Deals & Close Critical Sales
Founder Selling: How to Win Deals & Close Critical SalesFounder Selling: How to Win Deals & Close Critical Sales
Founder Selling: How to Win Deals & Close Critical Sales
 
Tech for the Non Technical - Anatomy of an Application Stack
Tech for the Non Technical - Anatomy of an Application StackTech for the Non Technical - Anatomy of an Application Stack
Tech for the Non Technical - Anatomy of an Application Stack
 
Fundamentals of Facebook Advertising
Fundamentals of Facebook AdvertisingFundamentals of Facebook Advertising
Fundamentals of Facebook Advertising
 
Introduction to Paid Customer Acquisition
Introduction to Paid Customer AcquisitionIntroduction to Paid Customer Acquisition
Introduction to Paid Customer Acquisition
 
Immigration Issues for Startups
Immigration Issues for StartupsImmigration Issues for Startups
Immigration Issues for Startups
 
Product Management and the Search for Product Market Fit
Product Management and the Search for Product Market Fit Product Management and the Search for Product Market Fit
Product Management and the Search for Product Market Fit
 
Sales 101: How to Write an Email that Everyone Responds To
Sales 101: How to Write an Email that Everyone Responds To Sales 101: How to Write an Email that Everyone Responds To
Sales 101: How to Write an Email that Everyone Responds To
 
How to Market Unsexy Products
How to Market Unsexy ProductsHow to Market Unsexy Products
How to Market Unsexy Products
 
Get funded Expert Advice from the People Who Know
Get funded Expert Advice from the People Who KnowGet funded Expert Advice from the People Who Know
Get funded Expert Advice from the People Who Know
 
Dave Balter's Advocacy Marketing Class
Dave Balter's Advocacy Marketing ClassDave Balter's Advocacy Marketing Class
Dave Balter's Advocacy Marketing Class
 
The Short List: Choosing Critical Features for Your Minimum Viable Product
The Short List: Choosing Critical Features for Your Minimum Viable ProductThe Short List: Choosing Critical Features for Your Minimum Viable Product
The Short List: Choosing Critical Features for Your Minimum Viable Product
 
Whale Hunting: How to Get Intros and Sell to Big Brands as a Startup
Whale Hunting: How to Get Intros and Sell to Big Brands as a Startup  Whale Hunting: How to Get Intros and Sell to Big Brands as a Startup
Whale Hunting: How to Get Intros and Sell to Big Brands as a Startup
 
Don't Get Funded: How to Use Your Customers to Bootstrap
Don't Get Funded: How to Use Your Customers to Bootstrap Don't Get Funded: How to Use Your Customers to Bootstrap
Don't Get Funded: How to Use Your Customers to Bootstrap
 
Facebook Advertising: Launch a Campaign That Really Works
Facebook Advertising: Launch a Campaign That Really WorksFacebook Advertising: Launch a Campaign That Really Works
Facebook Advertising: Launch a Campaign That Really Works
 
UX & Wireframes Know Your Weapon of Choice
UX & Wireframes Know Your Weapon of ChoiceUX & Wireframes Know Your Weapon of Choice
UX & Wireframes Know Your Weapon of Choice
 
Content 101: How to Create Content People Actually Care About
Content 101: How to Create Content People Actually Care About Content 101: How to Create Content People Actually Care About
Content 101: How to Create Content People Actually Care About
 
Ramping Up: B2C Acquisition Marketing for Start-Ups
Ramping Up: B2C Acquisition Marketing for Start-UpsRamping Up: B2C Acquisition Marketing for Start-Ups
Ramping Up: B2C Acquisition Marketing for Start-Ups
 
Email Strategy, Design and User Experience: Keys to Success
Email Strategy, Design and User Experience: Keys to SuccessEmail Strategy, Design and User Experience: Keys to Success
Email Strategy, Design and User Experience: Keys to Success
 

Último

VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130Suhani Kapoor
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...home
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxTusharBahuguna2
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfAmirYakdi
 
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceanilsa9823
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130Suhani Kapoor
 
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai DouxDubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Douxkojalkojal131
 
Peaches App development presentation deck
Peaches App development presentation deckPeaches App development presentation deck
Peaches App development presentation decktbatkhuu1
 
Government polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcdGovernment polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcdshivubhavv
 
Fashion trends before and after covid.pptx
Fashion trends before and after covid.pptxFashion trends before and after covid.pptx
Fashion trends before and after covid.pptxVanshNarang19
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girlsmodelanjalisharma4
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...SUHANI PANDEY
 
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfChapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfParomita Roy
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Delhi Call girls
 
Tapestry Clothing Brands: Collapsing the Funnel
Tapestry Clothing Brands: Collapsing the FunnelTapestry Clothing Brands: Collapsing the Funnel
Tapestry Clothing Brands: Collapsing the Funneljen_giacalone
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...babafaisel
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdftbatkhuu1
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja Nehwal
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️soniya singh
 

Último (20)

VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptx
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
 
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
 
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai DouxDubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
 
Peaches App development presentation deck
Peaches App development presentation deckPeaches App development presentation deck
Peaches App development presentation deck
 
Government polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcdGovernment polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcd
 
Fashion trends before and after covid.pptx
Fashion trends before and after covid.pptxFashion trends before and after covid.pptx
Fashion trends before and after covid.pptx
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
 
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfChapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
 
Tapestry Clothing Brands: Collapsing the Funnel
Tapestry Clothing Brands: Collapsing the FunnelTapestry Clothing Brands: Collapsing the Funnel
Tapestry Clothing Brands: Collapsing the Funnel
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
 
Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance VVIP 🍎 SER...
Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SER...Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SER...
Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance VVIP 🍎 SER...
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
 

HTML / CSS: Getting to Know the Face of the Web

  • 1. presents HTML / CSS: Getting to Know the Face of the Web TOM BOATES @tomboates
  • 2. Good to know... • “standards” are rarely “standards” • No “right way” to do anything (though plenty of people will tell you otherwise) • Media/OS/Browser matters!
  • 3. What is HTML? • HyperText Markup Language • Originally built for structural layout • The lifeblood of the entire web
  • 4. <div> CONTENT </div> what HTML looks like CONTENT= “div” is imaginary box
  • 5. HTML Structure html head body meta title div div p ul ul img li li lili li li
  • 7. Block vs. Inline elements BLOCK elements have a natural width and height, and “stack” by default. DIV 1 DIV 2 DIV 3 INLINE elements don’t carry a width or height, and don’t displace elements around them. This is displaying how inline elements get rendered in HTML.
  • 8. <element attribute=”value”> html attributes Examples: <div id=”mainContent”> <div class=”black”>
  • 9. What is CSS? • Cascading StyleSheet • Supplement to HTML • Designed to manage styling and layout • Central place to manage styles across many HTML pages • Order of definitions very important • Linked, <head>, inline, user agent
  • 10. selector { property: value; property: value; } what CSS looks like div { width: 100px; padding: 5px; } EXAMPLE
  • 11. SELECTING NESTED elements CSS: div ul li span { ... } Is referencing these elements: <div> <ul> <li>This is a first <span>SPAN</span> element.</li> <li>This is a second <span>SPAN</span> element.</ li> <li>This is a third <span>SPAN</span> element.</li> </ul> </div>
  • 12. SELECTING with Attributes CSS: p#main span.bold.italic { ... } Is referencing this element: <p id=”main”> I am selecting <span class=”bold italic”>this text</span> </p> <p> I’m not selecting <span class=”bold italic”>this one</span>. </p> but not <span class=”bold”>this one</span>.
  • 13. hands on Making a landing page for this class
  • 14. Resources W3 Schools - Lists all HTML elements, what attributes they take and what values are available. Also lists all CSS selectors and options, and provides all properties and values. (http://www.w3schools.com/) CSS3 Generator - For the more advanced side of you, this tool provides an easy to understand form to generate the necessary CSS for the effect you’re trying to achieve (shadows, rounded corners, etc.). (http:// www.css3generator.com) HTML Emails Tips and Tricks - A collection of posts and articles on what’s up with HTML emails. (http:// www.1stwebdesigner.com/tutorials/ultimate-guide-html-emails/) 30 Best Practices for CSS - Good list of some of the things I taught as well as some others to keep in mind when writing your CSS. (http://net.tutsplus.com/tutorials/html-css-techniques/30-css-best-practices-for- beginners/) Wordpress.com - If you’re looking to create a website and have a simpler interface for managing your content than writing every line of HTML/CSS this is for you. Themes are available to completely skin your website and you can customize images and styles even more with the knowledge you learned here! (http:// www.wordpress.com) Google - Honestly almost all I learned I learned from a blog post someone wrote somewhere that I found after googling what I needed. The internet is FILLED with helpful information and often you can find a post or article explaining how to do what you’re trying to do. (http://www.google.com Check out these helpful resources for reference.