LAB Report Web Technology CACS205 BCA 3rd
LAB Report Web Technology CACS205 BCA 3rd
LAB Report Web Technology CACS205 BCA 3rd
Tribhuvan University
Madan Bhandari Memorial College
New-Baneshwor, Kathmandu Nepal
Lab Report on
Submitted By : Submitted To :
Name: Department of BCA
Acknowledgment
Lab Report of Web Technology (CACS 205)
17 | Page
Lab Report of Web Technology (CACS 205)
17 | Page
The sensation and final upshot of this lab project required a lot of guidance and assistance
from many people and we are exceptionally honored to have got this all along the
completion of our lab project. All that we have done is only due to such supervision and
assistance so we would like to express our sincere and earnest gratitude to all individuals
who granted their helping hands to accomplish our project timely and efficiently.
Firstly, we would like to express our sincere gratitude to our lecturer Mr. Milan Raj Nepali for
providing such a splendid opportunity to do the project work in Web Technology and giving
us all support and guidance which made us accomplish the lab project duly. We are
extremely thankful to him for providing such a nice support and guidance. We owe our deep
gratitude to all our classmates and friends who took keen interest on our lab project work
and guided us all along, till the completion of our lab project work by providing all the
necessary information for developing a good system.
We are thankful to and fortunate enough to get constant encouragement, support and
guidance from our senior brothers and sisters which helped us in successfully completing
our lab project work. Also, we would like to extend our sincere esteems to the Department
of Bachelor of Computer Applications (BCA) for granting us such a platform of doing lab
project work. So we would like to express our sincere gratitude to our teachers to provide us
with such a challenging task which would enhance our skills and our knowledge related to
the Web Technology.
Name:
Code No. :
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
Course Overview
In order to make websites look and function a certain way, web developers utilize different
languages. The three core languages that make up the World Wide Web are HTML5, CSS,
and JavaScript. In the IT world, the internet is an essential platform, whether its for
developing or for consumer use. When developing a website, typically three main languages
come into play. These languages are JavaScript, CSS, and HTML. HTML is the backbone of
most webpages. Essentially, it is used to create the structure of how a specific website
would look like, from the headings, to the paragraphs, the body, links, and even images.
This course is intended to teach the basics involved in publishing content on the World Wide
Web. This includes the ‘language of the Web’ – HTML, the fundamentals of how the
Internet and the Web function, a basic understanding of graphic production with a specific
stress on creating graphics for the Web, and a general grounding introduction to more
advanced topics such as programming and scripting. This will also expose students to the
basic tools and applications used in Web publishing. The objective of this lab is to develop
an ability to design and implement static and dynamic website. The courses contain web
basics: Design web pages through coding using HTML and DHTML, Browser side scripting
using JavaScript with a focus on, event handling and validation, server-side scripting: Php
syntax, variables, loops and constructs. Java graphics, Browser side scripting: Introduction to
programming world of xml technologies. Basic xml tags, database handling with php and
xml, connecting to databases using php, and jdbc.
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
LAB PRACTICAL - 1
Objective:
Write an HTML Code to display a simple form for user login with login button.
Brief Description:
HTML is the standard markup language for creating Web pages.
• HTML stands for Hyper Text Markup Language.
• HTML describes the structure of Web pages using markup.
• HTML elements are the building blocks of HTML pages.
• HTML elements are represented by tags.
• HTML tags label pieces of content such as "heading", "paragraph", "table", and so
on.
• Browsers do not display the HTML tags, but use them to render the content of the
page. Basic HTML Tags
• The <!DOCTYPE htmltt declaration defines this document to be HTML5
• The <htmltt element is the root element of an HTML page
• The <headtt element contains Meta information about the document
• The <titlett element specifies a title for the document
• The <bodytt element contains the visible page content
• The <h1tt element defines a large heading
• The <ptt element defines a paragraph
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
1. HTML : Structure
Code:
<!DOCTYPE html>
<html>
<head>
<title>Welcome to my site</title>
</head>
<body>
<h1>This is a Heading</h1
<p>Document content goes here….</P>
</body>
</html>
Output
This is a Heading
Document content goes here….
2. HTML:Bold/Italic/Underline
Code:
<!DOCTYPE html>
<html>
<head>
<title>Mbmc.com</title>
</head>
<body>
<b> Hello</b>
<U> Hello </U>
<i> Hello</i>
</body>
</html>
Output
Hello
Hello
Hello
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
HTML image
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
Output
For Bio-Data: click here
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
Output
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
Text Input
First name:
Last name:
Radio Button
male
female
other
CheckBox
Maths Physics
Submit
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
6. HTML: Table
CODE:
<!doctype html>
<html>
<head>
<title>mbmc.com</title>
</head>
<style>
table,th,td{
border-collapse: collapse;
</style>
<body>
<table>
<tr>
<th><b>Board</b></th>
<th><b>School/College Name</b></th>
<th><b>Year graduate</b></th>
</tr>
<tr ALIGN="CENTER">
<td>SEE</td>
<td>2073</td>
</tr>
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
<tr ALIGN="CENTER">
<td>+2 level</td>
<td>2075</td>
</tr>
<tr ALIGN="CENTER">
<td>Bachelor</td>
<td>Running</td>
</tr>
</table>
</body>
</html>
Output
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
Output
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
<br>
<input type="submit" value="Login">
</form>
</body>
</html>
Output
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
LAB PRACTICAL - 2
[2] To display a Unordered List : With Default List Type, With
Square List Type, With Circle List Type and with none List Type
<!DOCTYPE html>
<html>
<head><title> Unorder list</title>
</head>
<body>
<h1>Unordered list</h1>
<hti>with default list type</hti>
<ul>
<li>System Analyis and Design</li>
<li>Data Structure and Design</li>
<li>Web Technology</li>
<li>OOP in java</li>
<li>Probability & Stastics </li>
</ul>
<hti>with square list type</hti>
<ul type="Square">
<li>System Analyis and Design</li>
<li>Data Structure and Design</li>
<li>Web Technology</li>
<li>OOP in Java</li>
<li>Probability & Stastics </li>
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
</ul>
<hti>with circle list type</hti>
<ul type="circle">
<li>System Analyis and Design</li>
<li>Data Structure and Design</li>
<li>web Technology</li>
<li>OOP in Java</li>
<li>Probability & Stastics </li>
</ul>
<hti>with any list type</hti>
<ul type="none">
<li>System Analyis and Design</li>
<li>Data Structure and Design</li>
<li>Web Technology</li>
<li>OOP in Java</li>
<li>Probability & Stastics </li>
</ul>
</body>
</html>
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
OUTPUT:
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
LAB PRACTICAL - 3
[3] Write the following programs.
1. Write a program to develop drop down menu.
Code:
<!DOCTYPE html>
<html>
<head>
<title>mbmc.com</title>
</head>
<body>
</select>
</body>
</html>
Output
Lab Report of Web Technology (CACS205)
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
Output
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
Output
LAB PRACTICAL - ti
[ti] Process to Register a domain :
Lab Report of Web Technology (CACS205)
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
ti. If the domain name you searched for is available then a pop up message
shows that the name is available and click register now.
5. Enter on register now then you need to sign in your Google account as
shown in the figure or if you don’t have account then create one by clicking
on Create User button.
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
6. After signing in your account a pop up message shows to check your email
to activate your account.
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
LAB PRACTICAL - 5
[5] CSS (Cascading Style Sheet)
CSS(Cascading Style Sheet) describes the HTML elements which are displayed on
screen,paper, or in other media. It saves a lot of time. It controls the layout of multiple
web pages atone time. It sets the font-size, font-family, color, background color on the
page.
It allows us to add effects or animations to the website. We use CSS to display
animationslike buttons, effects, loaders or spinners, and also animated backgrounds.
Without using CSS, the website will not look attractive. There are 3 types of CSS which
arebelow:
1. Internal CSS
The internal CSS has <style> tag in the <head> section of the HTML document.
ThisCSS style is an effective way to style single pages. Using the CSS style for multiple
webpages is time consuming because we require placing the style on each web page.We
can use the internal CSS by using the following steps:
i) First open the HTML page and locate the <head>
ii) Put the following code after the <head>
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
2. External CSS
In external CSS, we link the web pages to the external .css file. It is created by text
editor. The CSS is more efficient method for styling a website. By
editingthe .css file,we can change the whole site at once.
To use the external CSS, follow the steps, given below:
i) Create a new .css file with text editor, and add CSS rules too.
For example:
.xleftcol {
float: right;
width: 35%;
background:#608800;
}
.xmiddlecol {
float: right;
width: 35%;
background:#eff3df;
ii) Add a reference to the external .cssfile right after <title> tag in
the <head> section of HTML sheet:
• We use the same .css file for multiple web pages in external CSS.
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
3. Inline CSS
Inline CSS is used to style a specific HTML element. Add a style attribute to each
HTML tag without using the selectors. Managing a website may difficult if we use
only inline CSS. However, Inline CSS in HTML is useful in some situations. We
have not access the CSS files or to apply styles to element.
In the following example, we have used the inline CSSin <p>and <h1>&tag.
<!DOCTYPE html>
<html>
<body style="background-color:white;">
<h1 style="color:Red;padding:20px;">CSS tutorials</h1>
<p style="color:blue;">It will be useful here.</p>
</body>
</html>
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
<body>
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
<h1><imgsrc="fordlogo.jpg"height="80"width="150">
<center>Ford Mustang</center></h1>
<h2><center>INFO </h2></center>
<a href="index.html">Home</a>  & nbsp
<a href="Gallery.html">Gallery</a>  & nbsp
<a href="Specfication.html">Specification </a>  & nbsp
<a href="Contact.html">Contact me</a>
<p1><b>As one of Americafis best-known sports cars, the Ford Mustang brings power to the
people. From its introduction in 196tf, the Mustang has provided RWD thrills and available
V-8 muscle at relatively affordable prices. When the current generation arrived in 2015, an
independent rear suspension allowed it to become more refined and capable </b></p1>
<br><iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!
1d3532.6ti76920861933!2d85.327ti5716501518!3d27.6972817827960ti3!2m3!1f0!2f0!3f0!
3m2!1i102ti!2i768!tif13.1!3m3!1m2!1s0x39eb19a36tibb5935%3A0xfti0bticf2c78cfti8a!
2sAnamnagar%2C%20Kathmandu%20titi600!5e0!3m2!1sen!2snp!tiv162ti2ti0808253!5m2!
1sen!2snp" width="350" height="300" style="border:0;" allow fullscreen=""
loading="lazy"></iframe>
<iframe width="350" height="300"
src="https://www.youtube.com/embed/wQA68Oqr1qE" title="YouTube video player"
frame border="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media;
gyroscope; picture-in-picture" allow fullscreen></iframe>
<br><center><p2>copyright 2021 Ford mustang</p2></center>
</body>
</html>
17 | Page
Lab Report of Web Technology (CACS205)
17 | Page
OUTPUT :