Professional Documents
Culture Documents
To
HTML and JavaScript
Session 1
Session Objectives
Discuss the usage and services provided by Internet
Describe different browsers
Describe the URL
Differentiate between web server, web page and web
site
Discuss Hyper Text Markup Language
Identify the need for Java Scripts
Explain the scope of Java Scripts
Explain various HTML tags
Format text in a HTML document
Change the background colour of a HTML document
Internet and World wide web
Clie
Local internet
nt
Server
s
Server
LAN #1
LAN #2
An internet is a collection of
two or more distinct networks
joined together.
Internet and World wide web [Contd...]
HyperLink
Picture
Text
Internet and world wide web [Contd…]
Browser are of following types:
Request to
Web server
.HTM file – test.htm
<HTML>
….. HTML code
<A HREF=“http://www.indiamp3.com”>
<HTML>
<HEAD>
You can specify background colour by including "BGCOLOR"
attribute in the <BODY> tag.
<BODY BGCOLOR = "#FFFF00">
This will change the background colour of the window to yellow.
<BODY TEXT = "#FF0000" >
</HEAD> <BODY> tag can specify
</HTML> the background color and
text color attributes.
Headings
<HTML>
<HEAD>
</HEAD>
<BODY>
<H1> Heading 1 Text </H1>
<H2> Heading 2 Text</H2>
<H3> Heading 3 Text</H3>
<H4> Heading 4 Text</H4>
<H5> Heading 5 Text</H5>
<H6> Heading 6 Text</H6>
</BODY>
</HTML>
Inserting Images
An Image File can be of Type : GIF, JPEG, BMP
But it is recommended to use images in “GIF” and
“JPEG” formats because they occupy less memory
when compared to “BMP”.
<IMG SRC = “Person.gif”> - this tag will add an
image to the web page.
<HTML>
<HEAD>
</HEAD>
<BODY>
<IMG SRC=“Person.bmp”>This is a person
</BODY>
</HTML>
Inserting Background Images
<HTML>
<HEAD>
</HEAD>
<BODY>
<BODY
BACKGROUND="FOREST.BMP">
</BODY>
</HTML>