what is html? hypertext markup language – special code used to format text for display on the...

30
What is HTML? Hypertext Markup Language special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about tags 3) Make an “About Me” page in HTML

Upload: marissa-freel

Post on 14-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

What is HTML?Hypertext Markup Language – special

code used to format text for display on the Internet

Today’s Goals1) Introduction to HTML

2) Learn about tags

3) Make an “About Me” page in HTML

Page 2: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

A SIMPLE Web site:

Page 3: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Behind the scenes:<html>

<head><title> This is the title. </title></head>

<body>

<h1> All about Lindsay Cesari </h1>

<h2> My Family </h2><p> This part is a paragraph about my family. </p>

<h2> My Hobbies </h2><p> This part is a paragraph about my family. </p>

<h2> My Job </h2><p> This part is about my job. </p>

</body></html>

1

2

3

4

5

6

7

8

9

10

11

12

13

14

Page 4: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

<html> </html> <head> </head><title> </title><body> </body><h1> </h1><p> </p><h2> </h2>

Common Tags

Page 5: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Your Goal: A website that looks like the one below

Page 6: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Behind the scenes:<html>

<head>

<title> Lindsay Cesari </title>

</head>

<body>

<h1> All about Lindsay Cesari <h1>

<h2> My Family </h2>

<p> I got married in August of 2008, so it's . . . /p>

<h2> My Hobbies </h2>

<p> I have lots of hobbies. I'm a librarian…</p>

<h2> My Job </h2>

<p> I am a school library media specialist at Durgee Junior High School…!</p>

</body>

</html>

Page 7: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

What Stuck?

<p>What is HTML? </p>

<h2> My hobbies.

<p>I love books.</p>

Page 8: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

What’s New?

Page 9: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

<ul> </ul> = unordered list

<li> </il> = item in the list

<strong> </strong> = bold

<em> </em> = italics

<ol> </ol> = ordered list

<li> </il> = item in the list

Page 10: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Your Goals:

1) Add an unordered list

2) Make a word bold

3) Make a word italics

4) Add an ordered list

REMEMBER: Add content BEFORE you add tags

Page 11: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Welcome to Thursday!

Today’s Goals:• Review• Horizontal Lines

and Links• Add to about me page• CSS (Cascading

Style Sheets)

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 12: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

What’s New?

Page 13: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

<hr> </hr>

Page 14: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Nested list:

<ul>

<li> 1 Husband

<ul>

<li> He likes cars </li>

<li> He likes video games </li>

</ul>

</li>

Page 15: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

•<a> </a> tag is used = does nothing by itself

• need to add an href tag with a destination (a Web site)

• <a href=“http://www.google.com”> </a>

•Between the tags, you need to write what you want displayed for your CONTENT

•<a href=“http://www.google.com”> Visit Google! </a>

Page 16: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

<a href="mailto:[email protected]”>Send me an e-mail!</a>

Instead of a URL, you use the word mailto:

followed by your e-mail address

Page 17: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Your Turn!

• Update your About Me page to include:– A horizontal rule– A nested list– An Internet link (or three or four)– A e-mail link

Page 18: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

What Stuck?

<li>What’s the tag for an ordered list?

Difference between:

<em> and <strong>

Page 19: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

CSS: Cascading Style Sheets

CSS lets you control the look of a page. It doesn’t interfere with content, but allows you to quickly and easily change things like color, font, text size, etc.

CSS Zen Garden

Page 20: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

CSS Does All This:

Page 21: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Working with Color

Visit: Color Scheme Designerand/or

Visit: Codes for Web Colors

Then write down the #s for 3 different colors

Page 22: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

New Tags

<head>

<title> Lindsay Cesari </title>

<style type=“text/css”>

</style>

</head>

All style formatting takes place in the heading section of your html coding

Page 23: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Defining the Style

You can define a different style for each element (between the <style> and </style> tags). So

your <body> and <h1> areas will look different.

body {font-size: 1em;font-weight: normal;font-family: comic sans, Sans-serif;color: #000000;text-align: left;}

h1{font-size:1.4em;font-weight:bold;font-family:comic sans, sans-serif;color:#0000ff;text-align:center}

Style definition for the body

Style definition for h1

Page 24: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

CSS Does All This:

Page 25: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Style Components: Vocab

body {font-size: 1em;font-weight: normal;font-family: comic sans, Sans-serif;color: #000000;text-align: left;}

Selector: The HTML element that you’re formatting. Could also be the h1, h2, a, hr, p, ul, ol and li elements

Property: An element of formatting. Ex: font size, font style, color, etc.

Value: The specific format you want.Ex: 1 is the value of the font size, and

Comic Sans is the value of the font family

Page 26: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

So how do I know what properties and values are

available?

body {font-size: 1em;font-weight: normal;font-family: comic sans, Sans-serif;color: #000000;text-align: left;}

You visit: CSS Properties

Page 27: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

How do I figure out colors?Visit: The Webmaster’s Color Lab

Write down the 6 digit color code, and use that as your value.

Page 28: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

Your Goals:

• Add a style sheet to your About Me page– Add properties and values for at least 3

selectors on your page

• Remember you need these new tags in the heading: <style type=“text/css”> and </style>

• Your style formatting goes BETWEEN the style tags.

Page 29: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

REVIEW: What Stuck?

body {font-size: 1em;font-weight: normal;font-family: comic sans, Sans-serif;color: #000000;text-align: left;}

Selector: The HTML element that you’re formatting. Could also be

the <h1> or <h2> element

Property: An element of formatting. Ex: font size, font style, color, etc.

Value: The specific format you want.Ex: 1 is the value of the font size, and

Comic Sans is the value of the font family

Page 30: What is HTML? Hypertext Markup Language – special code used to format text for display on the Internet Today’s Goals 1) Introduction to HTML 2) Learn about

What Stuck?

<p>What is HTML? </p>

<h2> My hobbies.

<p>I love books.</p>