2 Intro To HTML (Short Version)
2 Intro To HTML (Short Version)
HTML
1
Agenda
Introduction
I.Page creation and Editing (p.8)
II.Headings, Paragraphs, & Breaks (p.27)
III.Character formatting (p.35)
IV.Lists (p.42)
V.Anchors, URLs and Images (p.54)
VI.Tables(Not Required in Digital Marketing
Course) p.63
VII.Frames(Not Required in Digital Marketing
Course) p.79
2
Definitions
WWW – World Wide Web.
HTML – HyperText Markup Language – the
Language of Web Pages on the World Wide Web.
HTML is a text formatting language.
URL – Uniform Resource Locator.
Browser – A software program which is used to
show web pages.
Pages end with “.htm” or “.html”
HTML Editor – A word processor that has been
specialized to make the writing of HTML documents
more effortless. 3
Tags
4
1. Page
Creation &
Editing
5
HTML Page Creation & Editing
Objectives
Upon completing this section, you should
be able to
8
Creating a Basic Starting
Document
10
16 Basic Colors
11
LINK, VLINK, and ALINK
<BODY BACKGROUND=“hi.gif”
BGCOLOR=“#FFFFFF”></BODY
13
II. Headings,
Paragraphs, & Breaks
14
Headings, Paragraphs, Breaks
& Horizontal Rules
16
Headings, <Hx> </Hx>
<HTML>
<HEAD>
<TITLE> Example
Page</TITLE>
</HEAD> Heading 1
<BODY>
<H1> Heading 1 </H1> Heading 2
<H2> Heading 2 </H2> Heading 3
<H3> Heading 3 </H3>
Heading 4
<H4> Heading 4 </H4>
Heading 5
<H5> Heading 5 </H5>
Heading 6
<H6> Heading 6 </H6>
</BODY>
</HTML>
17
Paragraphs, <P> </P>
18
Paragraphs, <P> </P>
<HTML><HEAD>
<TITLE> Example Page</TITLE>
Heading 1
</HEAD> Paragraph 1,….
<BODY><H1> Heading 1 </H1>
<P> Paragraph 1, ….</P>
Heading 2
Paragraph 2,….
<H2> Heading 2 </H2>
<P> Paragraph 2, ….</P> Heading 3
<H3> Heading 3 </H3> Paragraph 3,….
<P> Paragraph 3, ….</P>
Heading 4
<H4> Heading 4 </H4>
Paragraph 4,….
<P> Paragraph 4, ….</P>
<H5> Heading 5 </H5> Heading 5
<P> Paragraph 5, ….</P> Paragraph 5,….
<H6> Heading 6</H6> Heading 6
<P> Paragraph 6, ….</P> Paragraph 6,….
</BODY></HTML>
19
Break, <BR>
Line breaks allow you to decide where the
text will break on a line or continue to the
end of the window.
A <BR> is an empty Element, meaning that
it may contain attributes, but it does not
contain content.
The <BR> element does not have a closing
tag.
20
Break, <BR>
<HTML>
<HEAD>
<TITLE> Example
Page</TITLE>
</HEAD>
Heading
<BODY>
<H1> Heading 1 </H1>
1
<P>Paragraph 1, <BR>
Paragraph 1,….
Line 2 <BR> Line 3 Line 2
<BR>….
Line 3
</P>
</BODY>
….
</HTML>
21
IV. Lists
22
Lists
Objectives
23
List Elements
HTML supplies several list elements.
Most list elements are composed of
one or more
<LI> (List Item) elements.
UL : Unordered List. Items in this list
start with a list mark such as a bullet.
Browsers will usually change the list
mark in nested lists.
<UL>
List item …
<LI> List item …</LI>
List item …
<LI> List item …</LI>
</UL>
24
List Elements
You have the choice of three bullet types:
disc(default), circle, square.
These are controlled in Netscape Navigator by
the “TYPE” attribute for the <UL> element.
<UL TYPE=“square”>
<LI> List item …</LI> List item …
<LI> List item …</LI> List item …
List item …
<LI> List item …</LI>
</UL>
25
List Elements
OL: Ordered List. Items in this list are numbered
automatically by the browser.
<OL>
<LI> List item …</LI>
1. List item …
<LI> List item …</LI> 2. List item …
<LI> List item …</LI> 3. List item …
</OL>
26
List Elements
27
List Elements
You can specify a starting number for an
ordered list.
29
Images
In this section you will learn about images and how to place
images in your pages and about Uniform Resource Locator,
and how to add them as Anchor or Links inside your web
pages.
Objectives
Upon completing this section, you should be able to
Add images to your pages
Insert links into documents
Define Link Types
Define URL
List some commonly used URLs
Plan an Image Map
30
Images
31
Images Attributes
Width (WIDTH): is the width of the image in
pixels.
Height (HEIGHT): is the height of the image in
pixels.
Border (BORDER): is for a border around the
image, specified in pixels.
HSPACE: is for Horizontal Space on both sides of
the image specified in pixels. A setting of 5 will
put 5 pixels of invisible space on both sides of
the image.
VSPACE: is for Vertical Space on top and bottom
of the image specified in pixels. A setting of 5
will put 5 pixels of invisible space above and
bellow the image. 32
Some Examples on
images
1) <IMG SRC=“jordan.gif“ border=4>
2) <IMG SRC=" jordan.gif" width="60"
height="60">
3) <IMG SRC=“jordan.gif" ALT="This is a
text that goes with the image">
4) <IMG SRC=" jordan.gif “ Hspace="30"
Vspace="10" border=20>
5) < IMG SRC =" jordan.gif“ align="left">
blast blast blast blast blast
33
HOW TO MAKE A LINK
1) The tags used to produce links are the <A> and </A>.
2) The <A> tells where the link should start
3) The </A> indicates where the link ends.
4) Everything between these two will work as a link.
The example below shows how to make the
word
Here work as a link to yahoo.
Click <A
HREF="http://www.yahoo.com">here</A>
to go to yahoo.
34
Click here to go to yahoo.