SlideShare a Scribd company logo
Intro to HTML
Web Technologies
What the following term mean:
Web server: a system on the internet containing
one or more web site
Web site: a collection of one or more web pages
Web pages: single disk file with a single file name
Home pages: first page in website
Think about the followings before working
your Web pages.
Think about the sort of information(content) you
want to put on the Web.
Set the goals for the Web site.
Organize your content into main topics.
Come up with a general structure for pages and
topics.
HTML
short for hypertext markup language
• Hyper is the opposite of linear. HTML does
not hold to the old linear pattern but allows
the person viewing the Web page to go
anywhere, any time
• Text is what you will use
• Mark up is what you will do
• Language it's a language, really -- but the
language is plain English
Writing HTML
by hand
– using tools such as NotePad on Windows
– OS X users can use TextEdit on the Mac
using an HTML assistant program
– easier than by hand
– but harder to understand HTML because
the program does all work
HTML documents
must be text only
when you save an HTML document, you
must save only the text, nothing else.
HTML browsers can only read text
– They don't understand anything else
Learning from others
look at others’ Web pages
When you find a page you like, click on VIEW
at the top of the screen
Choose DOCUMENT SOURCE from the menu.
Sometimes it only reads SOURCE.
The HTML document will appear on the
screen.
It may look like chicken-scratch but later
you'll be able to find exactly how a certain
HTML presentation was performed
HTML annotations
Web page authors may write notes or
describe what is happening within the
HTML document
– these notes show in the HTML source, not
the Web page display
– they write their notes in the following
format:
<!– notes of actions-->
Naming HTML documents
Basic format--name and suffix
Follow this format to name your document:
– Choose a name. Anything.
– Add a suffix. For all HTML documents, you will add
either ".htm" or ".html".
Name the file anything you want
– Tree followed by .html so the file name is
tree.html.
.html tells the computer that this file is an
HTML document
All files used on the Web will follow the
format of "name.suffix."
Basic HTML anatomy
HTML works in a very simple, very
logical, format
reads from top to bottom, left to right
HTML is written with TEXT
Tags are used to set certain sections
apart and to specify their format (as
bigger text, smaller text, bold
text, underlined text)
Basic HTML anatomy--tags
tags are like commands
To make a line of text bold put a tag at
the exact point you want the bold
lettering to start and another tag where
you want the bold lettering to stop
To make a word italic place a start italic
tag at the beginning of the word and an
end italic tag at the end of the word
Basic HTML anatomy--tags
All tag formats are the same
– They begin with a less-than sign: < and end with
a greater-than sign: >
– What goes inside the < and > is the tag
– Learning HTML is learning the tag to perform
whatever command you want to do
The tag for bold lettering is "B". Here's what
the tags look like to turn the word "Sam"
bold: <B>Sam</B>
Basic HTML anatomy--tags
What happened “behind the scenes”
– <B> is the beginning bold tag
– "Sam" is the word being affected by the
<B> tag
– </B> is the end bold tag. Notice it is
exactly the same as the beginning tag
except there is a slash in front of the tag
command
– what the bold tags above produce in a
Web browser: Sam
Basic HTML quick points
The end tag is simply the begin tag with the
added slash <A> </A>
Not all tags will show up on a page, because
the commands are placed inside the < and >
marks
– the tag is used to alter the text, but unless you
view the page source the code is hidden from
view.
The command inside the <> does not have
to be a capital letter; the browser doesn’t
care
– for ease when coding keep the tag in caps
More HTML quick points
not everything on a web page needs to have
tags
if you want to format the text with italics or
underlines or bold, or if you want to center
text, etc., you will need to use tags
if you forget to add an end tag it will be
obvious when you view the document in your
browser
– the entire document after the point where you
forget the end tag will be affected
– to fix, go back into the document, add the slash,
save, and then reload
More HTML quick points
two tags can affect text at the same time
– make sure to begin and end both
– <B><I>Bold and Italic</I></B> gives you Bold
and Italic
when using more than one tag:
– set the beginning and end tags at the same time
– always placing them on the farthest end of the
item being affected
– note above that the Bold tags are on the far ends,
with the Italics next
– set commands at the farthest ends each time you
add them
And the last HTML quick points
start every page with this tag: <HTML>
– next tags will always be these: <TITLE>
and </TITLE>
– whatever is between these two tags will
show up in the title bar way at the top of
the browser
end every page you write with this tag:
<HTML>
– you started the page with HTML and you
will end the page with /HTML
17
Basic HTML Document Format
<HTML>
<HEAD>
<TITLE>WENT'99</TITLE>
</HEAD>
<BODY>
Went'99
</BODY>
</HTML>
See what it
looks like:
HTML Document Structure
<html>
<head>
<title> Page Title Goes Here </title>
</head>
<body>
content goes here
</body>
</html>
Headings
Heading commands are used to create
headings
– there are six (6) heading commands: <H1>
through <H6>
– <H1> is the largest and <H6> is the smallest
– heading commands create nice, bold text with a
simple H# and /H# command
When using a heading command you set the
text alone
– the heading commands carry a pseudo <P>
command with them
– other text cannot sit right up against a heading
Headings
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>
Text
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
Aligning text
Default alignment is left-justified
To center text you surround the text you
want centered with simple <CENTER> and
</CENTER> commands:
<CENTER> All text in here will be
centered </CENTER>
To align text on the right, set the text aside
as a separate paragraph using the <P>
command plus an attribute:
<P ALIGN="right">Text in the paragraph is
pushed to the right</P>.
Font size
heading commands great for the top of
the page
get a little more control over your text
size via the <FONT SIZE> commands
– there are twelve (12) font size commands
available: +6 through +1 and -1 through
-6
– +6 is the largest (it's huge); -6 is the
smallest (it's a little too small)
Font
To change text size
– <font size=“+3”>Hello</font>
– Output: Hello
To change text color
– <font color=“red”>Hello</font>
– Output: Hello
Using both
– <font size=“+3” color=“red”>Hello</font>
– Output: Hello
Tag attribute
Background
Bgcolor
Specifies a background-color
for a HTML page.
<body bgcolor="#000000">
<body
bgcolor="rgb(0,0,0)">
<body bgcolor="black">
Background
Specifies a background-
image for a HTML page
<body
background="clouds.gif">
<body
background="http://www.
w3schools.com/clouds.gif
">
Background Sample
<html>
<head>
<title> Title of the document </title>
</head>
<body bgcolor=“blue”>
<font color=“white”>This is the content of the
document.</font>
</body>
</html>
Lists
Unordered list (UL)
with list items (LI)
<UL>
<LI>Item</LI>
<LI>Item</LI>
</UL>
Ordered list (OL)
<OL>
<LI>Item 1</LI>
<LI>Item 2</LI>
</OL>
Lists (cont)
<P>Languages:</P>
<UL>
<LI>RPG</LI>
<LI>COBOL</LI>
<LI>Java</LI>
</UL>
Links
links to another page are a set tag format
<A HREF="http://URL of the web page">text
you want to display on the web page</A>
• A stands for Anchor. It begins the link to another
page.
• HREF stands for Hypertext REFerence. That says
to the browser, "This is where the link is going to
go."
• URL of the web site is the FULL ADDRESS of the
link. Also notice that the address has an equal
sign in front of it and is enclosed in
quotes, because it's an attribute of the Anchor
tag, a command inside of a command
Creating a link, cont.
"text you want to display on the web
page" is where you write the text you
want to appear on the page
What is in that space will appear on the
page for the viewer to click--write
something that denotes the link.
/A ends the entire link command.
Links – Target attribute
Example:
<a href=“http://www.google.com/”
target=“_blank”>Search the Web</a>
The target attribute specifies where to open
the linked document.
“_blank” will open in a new browser
window/tab.
Adding an e-mail link
known as mailto: commands
follows the same coding scheme as a link
places wording on the screen that people can
click to send you a piece of e-mail
pattern is:
<A HREF="mailto:e-mail
address">text to display</A>
same format as a link except you write "mailto:"
in place of the “http://” and your e-mail address
in place of the page address
– still need the </A> tag at the end
– note there is NO SPACE between the colon and the e-
mail address
Images
format for placing an image:
<IMG SRC="filename.gif">
<IMG SRC=“Full URL”>
• IMG stands for "image" and tells the browser that
an image will go here on the page wherever you
write in the image tag
• SRC stands for "source" and this is an attribute, a
command inside a command, that tells the
browser where to go to find the image
• filename.gif is the name of the image, and this
file name follows the same format as HTML docs
• name (of the image file) then a dot
• then there is a suffix (gif) or .jpg or .bmp
Image info
place image files in the same directory as the
page
– you can call for the image by name alone
– otherwise you'll have to start adding directories
and sub-directories to the SRC attribute
– some place all their images in an image directory;
that can cut down on the confusion
be consistent on where you locate images or
else the image won’t display
Image file types
three basic image formats on the Web and
they have different suffixes
– .gif This is generally pronounced "gif" (hard "G"),
an acronym for Graphics Interchange Format that
browsers can handle quite easily
– .jpeg or .jpg (pronounced "j-peg") an acronym
for Joint Photographic Experts Group, and this
format uses compression after it's been created
– .bmp (pronounced "bimp") or a "bitmap."
Internet Explorer browsers allow images as
bitmaps (images a computer produces and places
for you, such as a counter)
Clickable images
An image where if you click on it you
activate a hypertext link to another web
page
The format is:
<A HREF="http://URL of the web
page"><IMG SRC="filename.gif"></A>
Places an image tag where normally
there would be words
entire image is “clickable,” or active
Image attributes
use the “alt” attribute to provide alternate
text to display when you hover over any
image
alternate text is especially important for
users:
– browsing with a text-only browser
– that cannot see and are using audible readers with
their browser to surf the web
format is <alt=brief description of image>
and follows after the IMG SRC tag:
<IMG SRC="UpArrow.gif" ALT="Up">
Image attributes
Modifying size of image: WIDTH &
HEIGHT
Some images will be too big if you do not
modify.
Some images that are small will get
distorted if you make them too big
Ex. <IMG SRC=“lions.jpg” width=“200”
height=“100”>
Image attributes
Modifying space around image: VSPACE
& HSPACE
Creates an invisible border.
Test values to get desired space.
Ex. <IMG SRC=“lions.jpg” hspace=“20”>
Tables
Very useful for presentation of tabular
information
Tables are defined with the <table> tag.
A table is divided into rows (with the <tr>
tag), and each row is divided into data cells
(with the <td> tag). td stands for "table
data," and holds the content of a data cell. A
<td> tag can contain
text, links, images, lists, forms, other
tables, etc.
Table format (example)
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2
Table attributes (border)
The border attribute specifies the width of the
borders around a table.
The border attribute applies a border to each cell,
and around the table. If the value of the border
attribute is changed, only the size of the border
around the table will change. The border inside the
table will be 1 pixel.
Tip: Set border="0" to display tables with no
borders.
<table border=“value”>
To change color of border <table border=“value”
bordercolor=“color”>
Table Headers
Header information in a table are defined
with the <th> tag.
All major browsers will display the text in
the <th> element as bold and centered.
Header 1 Header 2
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2
Table Headers Example
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
Relative Links
Multiple Web Pages
Never begins with a forward slash
Specify a path that is relative to the
page that the link is on.
If the destination page is in the
same directory as the source page
All you need to specify is the source
file name:
<a href="page1.html">Go To Page 1</a>
Relative Links (cont.)
If the destination page is in a folder
inside the source page's folder
Specify the folder name and then the
file name:
If the destination page is in a folder
outside the source page's folder
Use the special instruction ../ which
signifies "one directory higher".
<a href="directory2/page2.html">Go To Page 2</a>
<a href="../directory3/page3.html">Go To Page 3</a>
<a href="../../index.html">Go To The Index Page</a>
Frames
Several Web pages can be displayed in the
same browser window.
Divide the screen into separate windows.
Each of these windows can contain a
HTML document.
Each HTML document is called a frame,
and each frame is independent of the others.
Frameset
A file that specifies how the screen is
divided into frames.
If you want to make a homepage that uses
frames you should:
– make an HTML document with the frameset
– make the normal HTML documents that should
be loaded into each of these frames.
Individual frames are defined inside it.
Frameset (cont.)
Frameset cols=“#%, *” – The width that
each frame will have.
Frame src=“webpage” – The URL of the
web page to load into the frame.
Frameset rows=“#%, *” – To add a banner
Frameset
HTML
Creating a Frameset
To create the columns
<frameset cols=“120,*”
</frameset>
Or
<frameset cols=“15%, 85%”>
</frameset>
Default Pages
Pages that will be loaded when the frameset
is opened the first time.
Add names to each frame window using the
name setting.
This will allow you to make a link in one
frame window and open it in another frame
window.
Borders
Resizable Windows
If you don’t want the frame windows to be
resizable, you should add the parameter
“noresize” to the frame src line.
Scrollbars
Lets say you don’t want a scroll bar in the
menu window.
Furthermore the main should have a
scrollbar if needed.
Links Within
If you have an HTML document with a hyperlink on the
text “Analysis” for instance, that links to a page called
“analysis.html then it appears in the document as:
Now if the link was in the menu window of our example,
and we wanted it to load a page in the main window, the
HTML code would be:

More Related Content

What's hot

HTML By K.Sasidhar
HTML By K.SasidharHTML By K.Sasidhar
HTML By K.Sasidhar
Sasidhar Kothuru
 
Html basics
Html basicsHtml basics
Html basics
Vjay Vijju
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
BG Java EE Course
 
HTML
HTMLHTML
Html 1
Html 1Html 1
Html 1
Anmol Pant
 
HTML Advanced
HTML AdvancedHTML Advanced
HTML Advanced
c525600
 
Notes4
Notes4Notes4
HTML Intermediate
HTML IntermediateHTML Intermediate
HTML Intermediate
c525600
 
Web pageassignment
Web pageassignmentWeb pageassignment
Web pageassignment
beachtch
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
vardanyan99
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
yht4ever
 
Html Tutorial
Html TutorialHtml Tutorial
Html Tutorial
Md. Muhibbullah Muhib
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desain
faizibra
 
Basic Html for beginners.
Basic Html for beginners.Basic Html for beginners.
Basic Html for beginners.
Muhammad Shafique
 
HTML
HTMLHTML
HTML
HTMLHTML
The Complete HTML
The Complete HTMLThe Complete HTML
The Complete HTML
Rohit Buddabathina
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
McSoftsis
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
adelaticleanu
 
Links - IntraPage
Links - IntraPageLinks - IntraPage
Links - IntraPage
nikkeisaurus
 

What's hot (20)

HTML By K.Sasidhar
HTML By K.SasidharHTML By K.Sasidhar
HTML By K.Sasidhar
 
Html basics
Html basicsHtml basics
Html basics
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
HTML
HTMLHTML
HTML
 
Html 1
Html 1Html 1
Html 1
 
HTML Advanced
HTML AdvancedHTML Advanced
HTML Advanced
 
Notes4
Notes4Notes4
Notes4
 
HTML Intermediate
HTML IntermediateHTML Intermediate
HTML Intermediate
 
Web pageassignment
Web pageassignmentWeb pageassignment
Web pageassignment
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html Tutorial
Html TutorialHtml Tutorial
Html Tutorial
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desain
 
Basic Html for beginners.
Basic Html for beginners.Basic Html for beginners.
Basic Html for beginners.
 
HTML
HTMLHTML
HTML
 
HTML
HTMLHTML
HTML
 
The Complete HTML
The Complete HTMLThe Complete HTML
The Complete HTML
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
Links - IntraPage
Links - IntraPageLinks - IntraPage
Links - IntraPage
 

Viewers also liked

Mobile operating systems
Mobile operating systemsMobile operating systems
Mobile operating systems
Veronica Alejandro
 
Visual troubleshooting
Visual troubleshootingVisual troubleshooting
Visual troubleshooting
Veronica Alejandro
 
Online safety
Online safetyOnline safety
Online safety
Veronica Alejandro
 
Windows operating systems
Windows operating systemsWindows operating systems
Windows operating systems
Veronica Alejandro
 
Web admin
Web adminWeb admin
The osi model
The osi modelThe osi model
The osi model
Veronica Alejandro
 
Windows 7 install
Windows 7 installWindows 7 install
Windows 7 install
Veronica Alejandro
 
Ram
RamRam
Optical drives
Optical drivesOptical drives
Optical drives
Veronica Alejandro
 
Cyberbullying
CyberbullyingCyberbullying
Cyberbullying
Veronica Alejandro
 
Windows Utilities
Windows UtilitiesWindows Utilities
Windows Utilities
Veronica Alejandro
 
Expansion cards
Expansion cardsExpansion cards
Expansion cards
Veronica Alejandro
 
Solid state drives
Solid state drivesSolid state drives
Solid state drives
Veronica Alejandro
 
Windows xp install
Windows xp installWindows xp install
Windows xp install
Veronica Alejandro
 

Viewers also liked (14)

Mobile operating systems
Mobile operating systemsMobile operating systems
Mobile operating systems
 
Visual troubleshooting
Visual troubleshootingVisual troubleshooting
Visual troubleshooting
 
Online safety
Online safetyOnline safety
Online safety
 
Windows operating systems
Windows operating systemsWindows operating systems
Windows operating systems
 
Web admin
Web adminWeb admin
Web admin
 
The osi model
The osi modelThe osi model
The osi model
 
Windows 7 install
Windows 7 installWindows 7 install
Windows 7 install
 
Ram
RamRam
Ram
 
Optical drives
Optical drivesOptical drives
Optical drives
 
Cyberbullying
CyberbullyingCyberbullying
Cyberbullying
 
Windows Utilities
Windows UtilitiesWindows Utilities
Windows Utilities
 
Expansion cards
Expansion cardsExpansion cards
Expansion cards
 
Solid state drives
Solid state drivesSolid state drives
Solid state drives
 
Windows xp install
Windows xp installWindows xp install
Windows xp install
 

Similar to Html basics

Html tutorials
Html tutorialsHtml tutorials
Html tutorials
Html tutorialsHtml tutorials
Html1
Html1Html1
Html1
learnt
 
Html
HtmlHtml
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREWeb Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
Hameda Hurmat
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Shehzad Yaqoob
 
Html update1(30 8-2009)
Html update1(30 8-2009)Html update1(30 8-2009)
Html update1(30 8-2009)
himankgupta31
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
AAFREEN SHAIKH
 
belajar HTML
belajar HTML belajar HTML
Session ii(html)
Session ii(html)Session ii(html)
Session ii(html)
Shrijan Tiwari
 
Web Design Basics
Web Design BasicsWeb Design Basics
Web Design Basics
Cindy Royal
 
Slides 2 - HTML
Slides 2 - HTMLSlides 2 - HTML
Slides 2 - HTML
Massimo Callisto
 
HTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docxHTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docx
adampcarr67227
 
GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1
Heather Rock
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
Manoj kumar Deswal
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdf
AshleyJovelClavecill
 
BASIC HTML PROGRAMMING
BASIC HTML PROGRAMMINGBASIC HTML PROGRAMMING
BASIC HTML PROGRAMMING
Gautham Rajesh
 
Html
HtmlHtml

Similar to Html basics (20)

Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Html1
Html1Html1
Html1
 
Html
HtmlHtml
Html
 
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREWeb Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html update1(30 8-2009)
Html update1(30 8-2009)Html update1(30 8-2009)
Html update1(30 8-2009)
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
 
belajar HTML
belajar HTML belajar HTML
belajar HTML
 
Session ii(html)
Session ii(html)Session ii(html)
Session ii(html)
 
Web Design Basics
Web Design BasicsWeb Design Basics
Web Design Basics
 
Slides 2 - HTML
Slides 2 - HTMLSlides 2 - HTML
Slides 2 - HTML
 
HTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docxHTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docx
 
GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdf
 
BASIC HTML PROGRAMMING
BASIC HTML PROGRAMMINGBASIC HTML PROGRAMMING
BASIC HTML PROGRAMMING
 
Html
HtmlHtml
Html
 

More from Veronica Alejandro

The basics of windows
The basics of windowsThe basics of windows
The basics of windows
Veronica Alejandro
 
Control Panel
Control PanelControl Panel
Control Panel
Veronica Alejandro
 
Motherboard components
Motherboard componentsMotherboard components
Motherboard components
Veronica Alejandro
 
Input output devices
Input output devicesInput output devices
Input output devices
Veronica Alejandro
 
How laser printers work
How laser printers workHow laser printers work
How laser printers work
Veronica Alejandro
 
Hard Drives
Hard DrivesHard Drives
Hard Drives
Veronica Alejandro
 
CPU
CPUCPU
Computer Ports
Computer PortsComputer Ports
Computer Ports
Veronica Alejandro
 
Computer Hardware Review
Computer Hardware ReviewComputer Hardware Review
Computer Hardware Review
Veronica Alejandro
 
Building A Computer
Building A ComputerBuilding A Computer
Building A Computer
Veronica Alejandro
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
Veronica Alejandro
 

More from Veronica Alejandro (11)

The basics of windows
The basics of windowsThe basics of windows
The basics of windows
 
Control Panel
Control PanelControl Panel
Control Panel
 
Motherboard components
Motherboard componentsMotherboard components
Motherboard components
 
Input output devices
Input output devicesInput output devices
Input output devices
 
How laser printers work
How laser printers workHow laser printers work
How laser printers work
 
Hard Drives
Hard DrivesHard Drives
Hard Drives
 
CPU
CPUCPU
CPU
 
Computer Ports
Computer PortsComputer Ports
Computer Ports
 
Computer Hardware Review
Computer Hardware ReviewComputer Hardware Review
Computer Hardware Review
 
Building A Computer
Building A ComputerBuilding A Computer
Building A Computer
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
 

Recently uploaded

Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 

Recently uploaded (20)

Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 

Html basics

  • 1. Intro to HTML Web Technologies
  • 2. What the following term mean: Web server: a system on the internet containing one or more web site Web site: a collection of one or more web pages Web pages: single disk file with a single file name Home pages: first page in website Think about the followings before working your Web pages. Think about the sort of information(content) you want to put on the Web. Set the goals for the Web site. Organize your content into main topics. Come up with a general structure for pages and topics.
  • 3. HTML short for hypertext markup language • Hyper is the opposite of linear. HTML does not hold to the old linear pattern but allows the person viewing the Web page to go anywhere, any time • Text is what you will use • Mark up is what you will do • Language it's a language, really -- but the language is plain English
  • 4. Writing HTML by hand – using tools such as NotePad on Windows – OS X users can use TextEdit on the Mac using an HTML assistant program – easier than by hand – but harder to understand HTML because the program does all work
  • 5. HTML documents must be text only when you save an HTML document, you must save only the text, nothing else. HTML browsers can only read text – They don't understand anything else
  • 6. Learning from others look at others’ Web pages When you find a page you like, click on VIEW at the top of the screen Choose DOCUMENT SOURCE from the menu. Sometimes it only reads SOURCE. The HTML document will appear on the screen. It may look like chicken-scratch but later you'll be able to find exactly how a certain HTML presentation was performed
  • 7. HTML annotations Web page authors may write notes or describe what is happening within the HTML document – these notes show in the HTML source, not the Web page display – they write their notes in the following format: <!– notes of actions-->
  • 8. Naming HTML documents Basic format--name and suffix Follow this format to name your document: – Choose a name. Anything. – Add a suffix. For all HTML documents, you will add either ".htm" or ".html". Name the file anything you want – Tree followed by .html so the file name is tree.html. .html tells the computer that this file is an HTML document All files used on the Web will follow the format of "name.suffix."
  • 9. Basic HTML anatomy HTML works in a very simple, very logical, format reads from top to bottom, left to right HTML is written with TEXT Tags are used to set certain sections apart and to specify their format (as bigger text, smaller text, bold text, underlined text)
  • 10. Basic HTML anatomy--tags tags are like commands To make a line of text bold put a tag at the exact point you want the bold lettering to start and another tag where you want the bold lettering to stop To make a word italic place a start italic tag at the beginning of the word and an end italic tag at the end of the word
  • 11. Basic HTML anatomy--tags All tag formats are the same – They begin with a less-than sign: < and end with a greater-than sign: > – What goes inside the < and > is the tag – Learning HTML is learning the tag to perform whatever command you want to do The tag for bold lettering is "B". Here's what the tags look like to turn the word "Sam" bold: <B>Sam</B>
  • 12. Basic HTML anatomy--tags What happened “behind the scenes” – <B> is the beginning bold tag – "Sam" is the word being affected by the <B> tag – </B> is the end bold tag. Notice it is exactly the same as the beginning tag except there is a slash in front of the tag command – what the bold tags above produce in a Web browser: Sam
  • 13. Basic HTML quick points The end tag is simply the begin tag with the added slash <A> </A> Not all tags will show up on a page, because the commands are placed inside the < and > marks – the tag is used to alter the text, but unless you view the page source the code is hidden from view. The command inside the <> does not have to be a capital letter; the browser doesn’t care – for ease when coding keep the tag in caps
  • 14. More HTML quick points not everything on a web page needs to have tags if you want to format the text with italics or underlines or bold, or if you want to center text, etc., you will need to use tags if you forget to add an end tag it will be obvious when you view the document in your browser – the entire document after the point where you forget the end tag will be affected – to fix, go back into the document, add the slash, save, and then reload
  • 15. More HTML quick points two tags can affect text at the same time – make sure to begin and end both – <B><I>Bold and Italic</I></B> gives you Bold and Italic when using more than one tag: – set the beginning and end tags at the same time – always placing them on the farthest end of the item being affected – note above that the Bold tags are on the far ends, with the Italics next – set commands at the farthest ends each time you add them
  • 16. And the last HTML quick points start every page with this tag: <HTML> – next tags will always be these: <TITLE> and </TITLE> – whatever is between these two tags will show up in the title bar way at the top of the browser end every page you write with this tag: <HTML> – you started the page with HTML and you will end the page with /HTML
  • 17. 17 Basic HTML Document Format <HTML> <HEAD> <TITLE>WENT'99</TITLE> </HEAD> <BODY> Went'99 </BODY> </HTML> See what it looks like:
  • 18. HTML Document Structure <html> <head> <title> Page Title Goes Here </title> </head> <body> content goes here </body> </html>
  • 19. Headings Heading commands are used to create headings – there are six (6) heading commands: <H1> through <H6> – <H1> is the largest and <H6> is the smallest – heading commands create nice, bold text with a simple H# and /H# command When using a heading command you set the text alone – the heading commands carry a pseudo <P> command with them – other text cannot sit right up against a heading
  • 20. Headings 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>
  • 21. Text 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
  • 22. Aligning text Default alignment is left-justified To center text you surround the text you want centered with simple <CENTER> and </CENTER> commands: <CENTER> All text in here will be centered </CENTER> To align text on the right, set the text aside as a separate paragraph using the <P> command plus an attribute: <P ALIGN="right">Text in the paragraph is pushed to the right</P>.
  • 23. Font size heading commands great for the top of the page get a little more control over your text size via the <FONT SIZE> commands – there are twelve (12) font size commands available: +6 through +1 and -1 through -6 – +6 is the largest (it's huge); -6 is the smallest (it's a little too small)
  • 24. Font To change text size – <font size=“+3”>Hello</font> – Output: Hello To change text color – <font color=“red”>Hello</font> – Output: Hello Using both – <font size=“+3” color=“red”>Hello</font> – Output: Hello Tag attribute
  • 25. Background Bgcolor Specifies a background-color for a HTML page. <body bgcolor="#000000"> <body bgcolor="rgb(0,0,0)"> <body bgcolor="black"> Background Specifies a background- image for a HTML page <body background="clouds.gif"> <body background="http://www. w3schools.com/clouds.gif ">
  • 26. Background Sample <html> <head> <title> Title of the document </title> </head> <body bgcolor=“blue”> <font color=“white”>This is the content of the document.</font> </body> </html>
  • 27.
  • 28. Lists Unordered list (UL) with list items (LI) <UL> <LI>Item</LI> <LI>Item</LI> </UL> Ordered list (OL) <OL> <LI>Item 1</LI> <LI>Item 2</LI> </OL>
  • 30. Links links to another page are a set tag format <A HREF="http://URL of the web page">text you want to display on the web page</A> • A stands for Anchor. It begins the link to another page. • HREF stands for Hypertext REFerence. That says to the browser, "This is where the link is going to go." • URL of the web site is the FULL ADDRESS of the link. Also notice that the address has an equal sign in front of it and is enclosed in quotes, because it's an attribute of the Anchor tag, a command inside of a command
  • 31. Creating a link, cont. "text you want to display on the web page" is where you write the text you want to appear on the page What is in that space will appear on the page for the viewer to click--write something that denotes the link. /A ends the entire link command.
  • 32. Links – Target attribute Example: <a href=“http://www.google.com/” target=“_blank”>Search the Web</a> The target attribute specifies where to open the linked document. “_blank” will open in a new browser window/tab.
  • 33. Adding an e-mail link known as mailto: commands follows the same coding scheme as a link places wording on the screen that people can click to send you a piece of e-mail pattern is: <A HREF="mailto:e-mail address">text to display</A> same format as a link except you write "mailto:" in place of the “http://” and your e-mail address in place of the page address – still need the </A> tag at the end – note there is NO SPACE between the colon and the e- mail address
  • 34. Images format for placing an image: <IMG SRC="filename.gif"> <IMG SRC=“Full URL”> • IMG stands for "image" and tells the browser that an image will go here on the page wherever you write in the image tag • SRC stands for "source" and this is an attribute, a command inside a command, that tells the browser where to go to find the image • filename.gif is the name of the image, and this file name follows the same format as HTML docs • name (of the image file) then a dot • then there is a suffix (gif) or .jpg or .bmp
  • 35. Image info place image files in the same directory as the page – you can call for the image by name alone – otherwise you'll have to start adding directories and sub-directories to the SRC attribute – some place all their images in an image directory; that can cut down on the confusion be consistent on where you locate images or else the image won’t display
  • 36. Image file types three basic image formats on the Web and they have different suffixes – .gif This is generally pronounced "gif" (hard "G"), an acronym for Graphics Interchange Format that browsers can handle quite easily – .jpeg or .jpg (pronounced "j-peg") an acronym for Joint Photographic Experts Group, and this format uses compression after it's been created – .bmp (pronounced "bimp") or a "bitmap." Internet Explorer browsers allow images as bitmaps (images a computer produces and places for you, such as a counter)
  • 37. Clickable images An image where if you click on it you activate a hypertext link to another web page The format is: <A HREF="http://URL of the web page"><IMG SRC="filename.gif"></A> Places an image tag where normally there would be words entire image is “clickable,” or active
  • 38. Image attributes use the “alt” attribute to provide alternate text to display when you hover over any image alternate text is especially important for users: – browsing with a text-only browser – that cannot see and are using audible readers with their browser to surf the web format is <alt=brief description of image> and follows after the IMG SRC tag: <IMG SRC="UpArrow.gif" ALT="Up">
  • 39. Image attributes Modifying size of image: WIDTH & HEIGHT Some images will be too big if you do not modify. Some images that are small will get distorted if you make them too big Ex. <IMG SRC=“lions.jpg” width=“200” height=“100”>
  • 40. Image attributes Modifying space around image: VSPACE & HSPACE Creates an invisible border. Test values to get desired space. Ex. <IMG SRC=“lions.jpg” hspace=“20”>
  • 41. Tables Very useful for presentation of tabular information Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links, images, lists, forms, other tables, etc.
  • 42. Table format (example) <table border="1"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2
  • 43. Table attributes (border) The border attribute specifies the width of the borders around a table. The border attribute applies a border to each cell, and around the table. If the value of the border attribute is changed, only the size of the border around the table will change. The border inside the table will be 1 pixel. Tip: Set border="0" to display tables with no borders. <table border=“value”> To change color of border <table border=“value” bordercolor=“color”>
  • 44. Table Headers Header information in a table are defined with the <th> tag. All major browsers will display the text in the <th> element as bold and centered. Header 1 Header 2 row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2
  • 45. Table Headers Example <table border="1"> <tr> <th>Header 1</th> <th>Header 2</th> </tr> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table>
  • 46. Relative Links Multiple Web Pages Never begins with a forward slash Specify a path that is relative to the page that the link is on. If the destination page is in the same directory as the source page All you need to specify is the source file name: <a href="page1.html">Go To Page 1</a>
  • 47. Relative Links (cont.) If the destination page is in a folder inside the source page's folder Specify the folder name and then the file name: If the destination page is in a folder outside the source page's folder Use the special instruction ../ which signifies "one directory higher". <a href="directory2/page2.html">Go To Page 2</a> <a href="../directory3/page3.html">Go To Page 3</a> <a href="../../index.html">Go To The Index Page</a>
  • 48. Frames Several Web pages can be displayed in the same browser window. Divide the screen into separate windows. Each of these windows can contain a HTML document. Each HTML document is called a frame, and each frame is independent of the others.
  • 49. Frameset A file that specifies how the screen is divided into frames. If you want to make a homepage that uses frames you should: – make an HTML document with the frameset – make the normal HTML documents that should be loaded into each of these frames. Individual frames are defined inside it.
  • 50. Frameset (cont.) Frameset cols=“#%, *” – The width that each frame will have. Frame src=“webpage” – The URL of the web page to load into the frame. Frameset rows=“#%, *” – To add a banner
  • 52. Creating a Frameset To create the columns <frameset cols=“120,*” </frameset> Or <frameset cols=“15%, 85%”> </frameset>
  • 53. Default Pages Pages that will be loaded when the frameset is opened the first time. Add names to each frame window using the name setting. This will allow you to make a link in one frame window and open it in another frame window.
  • 54.
  • 56. Resizable Windows If you don’t want the frame windows to be resizable, you should add the parameter “noresize” to the frame src line.
  • 57. Scrollbars Lets say you don’t want a scroll bar in the menu window. Furthermore the main should have a scrollbar if needed.
  • 58. Links Within If you have an HTML document with a hyperlink on the text “Analysis” for instance, that links to a page called “analysis.html then it appears in the document as: Now if the link was in the menu window of our example, and we wanted it to load a page in the main window, the HTML code would be: