Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup...

20
Being Awesome with HTML A tutorial by Zoe F

Transcript of Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup...

Page 1: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Being Awesome with HTMLA tutorial by Zoe F

Page 2: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

HTML: The quick facts

• What: The most popular markup language existing for webpages

• Who: Tim Berners-Lee• When: In 1991, only 20 years ago• Where: CERN Labs• How: Browser-interpritation• Why: He was a genius?

Page 3: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

So what makes HTML so awesome?

• It’s interpreted!• It’s simple• It looks impressive without a lot of work

Page 4: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

House cleaning.

Possible Tools:• Wordpad, • TextWrangler(reccomended for Macs)• Notepad++ • HTMLKit• netBeans• PageSpinner (for really old Macs)

Page 5: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Some nomenclature to impress your friends and enemies

• Plain old boring content. I am some plain old boring content

• Tags: What does this content look like?<MyTag> Boring Content</MyTag>

• Attributes: I mean, what does it reeeeeally look like?<MyTag size=big>Content</myTag>

Page 6: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Nesting!

These are the basics: A lot of the tags we go over today can also be implemented with CSS!

Deprecated Tags

• <tag1 >Content</tag1>• <tag1 attribute = stuff><tag2>Content</tag2></tag1>• <tag1><tag2>Content</tag1></tag2>

Page 7: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Resources

• Reference:http://www.w3schools.com/tags/

• Lab:http://www.binaryspark.com/classes/HTML_rocks/lab_instructions.html

• Materials:http://www.binaryspark.com/classes/HTML_rocks/matterials.zip

Page 8: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

The standard tags you gotta have<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head> </head> <body> </body>

</html>

Page 9: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Text formatting

Making your content look pretty.

Page 10: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Lists

• Numbered lists/Ordered Lists (OL)<ol>…</ol>

• Unordered Lists (UL)• <ul>…</ul>• List Items (li)

<li>

Page 11: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Doing stuff with images!• <img src = location of file>

Page 12: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Layout!

<table> <tr > <td></td></tr></table>

Page 13: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Layout!

<table> <tr > <td></td> <td></td> </tr> <tr> <td></td> <td></td></tr></table>

Page 14: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Layout!

<table> <tr colspan = 3> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr></table>

Page 15: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Head and body tag info. Oooh the power.

Page 16: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Commenting and beyond!

<!-- Place the comment here! -->

• Use them when the code gets complicated• When you want others to be able to follow

what you’ve done• When you want to hide secret messages• Whenever

Page 17: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Linkin’

<a href = “whatever.html” target = “_blank”>

Tag attribute attribute

Page 18: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

CSS: The final frontierhttp://www.w3schools.com/Css/css_reference_atoz.asp

The old way:<font size = 36pt color = “blue”><B><h1>Hello</h1></b></font>

The new hotness:H1 {

font-size:36pt; color:blue; font-weight:bold}

<h1>Hello</hello>

Property

Page 19: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

Internal Style Sheets!

• <head><style type="text/css">

body {background-color:yellow;color:white; }

p {color:blue}

</style></head>

Page 20: Being Awesome with HTML A tutorial by Zoe F. HTML: The quick facts What: The most popular markup language existing for webpages Who: Tim Berners-Lee When:

External stylesheets(dun dun duuuuunnnn)