Web Design EX
Web Design EX
Web Design EX
EX NO: 1
04-07-2023
BASIC HTML TAGS
AIM:
To create simple webpage with basic HTML tags.
ALGORITHM:
Step 1: open notepad.
Step 2: Start the program with HTML tags like < HTML>, <HEAD>, <title>, < Body > etc...
Step 3: <style> tags can be added inside head tag to give various properties like background colour.
Step 4: Use <h1> to <h6> tags for various headings.
Step 5: To add paragraph ,use <p> tag.
Step 6: Save the file as html file and run the program in the browser.
CODE:
<!DOCTYPE html>
<html>
<head>
<title>Simple HTML Program</title>
<style>body{ background-color: powderblue ; }</style>
</head>
<body>
<h1>Welcome to my website</h1>
<h2>About me</h2>
<p>Hello , My name is john. I'm a web developer passionate about creating amazing websites.</p>
<h2>My skills</h2>
<p>HTML,CSS,JavaScript</p>
<h3>My Projects</h3>
<p>Personal Portfolio,E-Commerce Website,Blog Websit</p>
<h2>Contact Me</h2>
<p>You can reach me at [email protected]</p>
OUTPUT:
RESULT:
The above html code was executed successfully.
EX NO: 2
11-07-2023
ORDERED AND UNORDERED LIST
AIM:
To create webpage using html with ordered and unordered list tags.
ALGORITHM:
Step 1: Open Notepad
Step 2: Create a program with tags like < html>, <body >, <p>, ‹head>, < title> etc..
Step 3: Create heading with <h1> to <H6> tags.
Step 4: To create unordered list , use <ul> tag with <li> tag to get list as bulletin , symbol etc...
step 5: To create ordered list , use <ol> tag with < li> tag to get list with numbers, alphabets etc...
Step b: Save the file as html file and run the program in the browser.
CODE:
<!DOCTYPE html>
<html>
<head>
<title>Company Details</title>
</head>
<body>
<h1>Company Details</h1>
<h2>About us</h2>
<p>The details of the company</p>
<h2>Our Services</h2>
<ul>
<li>Web Development</li>
<li>Mob App Development</li>
<li>UI / UX Design</li>
<li>Digital Marketing</li>
</ul>
<h2>Our Team</h2>
<ul>
OUTPUT:
RESULT:
The above html code was executed successfully.
EX NO: 3
19-07-2023
TABLE CREATIONS USING HTML
AIM:
To create webpage using html for class time table using table tags.
ALGORITHM:
Step I: open Notepad.
Step 2: Create page with <html>, <head >, <title>, <body > tags.
step 3: <table > tag can be used to create table, <tr> tag for table row, <th> tag for table heading, <td› tag
for table data.
Step 4: Save the file as html file and run the program in the browser.
CODE:
<DOCTYPE html>
<html>
<head>
<style>body{background colour:#DAF7A6;}</style>
</head>
<body>
<h1 align="center"> Sri Krishna Arts & Science College </h1>
<h1>Class:III B.com CA-B</h1>
<h1 align="center"> TIMETABLE</h1>
<table border="5" cellingpacing="0" align="center">
<tr>
<th align="center" height="50" width="100"> <br>
<b>day/period</b></th>
<th align="center" height="50" width="100"> <br>
<b>9:30-10:20</b></th>
<th align="center" height="50" width="100"> <br>
<b>10:20-11:10</b></th>
<th align="center" height="50" width="100"> <br>
<b>11:10-12:00</b></th>
OUTPUT:
RESULT:
The above html code was executed successfully.
EX NO: 4
20-07-2023
MULTIMEDIA USING HTML
AIM:
To create webpage using html with multimedia contents like image and video.
ALGORITHM:
Step 1: Open Notepad
Step 2: Create a program with tags like < html>, <body >, <p>, ‹head>, < title> etc..
Step 3: Insert image with <img> tag and we can specify the position and measurement of the image
Step 4: Insert video with <video> tag and we can specify the position and measurement of the video with
attributes like autoplay controls etc..
Step 5: Use <marquee> tag.
Step 6: Save the file as html file and run the program in the browser.
CODE:
<!DOCTYPE html>
<html>
<head>
<title>Multimedia</title>
</head>
<body align="center">
<h1>Multimedia Content</h1>
<h2>Video</h2>
<video src="D:\21BCO319\sample-5s.mp4" width="320" height="240" autoplay controls loop></video>
<br>
<h2>Image</h2>
<img src="D:\21BCO319\SKASC.png" width="400" height="200">
</body>
</html>
OUTPUT:
RESULT:
The above html code was executed successfully.
EX NO: 5
03-08-2023
WEBPAGE USING FRAMES , FORMS & CONTROLS
AIM:
To create html webpage with forms.
ALGORITHM:
Step 1: Open Notepad
Step 2: Create a program with tags like < html>, <body >, <p>, ‹head>, < title> etc..
Step 3: Create a separate html webpage for each frames using different tags like <form>, <label>,
<input>.
Step 4: Create a final webpage linking all the frames with <frame set> tag.
Step 5: Save the file as html file and run the program in the browser.
CODE:
Frame 0
<!DOCTYPE html>
<html>
<head>
<title> HTML Frames</title>
</head>
<body>
<h1>Registration Form</h1>
</body>
</html>
Frame 1
<!DOCTYPE html>
<html>
<head>
<title>HTML Frames</title>
</head>
OUTPUT:
RESULT:
The above html code was executed successfully.
EX NO: 6
11-08-2023
INTERNAL & EXTERNAL CASCADING
AIM:
To create webpage using html with internal and external cascading.
ALGORITHM:
Step 1: Open Notepad
Step 2: Create a file specifying the required styles and save it as css file.
Step 3: Create a program with tags like < html>, <body >, <p>, ‹head>, < title> etc..
Step 4: Call the css file using <link> tag, external cascading.
Step 5: Use <style> tag in the program for internal cascading.
Step 6: Save the file as html file and run the program in the browser.
CODE:
<!DOCTYPE html>
<html>
<head>
<link rel=”stylesheet” href=”style.css”>
<style> p { color:red; padding:60px ;} </style>
</head>
<body>
<h1 align="center"> Introduction on EVS </h1>
<p> This is an academic discipline that focuses on the study of the environment, including its natural
processes, ecosystems, and the impact of human activities on the environment. It covers topics such as
ecology, conservation, pollution, and sustainability. </p>
</body>
</html>
style.css
body{background-color:lightblue},
h1{color:navy;margin-left:20ptx}
OUTPUT:
RESULT:
The above html code was executed successfully.
EX NO: 7
21-08-2023
FORM VALIDATION
AIM:
To create webpage using html for feedback form with validation.
ALGORITHM:
Step 1: Open Notepad
Step 2: Create a program with tags like < html>, <body >, <p>, ‹head>, < title> etc..
Step 3: Create form with <form> tags like <label> , <input> and their attributes.
Step 4: Validate the form using <script> tag and create function for validation.
Step 5: Call the validation function.
Step 6: Save the file as html file and run the program in the browser.
CODE:
<!DOCTYPE html>
<html>
<head>
<title>Feedback Form</title>
<style>
body {
background-color: #8deeee;
font-family: times-new-roman, sans-serif;
margin: 20px;
}
form {
max-width: 600px;
margin: 0 auto;
}
label {
font-weight: bold;
}
</style>
</head>
<body>
<h1 align="center">Feedback Form</h1>
<form action="submit_feedback.php" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" size="25" required>
<label for="roll">Roll No:</label>
OUTPUT:
RESULT:
The above html code was executed successfully.
EX NO: 8
05-09-2023
BASIC XML TAGS
AIM:
To create simple webpage using xml.
ALGORITHM:
Step 1: Open Notepad
Step 2: Create a webpage using xml tags.
Step 3: To include external cascading style , use css file.
Step 4: Save the file as xml file and run the program in the browser.
CODE:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="Rule.css"?>
<books>
<heading> Welcome to SKASC Library </heading>
<book>
<title>Title -: Web Programming</title>
<author>Author -: Chrisbates</author>
<publisher>Publisher -: Wiley</publisher>
<edition>Edition -: 3</edition>
<price> Price -: 300</price>
</book>
<book>
<title>Title -: Internet world-wide-web</title>
<author>Author -: Ditel</author>
<publisher>Publisher -: Pearson</publisher>
<edition>Edition -: 3</edition>
<price>Price -: 400</price>
OUTPUT:
RESULT:
The above html code was executed successfully.
EX NO: 9
13-09-2023
DOCUMENT TYPE DEFINITION (DTD)
AIM:
To create xml webpage for library using DTD.
ALGORITHM:
Step 1: Open Notepad
Step 2: Specify element tags for xml and save it as dtd file.
Step 3: Create a new file and call the dtd file using <?xml-stylesheet> tag
Step 4: Create page by using the elements tags.
Step 5: Save the file as xml file and run the program in the browser.
CODE:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE library SYSTEM "library.dtd">
<library>
<book>
<title>Harry Potter and the Sorcerer's Stone</title>
<author>J.K. Rowling</author>
<published_year>1997</published_year>
</book>
<book>
<title>The Hobbit</title>
<author>J.R.R. Tolkien</author>
<published_year>1937</published_year>
</book>
</library>
OUTPUT:
RESULT:
The above html code was executed successfully.
EX NO: 10
21-09-2023
WEBPAGE CREATION
AIM:
To create webpage with HTML tags like table , list , frames , forms etc.
ALGORITHM:
Step 1: open notepad.
Step 2: Start the program with HTML tags like < HTML>, <HEAD>, <title>, < Body > etc...
Step 3: External cascading style can be used by calling the css file using <link> tag.
Step 4: Use <h1> to <h6> tags for various headings . To add paragraph ,use <p> tag.
Step 5: Create table using <table> tag , forms using <form> tag , frame using <frame> tag.
Step 6: Save the file as html file and run the program in the browser.
CODE:
<!DOCTYPE html>
<html>
<head>
<title>III BCOM CA B Website</title>
<link rel="stylesheet" href="style.css">
<style>
body {
font-family: Times-New-Roman, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
table {
width: 80%;
style.css
form {max-width: 600px; margin: 0 auto; }
label {font-weight: bold;}
OUTPUT:
RESULT:
The above html code was executed successfully.