html basics iml 140 (weeks 2-3)

22
get an image onto your desktop rename the image in simple terms! find an image URL (should end in .jpg or some image file type)

Upload: evan-hughes

Post on 16-Jan-2015

5.208 views

Category:

Education


1 download

DESCRIPTION

This PowerPoint is a basic overview of HTML elements and attributes. At the end of the lesson your will create a simple website with three pages.

TRANSCRIPT

Page 1: Html basics IML 140 (weeks 2-3)

• get an image onto your desktop• rename the image in simple terms! • find an image URL (should end in .jpg or some

image file type)

Page 2: Html basics IML 140 (weeks 2-3)

<html>

</html>

Page 3: Html basics IML 140 (weeks 2-3)

<html>

</html>

<head></head>

<body></body>

Page 4: Html basics IML 140 (weeks 2-3)

<html>

</html>

<head></head>

<body></body>

commands

page content

Page 5: Html basics IML 140 (weeks 2-3)

<head>

</head>

<title> Evan's page</title>

links to other non html documents that change the look or function of

the site

Page 6: Html basics IML 140 (weeks 2-3)

<body>

</body>

Hello World! (element)

(tag)

Page 7: Html basics IML 140 (weeks 2-3)

Create sandwich...Oops, I mean .html document 

<html>     <head>        <title>        Evan's Site        </title>    </head>

<body>Hello World!</body> </html>

Page 8: Html basics IML 140 (weeks 2-3)

Save document as index.txt 

• File>export• Send to desktop and name index.txt• Once saved on desktop click and rename txt

suffix to .html• Right click and open in Firefox to make sure

you did everything correctly• Right click again and open with

TextWrangler to edit• Keep both TextWranger and Firefox

versions open so you can just refresh Firefox when you make changes

Page 9: Html basics IML 140 (weeks 2-3)

<body>

</body>

Hello World! (element)

(tag)

get sample text: www.lipsum.com

paste lorem ipsum (element)

Page 10: Html basics IML 140 (weeks 2-3)

<body>

</body>

add basic formatting tags

      lorem ipsum <p>lorem ipsum</p>       lorem ipsum

<p>Hello World!</p>

Page 11: Html basics IML 140 (weeks 2-3)

<body>

</body>

add basic formatting tags

      lorem ipsum <p>lorem ipsum</p>       lorem ipsum

<h1>Hello World!</h1>

Page 12: Html basics IML 140 (weeks 2-3)

<body>

</body>

create an unordered list

    lorem ipsum <p>lorem ipsum</p>       lorem ipsum

<h1>Hello World!</h1>

<ul><li>home</li><li>about</li><li>contact</li></ul>

Page 13: Html basics IML 140 (weeks 2-3)

<body bgcolor="#cccccc">

</body>

add attribute to modify element

      lorem ipsum <p>lorem ipsum</p>       lorem ipsum

<h1>Hello World!</h1>

Page 14: Html basics IML 140 (weeks 2-3)

<body bgcolor="#cccccc">

</body>

add font tag with attributes

   <font face="arial" color="#ffffff">

<ul><li>home</li><li>about</li><li>contact</li></ul>

   </font>

Page 15: Html basics IML 140 (weeks 2-3)

use attribute to remove bullets

<ul style="list-style: none"><li>home</li><li>about</li><li>contact</li></ul>

Page 16: Html basics IML 140 (weeks 2-3)

add image (both ways!)

 

<img src="http:url.jpg" />

 <img src="file" />

  

Page 17: Html basics IML 140 (weeks 2-3)

change image attributes

 

<img src="http:url.jpg" />

 <img src="file" height="200" width="200" />

  

Page 18: Html basics IML 140 (weeks 2-3)

wrap text around image by adding "align" attribute

 

 <img src="file" height="200" width="200" align="left"/>

  

Page 19: Html basics IML 140 (weeks 2-3)

add margins to make  "style" attribute

   

 <img src="file" height="200" width="200" align="left"

style="margin: 10px 10px 0px 0px" />

  

top-right-bottom-left

Page 20: Html basics IML 140 (weeks 2-3)

a link is an attribute

 

<h1> Hello<a href="http:www.usc.edu"> USC!</a>

 </h1>

  

Page 21: Html basics IML 140 (weeks 2-3)

wrap links with <a> tags

 

<a href="index.html">Home</a><a href="about.html">About</a>

<a href="contact.html">Contact</a>

 

  

Page 22: Html basics IML 140 (weeks 2-3)

create new pages 

• right click and copy page• paste new page onto desktop• rename new page about.html• change some basic colors of page• do this again, but name contact.html