+ All Categories
Home > Documents > Introduction to HTML

Introduction to HTML

Date post: 08-Jan-2016
Category:
Upload: trista
View: 16 times
Download: 0 times
Share this document with a friend
Description:
Introduction to HTML. Vincci Kwong Reference/Instruction Librarian. H yper T ext M arkup L anguage A markup language designed for the creation of web pages and other information viewable in a browser The basic language used to write web pages File extension: .htm, .html. What is HTML?. - PowerPoint PPT Presentation
12
Introduction to HTML Introduction to HTML Vincci Kwong Reference/Instruction Librarian
Transcript
Page 1: Introduction to HTML

Introduction to HTMLIntroduction to HTMLVincci Kwong

Reference/Instruction Librarian

Page 2: Introduction to HTML

What is HTML?What is HTML?

Hyper Text Markup LanguageA markup language designed for the

creation of web pages and other information viewable in a browser

The basic language used to write web pages

File extension: .htm, .html

Page 3: Introduction to HTML

What does an HTML File Look What does an HTML File Look Like?Like?

Page 4: Introduction to HTML

HTML TagsHTML Tags

For example: <b>, <font>,<title>, <p> etc.

Tag usually goes with pair: an open tag (<b>) and an end tag (<\b>)

Single tag: <hr>,<br>Tags are NOT case sensitive

Effect Code Code Used What It Does

Bold B <B>Bold</B> Bold

Italic I <I>Italic</I> Italic

Page 5: Introduction to HTML

HTML Document StructureHTML Document Structure

<html> <head> <title> Page Title Goes Here </title></head>

<body> content goes here </body></html>

Page 6: Introduction to HTML

TextText

Put text on a webpage◦<p>Today is my first day at my new job, I’m so

excited!</p>◦Output: Today is my first day at my new job, I’m

so excited!Put text in center of a page

◦<center>Hello</center>◦Output: Hello

Put text on the right of a page◦<p align=“right”>Hello</p>◦Output: Hello

Page 7: Introduction to HTML

HeadingsHeadings

There are 6 heading commands.

<H1>This is Heading 1</H1>

<H2>This is Heading 2</H2>

<H3>This is Heading 3</H3>

<H4>This is Heading 4</H4>

<H5>This is Heading 5</H5>

<H6>This is Heading 6</H6>

Page 8: Introduction to HTML

ListList

Unordered list◦Code:

<ul> <li>Coffee</li> <li>Milk</li> </ul>

◦Output: Coffee Milk

Ordered list◦ Code:

<ol> <li>Coffee</li> <li>Milk</li> </ol>

◦ Output:1. Coffee2. Milk

Page 9: Introduction to HTML

Create LinksCreate Links

A Hypertext link◦< a href=“http://www.iusb.edu”>IUSB

Home</a>◦Output: IUSB Home

A Email link◦<a href=“mailto:[email protected]”>

Email me</a>◦Output: Email me

Page 10: Introduction to HTML

Inserting ImageInserting Image

Place all images in the same directory/folder where you web pages are

<img src> is a single tag<img src=“image.gif”>

◦Output: Turn an image into a hyerlink

◦<a href=“http://www.iusb.edu”><img src=“image.gif”></a>

◦Output:

Page 11: Introduction to HTML

Creating a HTML FileCreating a HTML File

1. Open Notepad2. Click on File -> Save as…3. In the File name pull-down box, type in

webpage.html4. Click on Save5. Type in content for your file6. Once you finished the content, click on

File -> Save

Page 12: Introduction to HTML

Additional ResourceAdditional Resource

http://www.w3schools.com/html/default.asp


Recommended