HTML Basics - IML 140

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)

description

Follow along with this slideshow to dip your toes into basic HTML.

Transcript of HTML Basics - IML 140

Page 1: HTML Basics - IML 140

• 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

<html>

</html>

Page 3: HTML Basics - IML 140

<html>

</html>

<head></head><body>

</body>

Page 4: HTML Basics - IML 140

<html>

</html>

<head></head><body>

</body>

commands

page content

Page 5: HTML Basics - IML 140

<head>

</head>

<title> Bodie's page</title>

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

the site (CSS)

Page 6: HTML Basics - IML 140

<body>

</body>

Hello World! (element)

(tag)

Page 7: HTML Basics - IML 140

Create your skeleton...Oops, I mean .html document 

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

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

Page 8: HTML Basics - IML 140

Save document to desktop as index.html 

• Right click and open in Chrome to make sure you did everything correctly

• Right click again and open with TextWrangler to edit

• Keep both TextWranger and Chrome versions open so you can just refresh Chrome when you make changes

Page 9: HTML Basics - IML 140

<body>

</body>

Hello World! (element)

(tag)

get sample text: www.lipsum.com

paste lorem ipsum (element)

Page 10: HTML Basics - IML 140

<body>

</body>

add basic formatting tags

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

<p>Hello World!</p>

Page 11: HTML Basics - IML 140

<body>

</body>

add basic formatting tags

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

<h1>Hello World!</h1>

Page 12: HTML Basics - IML 140

<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

<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

<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

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

add image (both ways!)

 

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

 <img src="file" />

  

Page 17: HTML Basics - IML 140

change image attributes

 

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

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

  

Page 18: HTML Basics - IML 140

wrap text around image by adding "align" attribute

 

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

  

Page 19: HTML Basics - IML 140

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

a link is an attribute

 

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

 </h1>

  

Page 21: HTML Basics - IML 140

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

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