14
Introduction to HTML : Hyper Text Markup Language

Introduction to HTML : Hyper Text Markup Language

Embed Size (px)

Citation preview

Page 1: Introduction to HTML : Hyper Text Markup Language

Introduction to HTML :Hyper Text Markup

Language

Page 2: Introduction to HTML : Hyper Text Markup Language

Tips and Tricks

Screen Capture - - Shift / Command / 3 View Source - - From Browser View

Page Source Capture Images From Internet - - Click Know Your Browser!

– Set your own preferences Drop and Drag images into the

browser window

Page 3: Introduction to HTML : Hyper Text Markup Language

Writing HTML

Tags -- <command> <head> <title>Teaching Centers</title> </head> <body bgcolor=#ffffff> Open a word processing file. Enter

the commands (starting with <head>) and save as a TEXT file …. Myfile.html

Page 4: Introduction to HTML : Hyper Text Markup Language

A First Attempt

Open your browser …. You do not need to be connected to the Internet.

Drag the “icon” for your file into the window of your browser. You should see a white background.

Modify the last command to <body bgcolor=“your last name”>

Drag the file into the browser window

Page 5: Introduction to HTML : Hyper Text Markup Language

An Operating Strategy

I recommend that you begin your development without being on the Internet.

Experiment with the following commands. Add the commands, save the file, and drag to your browser window. Make sure that you understand what the commands are doing.

Page 6: Introduction to HTML : Hyper Text Markup Language

COMMANDS

Some turn <on> only– <p> new paragraph– <br> line break

Some turn on <on> and off </on> Try the following: This is my first set of

commands<p> And this is the second<p>

Page 7: Introduction to HTML : Hyper Text Markup Language

<b>BOLD</b> Try <b>HI!</b> <i>ITALICS</i> Try <I>HI!</I> Lists - Add to your file

– <ol> ordered list </ol>– <ol>– <li>Green– <li>Blue– </ol>

Page 8: Introduction to HTML : Hyper Text Markup Language

<ul>Unordered List - Symbols</ul>– <ul>– <li>Green– <li>Red– <li>Blue– </ul>

Try the above - replace <ul> with <ol> and </ul> with </ol> and try again

Page 9: Introduction to HTML : Hyper Text Markup Language

NESTED LISTS

<ol type=A> <li>University Experience <ul><li>University of Mars <li>University of Houston </ul> <li>Company Experience <ul><li>Quaker Oats ……… </ul></ol>

Page 10: Introduction to HTML : Hyper Text Markup Language

IMAGES

Obtain a copy of the image wave.gif Try <img src=“wave.gif”> Try <img border = 1

align=“right”> src=“wave.gif” <center><img src=“wave.gif”>

</center> BE CONSISTENT IN NAMING FILES

– Always use lower case

Page 11: Introduction to HTML : Hyper Text Markup Language

LINKS

Connect to the Internet ……. <a href=“http://www.uh.edu/~jbutler/file. html”><b>Link Name</b></a>– Where http is the protocol– www.uh.edu is the server address– ~jbutler is the directory– file.html is the file name

Add this line to your file.

Page 12: Introduction to HTML : Hyper Text Markup Language

FONTS and COLORS

<font size = +1> … </font size> <font face=“symbol”> … </font

face> <font color=“red”> … </font color> Try the following …... This color is <font

color=“red”><b>red</b></font color> and not <b>black</b>.

Page 13: Introduction to HTML : Hyper Text Markup Language

HEADINGS

<H1>Heading</H1> <H2>Heading</H2> <H3>Heading</H3> <H4>Heading</H4> <H5>Heading</H5> <H6>Heading</H6>

Try these in your file

Page 14: Introduction to HTML : Hyper Text Markup Language