HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective...

41
HTML IS FOR EVERYONE WORDCAMP SEATTLE 2015: BEGINNER EDITION 1

Transcript of HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective...

Page 1: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

HTML IS FOR EVERYONEWORDCAMP SEATTLE 2015: BEGINNER EDITION

1

Page 2: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

Objective

To make you effective with a small set of HTML

Developers need know the most.

To keep this simple.

2

Page 3: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

Why Should You Care?

Create better content

Increase your understanding of the web

Designers and Developers will love you

3

Page 4: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

Better Content?! How?!

Improve your writing style

Hopefully be cured of ‘click here’

Write for meaning, NOT appearance

It’ll save effort - no double editing

4

Page 5: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

What Makes the Web

URLs

HTTP

HTML

People

5

Page 6: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

Why HTML?HTML is the language of the Web.

• content - images, text, video, audio,

• what resources get loaded

• provides context.

6

Page 7: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

WEB STANDARDS TRIAD7

Page 8: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

“HTML is the thing that makes the Web BE the Web. It's the only thing

you can't strip away.”

–Topher DeRosia (@topher1kenobe)

8

Page 9: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

SYNTAX

9

Page 10: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

TagTags are the basis of HTML. They provide the content and structure of a web page.

<img src=“puppies.jpg” alt=“cute puppies smiling”>

<p>This is a paragraph.</p>

10

Page 11: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

ElementsElements represent tags and their content. Two types to elements you need to know

• Normal elements

• Void elements - don't contain anything

11

Page 12: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

Attributes

they’re used to augment a tag

id, class, and lang

name=“value”

12

Page 13: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

The ‘id’ Attribute

<p id=“summary”>describe an article</p>

used to uniquely identify an element

only one per page

13

Page 14: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

The ‘class’ Attribute

let you define a special type of element

<p class=“summary”>lorem ipsum dolor<p>

can have more than one per page

can have more than one class per element

14

Page 15: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

The ‘lang’ Attribute

lets you specify a different human language

useful for quotes, dialog, transcription

15

Page 16: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

Entities

used to display symbols

&copy; — copyright &lt; — less than

&pound; — English pound &gt; — greater than

&hellip; — ellipsis &trade; — trademark

&ndash; — en dash &mdash; — em dash

16

Page 17: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

WRITING

17

Page 18: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<a> - Anchor Tag

They connect web pages together

They are a different color from the text and underlined

18

Page 19: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<h1> - Headings

use only h2-h6

provide natural structure

don’t skip levels

19

Page 20: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<p> - Paragraphs

WordPress usually add these automatically

just in visual mode

can be disabled by your developers

20

Page 21: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

21

Page 22: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<ul>, <ol> - Lists

unordered or ordered lists

unordered use bullets

ordered use letters, decimal or roman numbers

22

Page 23: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

23

Page 24: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<img> - Images

src attribute - use a URL to where the image is

alt attribute - describe the content

24

Page 25: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

There is no alt tag

Accessibility and SEO

alt text or alt attribute

Describe the content of the image

25

Page 26: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

26

Page 27: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<abbr> - Abbreviations

used for abbreviations and acronyms

acronyms are spoken as Words

abbreviations are spelled out into letters

<abbr title=“National Aeronautics and Space Administration”>NASA</abbr>

27

Page 28: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<em> - Emphasis

usually render as italic

Italic is presentational, and not semantic.

28

Page 29: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<strong> - Important text

usually render as bold

another type of emphasis

29

Page 30: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<q> - Quote Text

better for a sentence or less.

usually within a paragraph

30

Page 31: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<blockquote> - Quote Text

for a large or significant quotation

could be a couple sentences or a paragraph

31

Page 32: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

EDITING

32

Page 33: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<del> - Deleted Text

Instruction to Remove this text entirely

Usually displayed with line through the text

33

Page 34: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<ins> - Inserted Text

Instruction to show newly added text

Usually show as underlined or highlighted

34

Page 35: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<cite> - Cite a Title

Refer to the title of a work.

Let CSS determine the style

Your designer takes care of this

35

Page 36: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<mark> - Marked Text

used for keyword in search results

could be used for Proofreading shorthand

36

Page 37: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

<time> - Dates and Times

Make Date and Time information findable

Machine-readable format available (UTC)

Show user the locale-formatted date

37

Page 38: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

RESOURCES

38

Page 39: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

HTML Resources

MDN Element Reference

MDN Global Attribute Reference

HTML5 Doctor

39

Page 40: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

Homework

Write only in the WordPress editor

Switch to code view to make edits

Ask your developer for a cheatsheet of classes

40

Page 41: HTML IS FOR EVERYONE - WordPress.com€¦ · WORDCAMP SEATTLE 2015: BEGINNER EDITION 1. Objective To make you effective with a small set of HTML Developers need know the most. To

Thank You

Andrew Woods

http://andrewwoods.net

@awoods

41