powerpoint presentation · •html is a markup language •html markup instructs browsers how to...

162
<HTML> Patrick Behr

Upload: others

Post on 20-Jul-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<HTML>Patrick Behr

Page 2: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Markup Language

• HTML is a markup language

• HTML markup instructs browsers how to display the content• Provides structure and meaning to the content

• Does not (should not) describe how it should be displayed

• Made up of elements

• Elements create a “document tree”

Page 3: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Elements

• Begins with a start tag, ends with an end tag

• Element is everything from the start tag to the end tag

• Can contain• Text• Attributes• Other elements

<tag>content</tag>

Page 4: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Elements

Start Tag

<tag>content</tag>

• Begin with a start tag, ends with an end tag

• Element is everything from the start tag to the end tag

• Can contain• Text• Attributes• Other elements

Page 5: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Elements

End Tag

<tag>content</tag>

• Begin with a start tag, ends with an end tag

• Element is everything from the start tag to the end tag

• Can contain• Text• Attributes• Other elements

Page 6: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Elements

Element

<tag>content</tag>

• Begin with a start tag, ends with an end tag

• Element is everything from the start tag to the end tag

• Can contain• Text• Attributes• Other elements

Page 7: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

• Configures or modifies an element

• Name-Value pair

• Defined in the start tag

Attributes

<tag >content</tag>

Attribute

attribute=“value”

Page 8: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

• Begin with a start tag. There is no end tag.

• Element is the start tag

• Can contain• Attributes

Empty Elements

Element

<meta charset=“utf-8”>

Page 9: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

• Begin with a start tag. There is no end tag.

• Element is the start tag

• Can contain• Attributes

Empty Elements

Element

<meta charset=“utf-8”>

<br><col><hr><img><input><link><meta>

Page 10: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

• Begin with a start tag. There is no end tag.

• Element is the start tag

• Can contain• Attributes

Empty Elements

End tag

<meta charset=“utf-8” />

Page 11: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Document Tree

• The tree of elements encoded in the source document. Each element in this tree has exactly one parent, with the exception of the rootelement, which has none.

Root

Page 12: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Document Tree

• The tree of elements encoded in the source document. Each element in this tree has exactly one parent, with the exception of the rootelement, which has none.

Root

Page 13: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Document Tree

• The tree of elements encoded in the source document. Each element in this tree has exactly one parent, with the exception of the rootelement, which has none.

Root

Page 14: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Document Tree

• The tree of elements encoded in the source document. Each element in this tree has exactly one parent, with the exception of the rootelement, which has none.

Root

Page 15: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Page 16: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Markup

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Page 17: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Content

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Page 18: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Content

Page 19: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Markup

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Document type declaration

Page 20: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Markup

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html><head>

<title>My Webpage</title></head><body>

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

</body>

</html>

Page 21: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Markup

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Root Element

Page 22: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Markup

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html> End Tag

Page 23: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Markup

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Element

Page 24: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Markup

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Child

Page 25: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Markup

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Parent

Page 26: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML Markup

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Child

Page 27: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

HTML Markup

Parent

Page 28: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

HTML Markup

Siblings

Page 29: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTLM <head>

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Metadata

Page 30: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML <body>

<!doctype html>

<html>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Content

Page 31: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Metadata

• Data that provides data about other data

• Use the <meta> tag

• Describes:• Language

• Character encoding

• Author

• Description

• Viewport

• Behavior that robots (“crawlers”) should use

• Other

Page 32: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Language

<!doctype html>

<html lang=“en”>

<head>

<title>My Webpage</title>

</head>

<body>

<p>This is a paragraph</p>

<p>Another paragraph</p>

</body>

</html>

Language

Page 33: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Character Encoding

<!doctype html>

<html lang=“en”><head>

<meta charset=“utf-8”><title>My Webpage</title>

</head><body>

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

</body>

</html>

Encoding

Page 34: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Character Encoding

<!doctype html>

<html lang=“en”><head>

<meta charset=“utf-8”><title>My Webpage</title>

</head><body>

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

</body>

</html>

Encoding

UTF-8 is recommended.

Do not use CESU-8, UTF-7, BOCU-1 and SCSU because XSS vulnerable.

Page 35: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Character Encoding

Page 36: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Character Encoding

Encoding

Page 37: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Character Encoding

Page 38: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Description

<!doctype html><html lang=“en”>

<head><meta charset=“utf-8”><meta name=“description”

content=“Describe your website here”><title>My Webpage</title>

</head><body>

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

</body></html>

Description

Page 39: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Title

<!doctype html><html lang=“en”>

<head><meta charset=“utf-8”><meta name=“description”

content=“Describe your website here”><title>My Webpage</title>

</head><body>

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

</body></html>

Title

Page 40: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Title & Description

Page 41: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Viewport

Used to control the width and scale of the page for mobile devices.

Page 42: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<meta http-equiv="X-UA-Compatible" content="IE=Edge">

Allows developers to determine which version of IE should be used to render the page. Should mostly be irrelevant (IE < 11), but you’ll probably see it.

Page 43: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<style>

body { font-family: arial, helvetica; }

</style>

<style>

Provides CSS used to style the document.

Page 44: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<link rel="stylesheet" href="URL to the file">

<link>

Used to reference an external resource, most commonly used to embed external stylesheets.

Page 45: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<link rel="stylesheet" href="URL to the file">

<link>

Used to reference an external resource, most commonly used to embed external stylesheets.

Page 46: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<link rel="stylesheet" href="URL to the file">

<link>

Used to reference an external resource, most commonly used to embed external stylesheets.

Page 47: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<script>console.log(‘Your JavaScript goes here’);

