Top Banner
7/30 – 7/31/2011 #wcchicago Back to Basics Essential HTML and CSS for Bloggers and Business Owners TJ List The Geek Who Speaks People Twitter: @TJList http://maxim650.com
27

Back to Basics WordCamp Chicago 2011 TJList

May 15, 2015

Download

Technology

TJList

People who manage their own websites (especially bloggers and small business owners) really should know some basic HTML and CSS. In this interactive presentation, @TJList gives some tips on performing some basic tasks.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Back to BasicsEssential HTML and CSS

forBloggers and Business Owners

TJ ListThe Geek Who Speaks People

Twitter: @TJListhttp://maxim650.com

Page 2: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

The Most Important Slide

Find this presentation at:http://maxim650.com/wcchi-2011

The demo sites are at:http://wcchi-before.maxim650.com/http://wcchi-after.maxim650.com/

Page 3: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

I don’t need to learn code because…

“I use WordPress!”“It handles the code for me.”“My theme has all the controls I need.”

Page 4: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

“I don’t need to learn to swim. I wear a life jacket when I go canoeing.”

Page 5: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

WordPress is a Factory

Page 6: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

WordPress is a FactoryInputs Processing Equipment Outputs

Blog Posts WordPress Software HTMLPages Theme CSS

Images Plugins JavaScriptLinks Images, videos, etc.

Page 7: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Tools

• I can’t get this stuff at Home Depot…

Page 8: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

PluginsWordPress FAQ Manager Andrew Norcross / @norcrosshttp://wordpress.org/extend/plugins/wordpress-faq-manager/

WordPress.com Custom CSS Automattichttp://wordpress.org/extend/plugins/safecss/

Widget Classes aizattohttp://wordpress.org/extend/plugins/widget-classes/

TinyMCE Advanced Andrew Ozzhttp://wordpress.org/extend/plugins/tinymce-advanced/

Page 9: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Suggested Tools

• IDE (Integrated Development Environment)– Notepad++ (PC)– Coda or Textmate (Mac)

Page 10: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Essential Tools

• FireFox• Firebug extension• Patience• Attention to Detail• Sense of Humor

Page 11: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Resources

• W3 Schools (http://www.w3schools.com/)• http://css-tricks.com/• http://www.cssnewbie.com/• http://meyerweb.com/eric/tools/css/reset/• http://positioniseverything.net/index.php

Page 12: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Let’s get started…

• WordPress 3.2.1• Twenty-Eleven Theme• Plugins listed above

Page 13: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

CSS Selectors by Precedence

1. Element-specific settings2. ID (indicated with # in a CSS file)3. Class (indicated with . in a CSS file)4. Browser Default

Page 14: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Semantic Markup

• HTML for Content– HyperText Markup Language– Tells browser what to display

• CSS for Appearance– Cascading Style Sheet– Tells browser how to display the HTML

Page 15: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Example 1

• Which element is the most important on this page?

• TinyMCE: Your Frenemy• Visual vs. HTML Editors

Page 16: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Example 2

• Typography Test• Making your theme make sense

Page 17: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Example 3

• Same content as example 1• Better markup

Page 18: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

The Box Model This End Up

HTML/CSS

Page 19: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

The Box Model*

*Image blatanty stolen from http://www.w3schools.com/css/css_boxmodel.aspbecause I was too lazy to make my own at 3:30 AM.

Page 20: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Example 4

• Judicious use of the <div> element• The Box Model• Background and Border properties• Padding and Margins

Page 21: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Distinctions Reduce

Confusion

Page 22: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Are your eyes crossed?

• Distinctions reduce confusion• Practice, practice, practice• White space!• Use your IDE

Page 23: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Example 5

• Widgets!– Goodbye, TinyMCE editor

• Float• Element-specific styles

Page 24: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Example 6

• Highlighting Rows of a list• Selecting specific elements by ID• Advanced selection techniques

Page 25: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Gotchas

• Pair tags properly• Be careful when nesting tags

Page 26: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

“Do MORE of what WORKS.

Do less of what doesn’t.”

-Rebecca Jehorek

Page 27: Back to Basics WordCamp Chicago 2011 TJList

7/30 – 7/31/2011 #wcchicago

Thank you, WordCamp Chicago!Image Credits

Slide 4: Canoe by Khotzyhttp://www.flickr.com/photos/43334017@N00/2510410170/

Slide 5: Factory by harry_nlhttp://www.flickr.com/photos/23363966@N02/3030267182/

Slide 18: Cardboard Box by Ahhyeahhttp://www.flickr.com/photos/87622946@N00/454494396/

Slide 19: Box Model by W3Schoolshttp://www.w3schools.com/css/css_boxmodel.asp

Slide 21: Tying Shoes by nlnnethttp://www.flickr.com/photos/39727414@N00/1467545266/

Slide 26: Car Door Lock by ilmungohttp://www.flickr.com/photos/48094050@N00/155746502/

All images are Creative Commons (except the CSS Box Model on slide 19 )

TJ ListThe Geek Who Speaks People

@[email protected]

http://maxim650.com