Computer Resource Centre - Piliyandala Education Zone Prince of Wales College, Moratuwa
Computer Resource Centre - Piliyandala Education Zone Prince of Wales College, Moratuwa
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
1
Web Designing and Development
One of the major service of the Internet is World Wide Web. It consists or millions of web sites. Each
web site is having its own web address (URL – Uniform Resource Locator)
Eg.
http://www.google.com
A static web page is one that has been written once, like a word processing document, and then
saved onto the web server. It’s like a file. If you could access the web server at a file system level,
move the file over to your computer, and then open it up locally in your web browser, it should look
exactly the same as if you looked at it through the Internet. Any changes to a static web page need to
be made manually, and then saved again.
A dynamic web page is created on the fly. It doesn’t actually exist on the web server until a web
browser requests it. When a request is made, web server runs whatever program will create the web
page. That program creates the page dynamically and returns it to the web server, which then passes it
along to the web browser.
HTML (Hypertext Markup Language) is used to design web pages. Web Editors such as Microsoft
Front Page, Macromedia Dream Viewer are also used to develop web pages.
Web Browsers are used to brows the web. Eg. Internet Explorer, Nescape Navigator, Opera, Mozilla
Fire fox are examples for web browsers.
HTML programs consist of Markup Tags. It is not a programming language. It’s a markup language.
1. Container Tags
These tags consist in pairs.
Eg. <Html> ...............................</Html>
<Head>................................<Head>
A simple HTML program is showing below. Its output is also shows there.
<Html>
<Head>
My First Web Page X
<Title>My First Web Page</Title>
</Head> Welcome
<Body> Sri Lanka
Welcome <br>
Sri Lanka
</Body>
</Html>
Use the Note Pad software (Start-->All Programs-->Accessories-->Note Pad) to type this HTML
Program and save it by giving file name and “.html”. Eg.
Then go to the Microsoft Internet Explorer or any other web browser and open that file. You can see
the web page if you correctly typed that HTML Code. Now you can do some changes and save the
HTML program again and refresh the Browser.
Within the Head Tags you can type the “Title”, Java Scripts or Cascading Style Sheets
and Meta Tags. <Head> ..... </Head>
Eg.
<Head>
<Title>My First Web Page</Title>
<style type="text/css">
body{background-color:#d0e4fe;}
h1{color:orange;text-align:center;}
</style>
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
3
<script type="text/javascript">
function displayDate()
{document.getElementById("demo").innerHTML=Date();}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords"
content="XML,tutorial,HTML,DHTML,CSS,XSL,XHTML,JavaScript,ASP" />
</Head>
Web Contents such as Text, Pictures, Video Clips, and Sound Clips, Scripts are writing
within Body Tags.
<Body>
Welcome <br>
Sri Lanka
</Body>
You can use colour name or colour number. Colour number is hexadecimal and it consists of 6 digits
starting with #. First two numbers indicating Red colour, Second two numbers indicating Green colour
and last two numbers indicating Blue colour.
Color = “#66CC5F”
#66CC5F
Output
Font Effects
Tags Description
<B>Hello Sri Lanka</B> Boldface
<I> Hello Sri Lanka</I> Italic
<em> Hello Sri Lanka</em> Emphasis
<cite> Hello Sri Lanka</cite> Citation
<U> Hello Sri Lanka</U> Underline
21<SUP>st</SUP> Superscript (21st)
CO<SUB>2</SUB> Subscript (CO2)
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
5
<A Href=”http://www.google.com”>Google</A>
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
6
Hyperlinks to same page
Example
Name Grade
Ravi 11C
Soma 11A
This table has 2
<Table border=”1” width=”30%” bgcolor:”pink”> Columns and 3 Rows.
<Tr><Th>Name</Th><Th>Grade</Th></Tr>
<Tr><Td>Ravi</Td><Td>11C</Td></Tr>
<Tr><Td>Soma</Td><Td>11A</Td></Tr>
</Table>
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
7
Merge Cells
Desktop DeskComputer.jpg
Laptop.jpg
Laptop
If you don’t want to show the borders of
the table, keep the border = 0
<Table border=”1”>
<Tr><Th>Computers</Th><Th>Picture</Th></Tr>
<Tr><Td>Desktop</Td><Td><Img src=”DeskComputer.jpg”></Td></Tr>
<Tr><Td>Laptop</Td><Td><Img src=”Laptop.jpg”></Td></Tr>
</Table> Cell Spacing
……………………..
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
8
Inserting Special Symbols to a web page
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
9
GET POST
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
10
Restrictions on data type Only ASCII characters No restrictions. Binary data is also
allowed allowed
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
11
Inserting a Frame to a Web Page
Frames are used to divide the Browser into several parts and load several html files to each frame.
Divide the Browser into two Rows
<HTML>
<head>
</head>
<frameset rows =”60%, 40%”>
<frame src = “Summary.html”>
<frame src = “Details.html”>
</frameset>
<body>
</body>
</HTML>
Divide the Browser into two Columns
<HTML><head></head>
<frameset cols =”30%, 80%”>
<frame src = “Topics.html”>
<frame src = “Details.html”>
</frameset>
<body></body></HTML>
Lists
Order list
<ol> Output
<li>pencils</li> 1. Pencills
<li>pens</li> 2. Pens
<li>erasers</li> 3. Erasers
</ol>
Output
Unorder list
Cricket
<ul > football
<li>Cricket</li> rugby
<li>football</li>
<li>rugby</li>
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496
12
</ul>
Output
<ul type="circle"> o Cricket
<li>Cricket</li> o football
<li>football</li> o rugby
<li>rugby</li>
</ul>
Definition List
<dl>
<dt>CPU</dt>
<dd>Central processing Unit is the brain of the Computer. Central processing Unit is the brain of the
Computer. Central processing Unit is the brain of the Computer. Central processing Unit is the brain of
the Computer. Central processing Unit is the brain of the Computer. Central processing Unit is the
brain of the Computer. </dd>
<dt>CU</dt>
<dd>Control Unit controls all the parts of the computer. Control Unit controls all the parts of the
computer. Control Unit controls all the parts of the computer. Control Unit controls all the parts of the
computer. Control Unit controls all the parts of the computer. </dd>
</dl>
Output
CPU
Central processing Unit is the brain of the Computer. Central
processing Unit is the brain of the Computer. Central processing
Unit is the brain of the Computer. Central processing Unit is the
brain of the Computer. Central processing Unit is the brain of the
Computer. Central processing Unit is the brain of the Computer.
CU
Control Unit controls all the parts of the computer. Control Unit
controls all the parts of the computer. Control Unit controls all the
parts of the computer. Control Unit controls all the parts of the
computer. Control Unit controls all the parts of the computer.
Piliyandala Zonal Computer Resource Centre, Prince of Walse College, Moratuwa. Tele 2646496