basic html/css primer for high school advisers

46
HTML Foundation of Web development < <

Upload: erin-desman

Post on 19-Jan-2015

8.348 views

Category:

Technology


1 download

DESCRIPTION

During Emerging Media workshop we talked about the basic html/css terminology and importance before moving into CMS.

TRANSCRIPT

Page 1: Basic HTML/CSS Primer for High School Advisers

HTMLFoundation of Web development

<<

Page 2: Basic HTML/CSS Primer for High School Advisers

You don’t have to be a Web ninja

to understand Web development basics.

Page 3: Basic HTML/CSS Primer for High School Advisers

Code is a series of logical questions and answers

Page 4: Basic HTML/CSS Primer for High School Advisers

So, let’s answer some questions …

Page 5: Basic HTML/CSS Primer for High School Advisers

Layers of a Web site

Page 6: Basic HTML/CSS Primer for High School Advisers

Hypertext Markup LanguageHypertext Markup Language describes:

- Structure

- Content

- Typographic hierarchy

- Rudimentary style (bold, italics, etc.)

What is HTML?

Page 7: Basic HTML/CSS Primer for High School Advisers

HTML Document

It might feel chaotic and unstructured …But the entire content of the page exists here.

Page 8: Basic HTML/CSS Primer for High School Advisers

Cascading Style Sheets- Separates style from content

- Easier to change formatting and update an entire Web site

- Eliminates page load

- Flexible design

- Better user accessibility for search bots and screen readers

- Allows you to design for multiple browsers and multiple Operating System (Linux, PC or Mac) environments

What is CSS?

Page 9: Basic HTML/CSS Primer for High School Advisers

CSS Document

Page 10: Basic HTML/CSS Primer for High School Advisers

-HTML is used for content and structure

-HTML houses scripting languages and behaviors

-CSS separates style from content

-CSS helps screen readers and users with disabilities read real content

HTML vs. CSS Review

Speaking of accessibility …

Page 11: Basic HTML/CSS Primer for High School Advisers

A brief intro to accessibility

Page 12: Basic HTML/CSS Primer for High School Advisers

When building a Web site consider accessibility

issues for users, search engines and mobile

applications

Page 13: Basic HTML/CSS Primer for High School Advisers

A user sees:

Page 14: Basic HTML/CSS Primer for High School Advisers

Search bot/screen reader:

Video on Screen Readers and Accessibility

Page 15: Basic HTML/CSS Primer for High School Advisers

Mobile device:

Page 16: Basic HTML/CSS Primer for High School Advisers

There are several things you can do to create good experiences for all users:

Page 17: Basic HTML/CSS Primer for High School Advisers

Write good, descriptive headlines

Page 18: Basic HTML/CSS Primer for High School Advisers

Write detailed paragraphs

Page 19: Basic HTML/CSS Primer for High School Advisers

Write precise page titles

Page 20: Basic HTML/CSS Primer for High School Advisers

Write descriptive image tags

Page 21: Basic HTML/CSS Primer for High School Advisers

Write descriptive linksDon’t say ‘click here!’

Page 22: Basic HTML/CSS Primer for High School Advisers

Separate content from style

Page 23: Basic HTML/CSS Primer for High School Advisers

Ready to start writing HTML and CSS?

Who needs fancy schmancy software? We don’t!

Page 24: Basic HTML/CSS Primer for High School Advisers

Create a folder called ‘Web’ on your desktop

Page 25: Basic HTML/CSS Primer for High School Advisers

In that folder, create a new folder called ‘style’

Page 26: Basic HTML/CSS Primer for High School Advisers

Open a text editor: Text Wrangler, Text Edit or even Word is fine.

Page 27: Basic HTML/CSS Primer for High School Advisers

Save a new document as ‘index.html’

You just created a homepage.

And added content.

Page 28: Basic HTML/CSS Primer for High School Advisers
Page 29: Basic HTML/CSS Primer for High School Advisers

HTML has open and close brackets, which are called tags:

<b>Content goes here</b> Result: Content goes here

<i>Content goes here</i> Result: Content goes here

For a complete list, go to W3Schools.org

<font color=”blue”>Content</font> Result: Content

Page 30: Basic HTML/CSS Primer for High School Advisers
Page 31: Basic HTML/CSS Primer for High School Advisers

Declare a ‘DOCTYPE’DOCTYPE tells browsers which set of rules or semantics to use, what types of tags are allowed and how strictly to follow it. XHTML 1.0 Transitional is now one of the most common ‘DOCTYPEs’ to declare.

For a complete list, go to W3.org

Page 32: Basic HTML/CSS Primer for High School Advisers

Create an HTML tag- Defines the document as <html>

- Make sure to add open and close tag

- End of the document </html>

Page 33: Basic HTML/CSS Primer for High School Advisers

Create an HEAD tag- Defines header information

- Contains meta data and links to external files (such as CSS)

Page 34: Basic HTML/CSS Primer for High School Advisers

Create an TITLE tagDefines Title of Web page

Page 35: Basic HTML/CSS Primer for High School Advisers

Create an LINK tagA favicon is the small image that shows up in the browser

Examples:

Page 36: Basic HTML/CSS Primer for High School Advisers

Create META informationAdd descriptive text for search engines and screen readers to read

Page 37: Basic HTML/CSS Primer for High School Advisers

Create CSS LinkAdding a stylesheet link will allow you to link CSS to HTML

Page 38: Basic HTML/CSS Primer for High School Advisers

Create a CSS file- Create a new file called styles.css

Page 39: Basic HTML/CSS Primer for High School Advisers

Link HTML to CSSMake sure that the name of the folder matches up

Page 40: Basic HTML/CSS Primer for High School Advisers

Add a BODY tag to the HTML pageDefines content area of the Web page

Page 41: Basic HTML/CSS Primer for High School Advisers

Let’s start adding content!Between <body></body> tags, you can start to add other tags, such as paragraphs <p></p> and headlines <h1></h1>

Page 42: Basic HTML/CSS Primer for High School Advisers

You’ve got a page …

But it looks kind of boring, right?

Page 43: Basic HTML/CSS Primer for High School Advisers

CSS Basics

p {color:#666666;}

Result: Content becomes grey

p {color:#666666;font-weight:900;}

Result: Content becomes grey and heavy bold

Target HTML tags with ‘selectors’ in CSS. Attribute style information between the brackets.

Page 44: Basic HTML/CSS Primer for High School Advisers

Change ‘style’ of an HTML element:

Page 45: Basic HTML/CSS Primer for High School Advisers

Remember this?

Page 46: Basic HTML/CSS Primer for High School Advisers

Who’s a Web ninja? Questions?