HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

23
HTML • World Wide Web Consortium • What does HTML stand for? – www.w3.org – www.w3schools.com – http://Reference.sitepoint.com

description

HTML 5 Doctype All HTML documents should begin with the DOCTYPE tag.

Transcript of HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

Page 1: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML

• World Wide Web Consortium• What does HTML stand for?

– www.w3.org– www.w3schools.com– http://Reference.sitepoint.com

Page 2: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML 5

• Released in 2012• Extends HTML 4 (Backwards Compatible)

• Plays better with smartphones/tablets• New Tags:

<video><audio><canvas>Etc…

Page 3: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML 5 Doctype

• <!DOCTYPE HTML>

• All HTML documents should begin with the DOCTYPE tag.

Page 4: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML Tag Structure

• Tags use brackets

< and >

– Begin tags: <tagname>Text Between

Tags– End Tags: </tagname>

Page 5: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML Document

• HTML Tag• At the top and bottom of every web page.

• Just after the <!DOCTYPE HTML> tag

• Each page needs only one set of HTML tags.

<html>Page Information

</html>

Page 6: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML Header Section

<head><title>This text displays on the browser’s title bar.</title>

</head>

Page 7: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML Body Section

• <body>

Everything that displays on the web page goes here.

• </body>

Page 8: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

Sample Page<html>

<head><title>Stoll’s web page</title>

</head>

<body>This is my content

</body>

</html>

Page 9: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML Tag Structure

• Attributes<tagname attribute1=“value1” attribute2=“value2”>

Text, images, multimedia, etc. go between tags

</tagname>

• Example<body text=“blue” bgcolor=“red”>

Web page stuff

</body>

Page 10: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HyperText Links

HyperText Links

<a href=“http://www.website.com”>Display Text</a>

Page 11: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

Bold Underline and Italics

• Bold Tag– <strong>This text will appear bold</strong>

• Underline Tag– <u>This text will underlined</u>

• Italic Tag (Emphasize)– <em>This text will appear in italics</em>

Page 12: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML

• Headings<h1>…</h1> through <h6>…</h6>Largest to smallest (h1 is largest)

• Line breaks and paragraphs<p></p> (end tag optional)<br /> (no end tag)

Page 13: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML

• <body>most stuff goes here</body>• Attributes:

<body bgcolor="#RRGGBB">

The web page is defined here</body>

• Browsers and white space

Page 14: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML

• Ordered Lists:<ol>

<li>Chevelle</li><li>Cuda</li><li>Shelby</li><li>Camaro</li>

</ol>

Page 15: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML

• Unordered Lists:<ul>

<li>Chevelle</li><li>Cuda</li><li>Shelby</li><li>Camaro</li>

</ul>

Page 16: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML Tables<table width="650" border="2" cellspacing="0"

cellpadding="0">

<tr><td>Mickey Mouse </td><td>87</td><td>4'1''</td>

</tr>

</table>

Page 17: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

Tables<table width="650" border="2" cellspacing="0"

cellpadding="0"> <caption>

This is my test table</caption><tr>

<td>Mickey Mouse </td><td>87</td><td>4'1''</td>

</tr>

</table>

Page 18: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

A Table With Two Rows<table width="650" border="2" cellspacing="0" cellpadding="0">

<tr><td>Mickey Mouse </td><td>87</td><td>4'1''</td>

</tr><tr>

<td>Goofy</td><td>220</td><td>6‘9''</td>

</tr></table>

Page 19: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

Two Row Table Output<tr>

<td>Mickey Mouse </td><td>87</td><td>4'1''</td>

</tr><tr>

<td>Goofy</td><td>220</td><td>6‘9''</td>

</tr>

Page 20: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

HTML Tables<table width="650" border="2" cellspacing="0"

cellpadding="0">

<tr><td>Mickey Mouse </td><td>87</td><td>4'1''</td>

</tr>

</table>

Page 21: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

CSS Vs. HTML Tables

• www.2advanced.com (beautiful - all flash - site)

• www.cssremix.com • www.css-tricks.com (Look at videos 1-20

in order) • Colorzilla - A FireFox addon that allows

you to copy colors directly from web pages.

Page 22: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

Changing the color of links

<body link="#FF3333">

</body>

Page 23: HTML World Wide Web Consortium What does HTML stand for? – – –://Reference.sitepoint.com.

Tips for the Quiz

• Some items on the quiz:– Bold, italic, and underline tags– Hyperlink syntax– Line break tag– Background color– Lists– Tables