HTML Lesson 3

6
HTML

Transcript of HTML Lesson 3

Page 1: HTML Lesson 3

HTML

Page 2: HTML Lesson 3

What you’ll learn today

• Link to a different page of your site• Link to a different web sites• More about attributes and elements• Using photoshop to scale images• Link to a picture• Thumbnails (small picture links to a big

picture)• Email link

Page 3: HTML Lesson 3

Links to a different web pagein your site

• Make another page using notepad: page2.html

• Here’s how to connect (link) your pages together–On page1.html type the following tag

• <a href=“page2.html”> Click here for the next page </a>

Words that show up asA link on the pageThe link tag

The page to jump to

Page 4: HTML Lesson 3

Link to a different web site (like google)

• On your web page in notepad type:• < a href=“http://www.google.com”> Click here for google </a>

• What’s the difference between this and a link to another page in your site?

Words that show up asa link on the pageThe link tag

The site to jump to

Page 5: HTML Lesson 3

Attributes and Elements

• Attributes• extra bits of information inside a tag.

– <img src=“name picture“ / >– <body bgcolor=“red” >– <a href=“page2.html”> I’m a link </a>

• Elements– Another name for the begin and end tag and everything in

between– Everything that is in-between and includes the <body> and

</body> tags is the body element. – <title> and </title> are tags, BUT <title>Rumple Stiltskin</title> is

a title element.

Page 6: HTML Lesson 3

Some other useful links you might want to make

• Links to a picture(click on words and open a picture)– < a href=“picture.jpg”> Click here to see my picture </a>

• Thumbnail (click on small pic to open big pic)– < a href=“BigPicture.jpg”> <img src = “SmallPic.jgp” />

</a>

• Email Links– < a href=“mailto:[email protected]”> Email me </a>