Top Banner
Web Building Blocks HTML, CSS, and Content Management Systems
31

Web Building Blocks

Jan 15, 2015

Download

Education

joegilbert

 
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: Web Building Blocks

Web Building Blocks

HTML, CSS, and Content Management Systems

Page 2: Web Building Blocks

Why Learn the Building Blocks?

“The idea that you could make a website and not know HTML blows my mind because it’s like building a building and not knowing what a brick is…You can be a CSS wizard or you can know the basics, but you should at least have some foundational knowledge of what your building material is.”

- Ryan Singer, 37Signals

Page 3: Web Building Blocks

Building Blocks

http://bit.ly/aJWAu6

What we’ll make

Page 4: Web Building Blocks

Building Blocks

• Content (text, images, video)

• Structure (layout, order)

• Presentation/style (color, size, margins, typeface)

• Behaviors (clicking, submitting forms, dragging)

Page 5: Web Building Blocks

Building Blocks

Page 6: Web Building Blocks

Building Blocks: HTML

Content + Structure

<!doctype html><html> <head> <title>My First Page</title> </head> <body> <h1>Hello, World!</h1> <p>Welcome to my site.</p> </body></html>

Page 7: Web Building Blocks

Building Blocks: HTML

html

bodyhead

title h1 p

DOM: Document Object Model

childparent

ancestor

descendant

Page 8: Web Building Blocks

Building Blocks: HTMLElements, Nodes, Tags,

Attributes, IDs, and Classes

<p id=“welcome” class=“notice”> <span class=“first intro-word”>Welcome</span> to my site.</p>

Page 9: Web Building Blocks

Building Blocks: HTML

links & images:<a href=“this.html”> <img src=“that.jpg” alt=“that img”>

abstract: <div> <span>

structure:<h1>…<h6> <p> <ul> <ol> <li> <table> <tr> <td>

emphasis:<em> <strong>

Page 10: Web Building Blocks

Building Blocks: HTMLPlay around!

http://bit.ly/cGI3Jk

Page 11: Web Building Blocks

Building Blocks: HTML

inline elements

block

elements

Page 12: Web Building Blocks

Building Blocks: HTMLStructure of an XHTML

Document

Page 13: Web Building Blocks

Building Blocks: HTMLStructure of an HTML5

Document

Page 14: Web Building Blocks

Building Blocks

http://bit.ly/c0B4VS

Page 15: Web Building Blocks

Building Blocks: CSSCascading Style Sheets

selector { property: value;}

Page 16: Web Building Blocks

Building Blocks: CSSSelectors

p.notice#welcomep.notice.first.intro-worddiv .noticea:hover#welcome .notice span.notice, .warning

Page 17: Web Building Blocks

Building Blocks: CSSSelectors: going down?

Page 18: Web Building Blocks

Building Blocks: CSSInheritance

Page 19: Web Building Blocks

Building Blocks: CSSProperties & Values

height: 100px;width: 50%;color: #FF0000;background-color: #000;font-size: 12pt;font-family: “Times New Roman”, serif;font-weight: bold;text-align: center;display: block;float: left;padding: 3em;margin: 10px 20px 5px 10px;

Page 20: Web Building Blocks

Building Blocks: CSSBox Model

Page 21: Web Building Blocks

Building Blocks: CSSPositioning

Normal Relative/Absolute

Float

“Cleared” floats

Page 22: Web Building Blocks

Building Blocks

http://bit.ly/9S35oq

Page 23: Web Building Blocks

Building Blocks: CMS“I don’t want to write HTML for every minor website update.”

“Our site has too many pages to manage them all by hand.”

“We have a bunch of content creators who need different levels

of access.”

“I’m not a programmer, and my site needs custom functionality that

HTML & CSS alone can’t provide.”

Page 24: Web Building Blocks

Building Blocks: CMS

• Create content (static pages, time-stamped posts, images, video)

• Organize content (order, categories, tags)

• Add consistent presentation/style (templates)

• Add new functionality (plugins, extensions, modules)

Page 25: Web Building Blocks

Building Blocks: CMS

WordPress

Drupal

SilverStripe

Joomla!

ExpressionEngine

opensourcecms.com

Page 26: Web Building Blocks

Building Blocks: CMS

Page 27: Web Building Blocks

Building Blocks: CMS

Page 28: Web Building Blocks

Building Blocks: CMS

Page 29: Web Building Blocks

Building Blocks: CMS

Page 30: Web Building Blocks

Building Blocks: CMS

Page 31: Web Building Blocks

Building Blocks: Resources

• Tutorials/Reference– W3Schools: w3schools.com– HTML Dog: htmldog.com

• Design– A List Apart: alistapart.com– Smashing Magazine: smashingmagazine.com– Boxes and Arrows: boxesandarrows.com– Pattern Tap: patterntap.com

• Tools– Firebug (getfirebug.com), Chrome Developer Toolbar, IE

Developer Toolbar– validator.w3.org– TextWrangler, Notepad++, CSS Edit