0% found this document useful (0 votes)
46 views65 pages

Web Technology BCA

This document is a lab report on Web Technology submitted by Aayush Maharjan to Er. Gyanandra P. Yadav at Swoyambhu International College. It includes various HTML and XML tasks, PHP coding exercises, and file handling operations, with each task accompanied by source code and expected output. The report covers topics such as HTML attributes, lists, tables, forms, CSS styling, XML schemas, and PHP database interactions.

Uploaded by

Aayush Mhrz'n
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views65 pages

Web Technology BCA

This document is a lab report on Web Technology submitted by Aayush Maharjan to Er. Gyanandra P. Yadav at Swoyambhu International College. It includes various HTML and XML tasks, PHP coding exercises, and file handling operations, with each task accompanied by source code and expected output. The report covers topics such as HTML attributes, lists, tables, forms, CSS styling, XML schemas, and PHP database interactions.

Uploaded by

Aayush Mhrz'n
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 65

SWOYAMBHU INTL.

COLLEGE
Lagankhel, Lalitpur
Tribhuvan University

Lab report on
Web Technology

Submitted by: Submitted to:


Aayush Maharjan Er. Gyanandra P. Yadav
Level: BCA Swoyambhu International
Year/Semester: 3rd College
1. Display HTML: attributes
Source code:-

Output:-
2. Display HTML: List tags
Source code:-

Output: -
3. Display HTML: Formatting tags
Source code: -

Output: -
4. Display HTML: table representing a weekly routine.
Ensure the 'Break' cell spans three rows.
Source code:-

Output: -
5. Create an HTML table with the following columns:
'Student Name', 'Roll number', 'Class', 'Date of birth',
and 'Gender'.
Source code:-

Output:-
6. Display HTML: hyperlink
Source code: -

Output:-
7. Display HTML: table representing a student mark sheet. Ensure that the
"Name" cell spans two columns to accommodate both the first name
and last name of the student, and the "Marks" cell spans two columns to
include both internal and external marks.
Source code:-

Output:-
8. Display HTML: Weekly timetable showing hours, subjects for each day,
and lunch breaks.
Source code: -

Output: -
9. is play HTML: Form for database entry with fields for first name,
middle name, last name, user ID, password, email, gender, subjects,
description, dropdown selection, and file upload, along with a submit
button.

Source code:-

Output:-
10. Display HTML: Nava bar with HTML and CSS styling,
featuring links for Home, About, Service, Feedback, and
Contact.
Source code:-

Output: -
11. Display HTML: Simple webpage displaying various text
styles, including headers with different colors, bold and
italic text, and a paragraph with a green background,
each styled using CSS.
Source code:-

Output:-
12. Display HTML: Page with two headings styled
differently using CSS classes: one in green color with
Times New Roman font and the other in red color with
Monotype Corsiva font.
Source code: -

Output:-
13. Display HTML: Webpage with a yellow rectangular box
centered on the page, containing two headings styled
with different fonts and colors.
Source code: -

Output: -
14. Display HTML: Inline CSS
Source code:-

Output:-
15. Display HTML: Internal CSS
Source code:-

Output:-
16. Display HTML: External CSS
Source code: -

CSS: -

Output: -
17. Display HTML: Page featuring div elements styled with
a common style and a specific class, along with
paragraphs styled differently using CSS classes.
Source code:-

Output: -
18. Display XML: Record of four students including their
names, roll numbers, and subject scores.
Source code:-

Output: -
19.Display HTML: Basic webpage structure with a header,
navigation bar, content section, and footer, each
enclosed in div elements styled with CSS classes.
Source code: - CSS: -

Output: -
20.Display HTML: Webpage structure with a header, two
main content boxes arranged in a row (box-1 and box-
l),where box-l contains three sub-boxes (box-2, box-3,
andbox-4), and a footer, each styled using CSS classes.
Source code: -
CSS:-

Output: -
21. Display HTML: Page with two headings styled using an
external CSS file named "style1.css" that applies box
model styles.
Source code:- CSS:-

Output: -
22. Display XML: Employee information including name
(first name and last name), contact details (mobile
andlandline), and address details (city, tole, and zip
code).
Source code: -

Output:
23. Display XML: Employee information including first
name, last name, contact number, email, and
addressdetails such as city, tole, and zip code.
Source code: -

Output: -
24. Display XML: XML Schema
Source code: -
XML file: - XSD file: -

Output: - Output: -
25. Display XML: internal DTD
Source code:-

Output: -
26. Display XML: External DTD
Source code: -
XML file: - DTD file: -

Output: -
27. Display XML:X PATH (1)
Source code: -