</script>

<script>

Used to embed JavaScript.Can be inline …

Page 48: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<script src=“URL to the file”></script>

<script>

Used to embed JavaScript.Can be inline or reference an external file.You still need the </script> tag!

Page 49: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

URL

Uniform Resource Locator…a.k.a. “web address”

Can be absolute:“https://developer.mozilla.org/en-US/docs/Web/HTML”

Can be relative:“../scripts/javascript.js”

Page 50: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

Page 51: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

You are here

/webRoot/pages/webpage.html

Page 52: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

<script src="../../scripts/hellacool.js">

Page 53: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

Parent directory

<script src="../../scripts/hellacool.js">

Page 54: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

Parent directory

<script src="../../scripts/hellacool.js">

Page 55: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

“scripts” directory

<script src="../../scripts/hellacool.js">

Page 56: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

“hellacool.js”

<script src="../../scripts/hellacool.js">

Page 57: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

<img src=“/images/pretty_picture.bmp">

Page 58: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

<img src=“/images/pretty_picture.bmp">

Root directory

Page 59: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

<img src=“/images/pretty_picture.bmp">

“images” directory

Page 60: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

<img src=“/images/pretty_picture.bmp">

“pretty_picture.bmp”

Page 61: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

<link rel="stylesheet" href="styles/trendy.css">

Page 62: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

<link rel="stylesheet" href="styles/trendy.css">

“styles” directory

Page 63: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Relative URL

<link rel="stylesheet" href="styles/trendy.css">

“trendy.css” file

Page 64: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<head>

Page 65: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should
Page 66: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Adding Content

Page 67: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Adding Content

Page 68: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Headings

Page 69: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Headings

Page 70: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Paragraphs

Page 71: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Paragraphs

Page 72: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Lists

Page 73: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Lists

Page 74: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Lists

Page 75: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Lists

Page 76: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Block vs Inline Elements

Page 77: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Block vs Inline Elements

Page 78: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Block vs Inline Elements

Page 79: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Inline Elements

Page 80: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Inline Elements

Page 81: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Page 82: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

URL to link to

Page 83: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Text to display

Page 84: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Page 85: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Page 86: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Opens in a new tab

Page 87: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Prevents hackingwindow.opener

Page 88: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Page 89: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Use an image

Page 90: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Page 91: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Download a file

Page 92: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Page 93: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Page 94: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Anchors (links)

Page 95: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Menu Items

Page 96: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Menu Items

Page 97: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

Page 98: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

Where data goes

Page 99: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

HTTP method to use

Page 100: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

Name of the parm

Page 101: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

Page 102: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

Page 103: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

action=“form.html"

Page 104: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

method=“get”

Page 105: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

parm = value

Page 106: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 107: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 108: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 109: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 110: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 111: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 112: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 113: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 114: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 115: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 116: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 117: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 118: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 119: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 120: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 121: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 122: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 123: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 124: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 125: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 126: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 127: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 128: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 129: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 130: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 131: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 132: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 133: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

Page 134: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Widgets

<input type=“text” type=“range”type=“number” type=“reset”type=“checkbox” type=“submit”type=“radio” type=“url”type=“date” type=“week”type=“time” type=“month”type=“email” type=“hidden”type=“color” type=“file”type=“password” type=“button” >

Page 135: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

Submit button

Page 136: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

Button text

Page 137: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Forms

Page 138: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables

Page 139: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables

Page 140: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables

Page 141: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables

Page 142: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables

Page 143: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables

Page 144: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables

Page 145: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables

Page 146: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables

Page 147: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables - Semantics

Page 148: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables - Semantics

Page 149: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Tables - Semantics

Page 150: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Typical Website Layout

Page 151: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Table Layout

Page 152: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<div> Layout

Page 153: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML5 Semantics

<header>

<nav>

<section>

<article>

<aside>

<footer>

Page 154: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

<div> Layout

Page 155: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

HTML5 Elements

<datalist>

<output>

<input type=“color”>

<canvas>

<svg>

<audio>

<video>

Page 156: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Social Media

• Facebook Open Graph• <meta property=“og:url” content=“https://www.yoursite.com/page”>

• <meta property=“og:type” content=“article”>

• <meta property=“og:title” content=“The best site ever!”>

• <meta property=“og:description” content=“Description goes here”>

• <meta property=“og:image” content=“http://example.com/img.jpg”>

Page 157: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Social Media

• Twitter cards• <meta name=“twitter:card” content=“summary”>

• <meta name=“twitter:site” content=“@flickr”>

• <meta name=“twitter:title” content=“Island Photos”>

• <meta name=“twitter:description” content=“View the album on Flickr.”>

• <meta name=“twitter:image” content=“https://example.com/img.jpg”>

Page 158: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Summary

• HTML is a markup language• Made up of elements

• Elements may have attributes

• Elements can be nested

• Form a document tree

• Browser parses the document and creates the DOM

Page 159: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Summary

• Metadata is data about data• Language

• Character encoding

• Title

• Description

• External files

• URL (relative and absolute)

Page 160: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Summary

• Content• Headings

• Paragraphs

• Lists (ordered & unordered)

• Block vs Inline

• Anchors (links)

• Forms & Widgets

• Tables

• Layout

• Social Media

Page 161: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Questions?

Page 162: PowerPoint Presentation · •HTML is a markup language •HTML markup instructs browsers how to display the content •Provides structure and meaning to the content •Does not (should

Thank you!

Please, please, pleaseFill out your survey!!

Twitter: @P_Behr

LinkedIn: Patrick-Behr

Website:patrickbehr.com