HTML and CSS can be a little daunting at first. This workshop covers the basics, breaks down the barrier to entry and shows you how you can start using HTML and CSS now.
most people’s vocabularies, design is a veneer. It’s interior decorating. It’s the fabric of the curtains, of the sofa. But to me, nothing could be further from the meaning of design. Design is the fundamental soul of a human-made creation that ends up expressing itself in successive outer layers of the product.” – Steve Jobs @shayhowe
Elements body, h1, p, div, strong, em, span Elements are HTML designators that define certain objects. Attributes href="http://shayhowe.com" title="Shay Howe" Attributes provide additional information to the given element. Tags <div id="shayhowe" class="awesome"></div> Tags encompass elements and their corresponding attributes. @shayhowe
a new line within the document and occupy the full available width. Inline Inline level elements do not begin on a new line and fall into the flow of the document, maintaing their necessary width. An Intro to HTML & CSS @shayhowe header footer article section aside div h1...h6 p table form ul, ol, li dl, dt, dd span a strong em img br input abbr
h1 { font: bold 16px/24px Arial, sans-‐serif; } A selector determines which element to apply style to. Property h1 { font: bold 16px/24px Arial, sans-‐serif; } A property is the style that will be applied to the element. Value h1 { font: bold 16px/24px Arial, sans-‐serif; } A value is the determines the behavior of a property. @shayhowe
Rule Set h1 { font: bold 16px/24px Arial, sans-‐serif; } A rule set includes a selector and all corresponding declarations. Declarations h1 { font: bold 16px/24px Arial, sans-‐serif; } Declarations are individual lines of CSS within a rule set. @shayhowe
SELECTORS Element Selector h1 { font: bold 16px/24px Arial, sans-‐serif; } An element selector targets and element by its name. ID Selector #logo { background: url("logo.png") 0 0 no-‐repeat; } An ID selector targets and element by its ID. ID’s are to be reserved to one a page. Class Selector .column { width: 200px; } A class selector targets and element by its class. Classes may appear multiple times within a page. @shayhowe