`
Output: -
/bookstore/book[1]

/bookstore/book[2]
28. Display XML: XML DOM.
Source code: -

Output: -
29. Display XML: Namespace
Source code: -

Output: -
30. Display XML: Dataset featuring student details
transformed into an HTML table using XSLT,
presentingcolumns for first name, last name, and
nickname.
Source code: -
XML file: -

XSL file: - Output: -


31. Display XML: Employee records transformed into an
HTML table using XSLT. The table includes columns
forID, name, salary, and age, with rows filtered to
Isplayonly those with a salary exceeding 20000.
Source code: -
XML file: -
XSL file: -

Output: -
32. Display the employee records in an HTML table format
using XSLT. The table should include columns for ID,
firstname, last name, salary, email, and a range
indicating whether the salary is high, medium, or low
based on thefollowing criteria:
i. Salary greater than 55,000 is considered high.
ii. Salary greater than 45,000 is considered medium.
iii. Otherwise, it's considered low.
Source code: -
XML file: -
XSL file: -

Output: -
33. Write a PHP code to determine whether a
givennumber is an Armstrong number or not.
Source code: - Output: -

34. write a PHP code to calculate the factorial of a given


number.
Source code: - Output: -
35. write a PHP code to generate the Fibonacci series up to
a given number of terms.
Source code:-

Output: -

36. write a PHP code to determine whether a given


number is a palindrome or not
Source code: - Output: -
37. write a PHP function to determine whether a given
number is a prime number or not.
Source code: - Output: -

38. write a PHP code to reverse a given number.


Source code: - Output: -
39. PHP: -pattern 1
Source code: - Output: -

40. PHP: -pattern 2


Source code: - Output: -

41. PHP: -pattern 3


Source code: - Output: -
42. write PHP code to establish a connection to a MySQL
database and check if the connection was successful.
Source code: -

Output: -
43. write PHP code to establish a connection to a MySQL
database server, create a new database named
"school", and then verify if the database creation was
successful.
Source code: -

Output: - Result: -

`
44. Write PHP code to connect to a MySQL database
server, select a specific database, create a new
tablewithin that database, and then confirm if the
table creation was successful or not?
Source code: -

Output: - Result: -
45. write PHP code to connect to a MySQL database
server, select a specific database, and insert data into
atable within that database.
Source code: -

Output: - Result: -
46. write PHP code to connect to a MySQL database
server, specify a database, and then update a
recordfrom a table within that database.
Source code: -

Output: - Result: -
47. write PHP code to connect to a MySQL database
server, specify a database, and then Isplay a record
from a table within that database.
Source code: -

Output: -
48. write PHP code to connect to a MySQL database
server, specify a database, and then delete a
recordfrom a table within that database.
Source code: -

Output: - Result: -
49. PHP File Handling: - Isplay.
Source code: - Output: -

50. PHP File Handling:- Copy.


Source code: - Output: -

Result: -
51. PHP File Handling: - Rename.
Source code: - Output: -

Result: -
Before After

52. PHP File Handling: - Delete


Source code: - Output: -
53. PHP File Handling: - creating a directory
Source code: - Output: -

Result: -

54. PHP File Handling: - Remove a directory.


Source code: - Output: -
55. PHP File Handling: - checking file Size and Type.
Source code: - Output: -

56. PHP File Handling: - read only 10 character.


Source code: -

Output: -
57. PHP File Handling: - fgets() function to read the
contents of a text file.
Source code: - Output: -

58. PHP File Handling: - fgetc() function to read the


contents of a text file.
Source code: - Output: -
59. PHP File Handling: - PHP code, which opens
"readme.txt" for both reading and writing, adds a
newline of text, and then closes the file.
Source code: - Output: -

Result: -

60. PHP File Handling: - PHP code, which opens


"readme.txt" in write mode, writes "paragraph 1"
intoit, and then closes the file.
Source code: - Output: -

Result: -
61. PHP File Handling: - PHP code, which opens
"readme.txt" in append mode, writes "here is the
newline for me", and then closes the file.
Source code: -

Output: -

Result: -
62. PHP Cookies: -Create
Source code: -

Output: -
63. PHP Cookies: -Read.
Source code: - Output: -

64. PHP Cookies: -update.


Source code: -

Output: -
65. PHP Cookies:-Delete.
Source code: -

Output: -
66. PHP SESSION: -Create and Read.
Source code: -

Output: -
67. PHP SESSION: -Update.
Source code: - Output: -

68. PHP SESSION:-Delete.


Source code: - Output: -
69. Design an HTML form with JavaScript validation for user
login using server side script.
Source code: -
HTML:-
PHP: -
Output: -

Result: -
70.Design an HTML form with JavaScript validation for
user registration.
Source code: -
Output: -

You might also like