HTML Webpage Creation Guide
HTML Webpage Creation Guide
Vicky
BBA M2C
36819101721
Question:-01
Create a webpage in HTML which has your college name as heading and add
the text regarding it & make the use of Quotation and Citation Elements & save
the file with your name.
Inputs:-
<!Doctype html>
<html>
<b>About GIBS</b><br>
Gitarattan International Busines School was established in the year 2004 under the aegis of Rohini Education
Society is proudly running various other successful institutions in Delhi like Gitarattan Institute of Advanced
Studies & Training, Gitarattan Jindal Public School & Sovereign School.These Institutions are well known
among all skateholders for quality education, decent infrastructure and location. These institutions are
rated and ranked very high by various regulatory bodies.<br>
Gitarattan Inrternational Business School(GIBS) is affiliated to Guru Gobind Singh Indraprastha University,
Delhi and is approved by All Indian Council for Technical Education (AICTE), Ministry of HRD, Government of
India for Technical programmes and Bar Council of India for Law programmes. The Institute is conducting
programme like MBA, MBA (International Business), BBA (General),(Both First and Second shift),BA LLB and
BBA LLB.
<li>GIBS has been graded <q>A</q> by National Assessment & Accreditation Council in 2nd Cycle.</li>
<li>GIBS has been rated <q>A+</q> State fee Regulatory Committee, a fees committee of Govt. of NCT of
Delhi.</li>
<li>It has been rated highest grading <q>A</q> by joint inspection Comittee of Govt. of Delhi & GGSIP
University since 2013 till date.</li>
<li>It has been rated Grade <q>A</q> by Academic Audit Cell of GGSIP University since 2011 till date.</li>
<li>GIBS has also achieved 4 star ranking in IIC MOE ranking 2021.</li>
<li>Also, GIBS has been rated as number 2 pan India by times Business School survey in 2021,2019 and
2018.</li> </ol>
</body>
</html>
Output:-
Question:-02
Create a webpage in HTML to define Comment Tag
Inputs:-
<!Doctype thml>
<html>
</head>
<body>
This element is used to add a comment to an HTML document.An HTML comment begins with<b><xmp><!--
</xmp></b>and the comment closes with<b> <xmp>--></xmp></b>Html comments are visible to anyone
that views the pages source code, but are not rendered when the HTML document is rendered by the
browser.<br>
<b><q><i><xmp> You will be able to see this text. <!-- a sentence -->You will be able to see this text. <!--or
you can comment out a larger number of lines --></xmp></q></i></b><br>
<b><q><i>You will be able to see this text. <!-- a sentence -->You will be able to see this text. <!--or you can
comment out a larger number of lines --></q></i></b><br>
</body>
</html>
Output:-
Question:-03
Create a static web page which defines all text formatting tags of HTML and
briefly explain all the tags.
Inputs:-
<!Doctype thml>
<html>
</head>
<body> <center>
<table border=1>
Formatting Tags</font>
</caption>
<tr>
<th>HTML Tag</th>
<th>Output</th>
</tr>
<tr>
<td>normal text</td>
<td>hello world</td>
</tr>
<tr>
</FONT></td>
</tr>
<tr>
<td><B></td>
</tr>
<tr>
<td><I></td>
</tr>
<tr>
<td><U></td>
</tr>
<tr>
<td><EM></td>
</tr>
<tr>
<td><STRONG></td>
</tr>
<tr>
<td><TELETYPE></td>
</tr>
<tr>
<td><CITE></td>
</tr>
<tr>
<td><STRIKE></td>
</tr>
<tr>
<td><BIG></td>
</tr>
<tr>
<td><SMALL></td>
</tr>
<tr>
<td><SUB></td>
<td>a<SUB> b </SUB></td>
</tr>
<tr>
<td><SUP></td>
<td>a<SUP> b</SUP></td>
</tr>
</table></center>
</body>
</Html>
Output:-
Question:-04
Create your resume using HTML tags and include superscript, subscript tags
and mono spaced Font in it.
Inputs:-
<!Doctype thml>
<html>
</head>
<body><h2><i><u><center>CURRICULUM VITAE</h2></i></u></center>
<b>VICKY</b><br>
Mob No.:9971021296<br>
Email ID:[email protected]<br>
<b><u>OBJECTIVE:</b></u><br>
Seeking a career that is more innovation and interesting and a occupation that gives me opportunity to learn
and enhance my skills and strength in conjunction with company goals.<br>
<b><u>PERSONAL INFORMATION</b></u><br>
Father's Name:Omprakash<br>
Date of birth:30/05/2002<br>
Religion:HINDU<br>
Nationality:INDIAN<br>
<b><u>EDUCATIONAL QUALIFICATIONS</b></u><br>
<b><u>COMPUTER KNOWLEDGE</b></u><br>
<b><u>HOBBIES</b></u><br>
Reading Books(Novels),To learn something new,Listening Music,Playing Piano,and Playing Football.<br>
<b><u>PERSONAL STRENGTH</b></u><br>
Fast grasping power,ability to adjust quickly in new environment,enthusiasm for learn something new,and
confidence to face new ventures,i will be sincere to work.<br>
</body>
</html>
Output:-
Question:-05
Create a static webpage using table tags of HTML and explain all the attributes
define under Table Tag.
Inputs:-
<html>
<head><title>Q5</title></head>
<body bgcolor="C19A6B">
<font size="+1.5">
<p><b> HTML tables allow web developers to arrange data into rows and columns. A table in HTML consists
of table cells inside rows
<p> <xmp>Each table cell is defined by a <td> and a </td> tag. "td" stands for table data. Everything
between <td> and </td> are the content of the table cell.</xmp> </p>
<p> <b>Note:</b> Table data elements are the data containers of the table.
They can contain all sorts of HTML elements; text, images, lists, other tables, etc.</p>
<p> <xmp>Each table row starts with a <tr> and end with a </tr> tag. "tr" stands for table row. You can have
as many rows as you like in a table, just make
sure that the number of cells are the same in each row.</xmp> </p>
<p> <b>Note:</b> There are times where a row can have less or more cells than another. You will learn
about that in a later chapter.
</p>
<p> <xmp>Sometimes you want your cells to be headers, in those cases use the <th> tag instead of the <td>
tag: By default, the text in <th> elements are bold
and centered, but you can change that with CSS.</xmp> </p>
<dl>
<dt><b><u>Border</u>:-</b></dt>
<dd>-When you add a border to a table, you also add borders around each table cell. To
add a border,
<dt><b><u>Border Color</u>:-</b></dt>
<dd>-With the border-color property, you can set the color of the border.</dd>
<dt><b><u>Width</u>:-</b></dt>
<dd>-To set the width of a table, add the width attribute to the table element.</dd>
<dt><b><u>Caption</u>:-</b></dt><dd>
<xmp>-You can add a caption that serves as a heading for the entire table. To add a caption to a table, use
the <caption> tag. The <caption> tag should
<dt><b><u>Cell Padding</u>:-</b></dt>
<dd>-Cell padding is the space between the cell edges and the cell content.By default the
padding is set to 0.
<dt><b><u>Cell Spacing</u>:-</b></dt>
<dd>-Cell spacing is the space between each cell.By default the space is set to 2 pixels.
To change the space between table cells, use the CSS border-spacing property on the table element.</dd>
<dt><b><u>Colspan</u>:-</b></dt>
<dd>-To make a cell span over multiple columns, use the colspan attribute. The value of
the colspan attribute
<dt><b><u>Rowspan</u>:-</b></dt>
<dd>-To make a cell span over multiple rows, use the rowspan attribute. The value of the
rowspan attribute
<dt><b><u>Backgroung</u>:-</b></dt>
<dl>
<h3>Example</h3>
<center><B><h2>Time Table</center></b></h2>
<tr>
<th>Day/Period</th>
<th>1<br>9:30-10:20</th>
<th>2<br>10:20-11"10</th>
<th>3<br>11:10-12:00</th>
<th rawspan="6">12:00-12:40</th>
<th>4<br>12:40-1:30</th>
<th>5<br>1:30-2:20</th>
<th>6<br>2:20-3:10</th>
<th>7<br>3:10-4:00</th>
</tr>
<tr aligh="center">
<td><b>Monday</b></td>
<td>English</td>
<td>Mathematics</td>
<td>Chemistry</td>
<td rowspan="6"><center>L<br>U<br>N<br>C<br>H<br></center></td>
<td colspan="3"><center>LAB</center></td>
<td>Physics</td>
</tr>
<tr aligh="center">
<td><b>Tuesday</b></td>
<td colspan="3"><center>LAB</center></td>
<td>English</td>
<td>Chemistry</td>
<td>Mathematics</td>
<td>Sports</td>
</tr>
<tr align="center">
<td><b>Wednesday</b></td>
<td>Mathematics</td>
<td>Physics</td>
<td>English</td>
<td>Chemistry</td>
<td colspan="3">LIBRARY</td>
</tr>
<tr aligh="center">
<td><b>Thursday</b></td>
<td>Physics</td>
<td>English</td>
<td>Chemistry</td>
<td colspan="3"><center>LAB</center></td>
<td>Mathematics</td>
</tr>
<tr aligh="centere">
<td><b>Friday</b></td>
<td colspan="3"><center>LAB</center></td>
<td>Mathematics</td>
<td>Chremistry</td>
<td>English</td>
<td>Physics</td>
</tr>
<tr aligh="center">
<td><b>Saturday</b></td>
<td>English</td>
<td>Chemistry</td>
<td>Mathematics</td>
<td colspan="3"><center>SEMINAR</center></td>
<td>Sports</td>
</tr>
</tr>
</table></center><br>
</font>
</body>
</html>
Output:-
Question:06
Create three HTML files named 1.html, 2.html and 3.html and link them
together to each other and put the appropriate content in each file.
Inputs:-
<!Doctype thml>
<html>
</head>
</body>
</html>
Output:-
HTML Page 1
HTML Page 2
HTML Page 3
Question:-07
Create a webpage which defines different empty tags .
Inputs:-
<!Doctype thml>
<html>
</head>
An empty emement is a component that doesn't have any embedded elements or text elements. Empty
elements do not have successor nodes. In other wpords, the tags do not contain any closing tags are empty
tags. Empty tags contain only the opening tag but they perform some action in the webpage.<br>
<h3><xmp>3.<img>:</xmp></h3>This tag is used to display the images on the webpage which were given in
the src attribute of the tag.
<h3><xmp>5.<link>:</xmp></h3>This is mainly used with forms to take the input from the user and we can
also define the type of the input.<br>
</body>
</html>
Output:-
Question:-08
Create webpage to include multimedia tags and explain each tag with syntax.
Inputs:-
<html>
<head><title>Q8</title></head>
<body bgcolor="848B79">
<font size="+1.5">
<p><b><xmp> The HTML <video> element is used to show a video on a web page.To show a video in HTML,
use the <video> element</xmp></b></p></center>
<xmp> The controls attribute adds video controls, like play, pause, and volume.
It is a good idea to always include width and height attributes. If height and width are not set, the page
might flicker while the video loads.
The <source> element allows you to specify alternative video files which the browser may choose from. The
browser will use the first recognized format.
The text between the <video> and </video> tags will only be displayed in browsers that do not support the
<video> element. </xmp>
<h3>Example</h3>
<xmp><center>
</video></center></xmp>
<h3>Output</h3>
<center>
</video></center>
<center><h2> <u>Audio</u> </h2>
<xmp> The controls attribute adds audio controls, like play, pause, and volume.
The <source> element allows you to specify alternative audio files which the browser may choose from. The
browser will use the first recognized format.
The text between the <audio> and </audio> tags will only be displayed in browsers that do not support the
<audio> element. </xmp>
<h3>Example</h3>
<xmp><audio controls>
</audio></xmp>
<h3>Output</h3>
<audio controls>
</audio>
</font>
</body>
</html>
Output:-
Question:-09
Create employee registration webpage using HTML from objects.
Inputs:-
<!Doctype thml>
<html>
</head>
<body>
<h3><u>Personal Details</u></h3>
Full Name :- <input type="text" size="60">
Father's Name:- <input type="text" name="fname" size="60">
Mobile No. :- <input type="number" name="mno.">
Telphone No. :- <input type="number" name="tno.">
State:- <select>
<option>Assam </option>
<option>Bihar </option>
<option>Chhattisgarh </option>
<option>Goa </option>
<option>Gujarat </option>
<option>Haryana </option>
<option>Jharkhand </option>
<option>Karnataka </option>
<option>Kerala </option>
<option>Maharashtra </option>
<option>Manipur </option>
<option>Meghalaya </option>
<option>Mizoram </option>
<option>Nagaland </option>
<option>Odisha </option>
<option>Punjab </option>
<option>Rajasthan </option>
<option>Sikkim </option>
<option>Tamil Nadu </option>
<option>Telangana </option>
<option>Tripura </option>
<option>Uttarakhand </option>
<option>Chandigarh </option>
<option>Ladakh </option>
<option>Lakshadweep </option>
<option>Delhi </option>
<option>Puducherry </option>
Contact Name:- <input type="text" name="cname" size="35">
Contact No.:- <input type="Number" name="cno.">
<h3><u>Qualification Details</u></h3>
10<sup>th</sup> Certificate
:-
12<sup>th</sup> Certificate
:-
Undergraduate Degree
:-
Postgraduate Degree
:-
<input type="file"
name="pg"><br>
Mention Other Qualification <tt>(if any)</tt> :-
<textarea rows="2"
cols="80"></textarea><br>
<h3><u>Bank Details</u></h3>
Branch Name:- <input type="text" name="brname">
</select> <br><br>
Account Name:- <input type="Text" name="Aname" size="40">
<h3><u>Upload Documents</u></h3>
Photo
Signature
name="signation"><br><br>
Fingerprint Scan :-
Aadhar Card :-
<h3><u>Declaration</u></h3>
<input type="radio" name="declaration">“I hereby declare that the above particulars of facts
and information stated are true, correct and complete to the best of
my belief
and knowledge.”<br><br>
<center>
</center>
</fieldset>
<form>
</b>
</font>
</body>
</html>
Output:-
Question:-10
Create a table using HTML Tags. for Instance
Inputs:-
<!Doctype thml>
<html>
</head>
<body>
<center><B><h2>Time Table</center></b></h2>
<tr>
<th>Day/Period</th>
<th>1<br>9:30-10:20</th>
<th>2<br>10:20-11"10</th>
<th>3<br>11:10-12:00</th>
<th rawspan="6">12:00-12:40</th>
<th>4<br>12:40-1:30</th>
<th>5<br>1:30-2:20</th>
<th>6<br>2:20-3:10</th>
<th>7<br>3:10-4:00</th>
</tr>
<tr aligh="center">
<td><b>Monday</b></td>
<td>English</td>
<td>Mathematics</td>
<td>Chemistry</td>
<td rowspan="6"><center>L<br>U<br>N<br>C<br>H<br></center></td>
<td colspan="3"><center>LAB</center></td>
<td>Physics</td>
</tr>
<tr aligh="center">
<td><b>Tuesday</b></td>
<td colspan="3"><center>LAB</center></td>
<td>English</td>
<td>Chemistry</td>
<td>Mathematics</td>
<td>Sports</td>
</tr>
<tr align="center">
<td><b>Wednesday</b></td>
<td>Mathematics</td>
<td>Physics</td>
<td>English</td>
<td>Chemistry</td>
<td colspan="3">LIBRARY</td>
</tr>
<tr aligh="center">
<td><b>Thursday</b></td>
<td>Physics</td>
<td>English</td>
<td>Chemistry</td>
<td colspan="3"><center>LAB</center></td>
<td>Mathematics</td>
</tr>
<tr aligh="centere">
<td><b>Friday</b></td>
<td colspan="3"><center>LAB</center></td>
<td>Mathematics</td>
<td>Chremistry</td>
<td>English</td>
<td>Physics</td>
</tr>
<tr aligh="center">
<td><b>Saturday</b></td>
<td>English</td>
<td>Chemistry</td>
<td>Mathematics</td>
<td colspan="3"><center>SEMINAR</center></td>
<td>Sports</td>
</tr>
</tr>
</table></center><br>
</body>
</html>
Output:-
Question:-11
Create a webpage using frame tag a) rows and columns b)border and border
color.
Inputs:-
<DOCTYPE! HTML>
<html>
<head>
<title>Frameset</title> </head>
<frame>
<frame>
<frameset cols="15%,15%,15%,15%">
<frame>
<frame>
<frame>
<frame>
</frameset>
</html>
Output:-
Question:-12
Explain all types of listing available in HTML with its syntax. Create a webpage
using list tags of HTML.
Inputs:-
<!Doctype thml>
<html>
<body> <center><h2><b><u>HTML-LISTS</h2></b></U></center><br>
HTML Lists are used to present a list of information in a well- formed and semantic way.There are three
different types of lists in HTML and each one has a specific purpose and meaning.<br>
<ol>
</ol>
<b>1.<u>Unordered Lists</u></b><br>
An unordered list created using the <b> <xmp><ul></xmp> </b>element,and each list item starts with the
<b> <xmp><li></xmp></b>element.<br>
<b>Example</b><br>
<xmp>
<ul>
<li>Mango</li>
<li>Apple</li>
<li>Banana</li>
<li>Watermelon</li>
<li>Strawberry</li>
</ul></xmp><br>
<b>-Output</b><br>
<ul>
<li>Mango</li>
<li>Apple</li>
<li>Banana</li>
<li>Watermelon</li>
<li>Strawberry</li>
</ul>
<b>2.<u>Ordered Lists</u></b><br>
An ordered list created using the <b><xmp><ol></xmp></b>element,and each list item starts with the
<b><xmp><li></Xmp></b>element.<br>
<b>Example</B>
<xmp>
<ol>
<li>Mango</li>
<li>Apple</li>
<li>Banana</li>
<li>Watermelon</li>
<li>Strawberry</li>
</ol>
</xmp><br>
<b>-Output</b><br>
<ol>
<li>Mango</li>
<li>Apple</li>
<li>Banana</li>
<li>Watermelon</li>
<li>Strawberry</li>
</ol><br>
<b>3.<u>Description Lists</u></b><br>
<b>Example</b><br>
<xmp>
<dl>
<dt>Mango</dt>
<dd>A Fruit</dd>
<dt>Apple</dt>
<dd>A Fruit</dd>
</dl>
</xmp><br>
<b>-Output</b><br>
<dl>
<dt>Mango</dt>
<dd>A Fruit</dd>
<dt>Apple</dt>
<dd>A Fruit</dd>
</dl><br>
</body>
</html>
Output:-
Question:-13
Write html code to generate following output.
• Coffee
• Tea
o Black Tea
o Green Tea
• Milk
Inputs:-
<!DOCTYPE THML>
<html>
</head>
<body>
<U/l>
<li>Coffee</li>
<li>Tea</li>
<ul style="list-style-type:circle;">
<li>Bleack Tea</li>
<li>Green Tea</li>
</ul>
<li>Milk</li>
</ul>
</body>
</html>
Output:-
Question:-14
Create an HTML page with red background add scrolling text “read the
message”.
Inputs:-
<!Doctype thml>
<html>
</head>
<body>
</body>
</html>
Output:-
Question:-15
Create a HTML webpage for you college with three frames. The first frame will
be horizontal on displaying the name and address of the College. The second
frame which is vertical on left will list the available Courses. The third frame
will be to the right of the second frame and will display the introduction to the
College.
Inputs:-
<DOCTYPE! HTML>
<html>
<head>
<title>Frameset</title>
</head>
<frameset cols="50%,50%">
</frameset>
</html>
Output:-