0% found this document useful (0 votes)
22 views2 pages

HTML PDF

The document provides an overview of HTML, explaining its structure, tags, and attributes. It covers various HTML elements such as headings, paragraphs, lists, and formatting tags, along with their usage and examples. Additionally, it discusses the advantages and disadvantages of HTML as a markup language.

Uploaded by

tejishpatel267
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)
22 views2 pages

HTML PDF

The document provides an overview of HTML, explaining its structure, tags, and attributes. It covers various HTML elements such as headings, paragraphs, lists, and formatting tags, along with their usage and examples. Additionally, it discusses the advantages and disadvantages of HTML as a markup language.

Uploaded by

tejishpatel267
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

HTML 2.

End tag:- Html tags ➢ <hr> tag (horizontal rule)


HTML stands for hypertext markup language. End tag repeat the keyword with forward slash(/). It is used to end an effect of tag. It is used to divide the web page into separate sections.
Hypertext means ordinary text that has been dressed up with some extra features such as Eg:- </html> ➢ <p> tag (paragraph) It does not have closing or ending tag.
formatting images, multimedia, and links to other document. It is used to create paragraph on web page. Eg:- <p>this is first line<hr>this is second line</p>
Markup means ordinary text adding with extra symbol such as editor proof reading Nesting of tags The data enclosed within starting tag <p> and ending tag </p>. O/P:-
this is first line
symbol. Nesting of tag means tag within tag. Tags can be nested within each other. Eg:- 1. <p>computer science </p>
Eg:- <b><i>computer science</i></b> O/P:-
computer science this is second line
Advantages of HTML In above example observe that italic tag completely within bold tag.
• For creating html document you need only text editor. No special software is 2. <p>this is first paragraph </p><p>this is second paragraph</p> • Attributes
required. Tag Attribute O/P:- 1. size:-
this is first paragraph
Eg:- notepad. Attribute is a keyword separated by a space within angle bracket. It is used to increase size i. e. thickness of horizontal line.
this is second paragraph
• Html is platform independent means html document can be created on any It affect on behavior of tag. Eg:- <hr size=”7”>
hardware. Eg:- <hr no shade> 2. width:-
• Finding error is easy in html. Some attributes require a value preceded by an equal sign. • Attributes It is used to specify width of horizontal line.
• Html does not cost you anything for its use. Eg:- <p align=”left”> 1. align:- Eg:- <hr width=”30%”>
• There are no expensive licenses to buy or no upgrades to purchase. It allows you to specify where the text or data appear on screen. 3. no shade:-
• You can work independently. Essentials of a web page There are three alignments left, center and right. It is used to display without shaded horizontal line.
• You need not to worry about editing programs. Every web page needs eight html tags. That are: Eg:- <p align=”right”>computer science</p> Eg:- <hr no shode>
• You will have a much better concept of the structure of your page and 1. <Html> O/P:- Note:- you can use all attributes of tag together.
It is used to display web page in web browser. computer science
understanding of why it works. Eg:- <hr size=”7” width=”30%” no shade>
• Learning html is simple than any other programming language. The document enclosed within starting tag <html> and closing tag </html>
2. <head> ➢ <br> tag (break line) ➢ Heading level tags (Hierarchy of heading level tags)
It defines the header area of page, which is not displayed within page itself. It is used to break the line. There are six heading level tags in html from <h1> to <h6>.
Disadvantages of HTML
It supports to <title> tag. It does not have closing or ending tag. First level heading is displayed in larger and bolder font than other heading and sixth level
• Html is not a programming language.
It having starting tag <head> and closing tag </head> Eg:- <p>this is first line<br>this is second line</p> heading is displayed in smaller font than other headings.
• Any simple calculation cannot be done in html.
3. <title> O/P:- Eg:- <h1>Computer Science</h1>
• It cannot display even date. this is first line
It is used to give title to web page which is displayed in the title bar of the web <h2>Computer Science</h2>
• Also interactive web pages cannot be built by html. browser. this is second line
<h3>Computer Science</h3>
• The web pages developed in html cannot behave like an application. It having starting tag <title> and closing tag </title> <h4>Computer Science</h4>
• Attributes
• The web pages developed in html do not have their own interface. 4. <body> 1. clear all:- <h5>Computer Science</h5>
• Hyper link provided in html but for that we need a trip to server at each step. It is used to display actual content of the web page. It is used only with image tag. <h6>Computer Science</h6>
It having starting tag <body> and closing tag </body> It allows you to clear data appears next to image. O/P:-
Tag
• It is unit of markup. Structure of html web page/ Structure of html document
Eg:- <img src=”image path”><br clear all>
Eg:- <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg”><br>Tulip
Computer Science
• It is set of symbols defines in html to have special meaning. <html> flower.
• Html tags start with a less than sign(<) followed by keywords and ends with greater <head> O/P:- Computer Science
than sign(>). <title>
These symbols are also called as angle bracket. Title of the web page Computer Science
• The tags are not displayed in web browser but their effect is displayed. </title> Tulip flower
Syntax:- <keyword> </head> Eg:- <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg”><br clear Computer Science
Eg:- <html> <body> all>Tulip flower.
• There are two types of tags Actual content of the web page O/P:- Computer Science
1. Start tag </body>
2. End tag </html> Computer Science

1. Start tag:- • Attributes


Tulip flower
It is used to start an effect of tag. Eg:- <html> 1. align:-

It allows you to specify where the heading appears on screen. ➢ <em> tag (emphasis) Q. Write HTML code to display your personal information such as name, address, contact <li>speaker
There are four alignments left, center, right and justify. It is used to display data in italic format. number, date of birth and e-mail address. </ul>
Eg:- <h5 align=”left”>computer science</h5> The data enclosed within starting tag <em> and ending tag </em>. <html> O/P:-
O/P:- Computer Science Eg:- <em>computer science</em> <head> • monitor
O/P:- <title>title</title> • printer
computer science
</head> • speaker
➢ <b> tag (bold) <body>
It is used to display data in bold format. ➢ <sub> tag (subscript) <p> • Attribute
The data enclosed within starting tag <b> and ending tag </b>. It is used to display data in subscript format. <h1>Personal Information</h1> 1. type:-
Eg:- <b>computer science</b> The data enclosed within starting tag <sub> and ending tag </sub>. <hr> It allows you to specify type of bullet.
O/P:- Eg:- H<sub>2</sub>O <b>Name: Utkarsh Jadahv</b><br> There are three types of bullet disc (•), circle (°) and square (∎).
computer science
O/P:- <b>Address: <i>Aurangabad</i></b><br> Eg:- <ul type=”circle”>
H2O
<b>Contact No.: <u>8080808080</u><br> <li>monitor
➢ <i> tag (italic) <big>Date of Birth:</big><small>21 April</small> <li>printer
It is used to display data in italic format. ➢ <sup> tag (superscript) <pre>[email protected]</pre> <li>speaker
The data enclosed within starting tag <i> and ending tag </i>. It is used to display data in super script format. </p> </ul>
Eg:- <i>computer science</i> The data enclosed within starting tag <sup> and ending tag </sup>. </body> O/P:-
O/P:- Eg:- X<sup>2</sup> </html> o monitor
computer science o printer
O/P:- 2
X o speaker
O/P:-
➢ <u> tag (underline)
It is used to display underline with data. ➢ <big> tag (big)
Personal Information
The data enclosed within starting tag <u> and ending tag </u>. It is used to display data in larger font. • Attribute of <li> tag with unordered list.
Eg:- <u>computer science</u> The font size is same as +1 font size. 1. type:-
Name: Utkarsh Jadahv
O/P:- The data enclosed within starting tag <big> and ending tag </big> It allows you to specify type of bullet.
computer science Address: Aurangabad
Eg:- <big>computer science</big> Contact No.: 8080808080 There are three types of bullet disc (•), circle (°) and square (∎).
O/P:- Eg:- <ul>
➢ <address> tag (address) computer science Date of Birth:21 April
<li>monitor
[email protected]
It is used to display web page information such as page URL(uniform resource locator). <li type=”circle”>printer
The data enclosed within starting tag <address> and ending tag </address>. ➢ <small> tag (small) <li>speaker
Eg:- <address>www.facebook.com</address> It is used to display data in smaller font. </ul>
O/P:- The font size is same as -1 font size. O/P:-
www.facebook.com ➢ List tags • monitor
The data enclosed within starting tag <small> and ending tag </small>.
Eg:- <small>computer science</small> There are three types of list in html. o printer
➢ <pre> tag (preformatted text) O/P:- computer science 1. Unordered list • speaker
It is used to display data in monospace form. 2. Ordered list
The data enclosed within starting tag <pre> and ending tag </pre>. 3. Definition list
Eg:- <pre> computer science</pre> ➢ <strike> tag or <s> tag (strike) 2. Ordered list (<ol> tag)
O/P:- It is used to draw line through middle of the data. 1. Unordered list (<ul> tag)
computer science It uses alphanumeric numbers to display list.
The data enclosed within starting tag <strike> and ending tag </strike>. It uses bullets to display list.
List can be preceded by numbers, Arabic numbers, upper or lower case Roman
Eg:- <strike>computer science</strike> Lists can be preceded by one of the several bullet styles like a closed circle (•), open
numbers, or upper or lower case alphabets.
➢ <strong> tag (strong) O/P:- circle (°) or square (∎).
It having starting tag <ol> and ending tag </ol>
computer science It having starting tag <ul> and ending tag </ul>
It is used to display data in bold format. Eg:- <ol>
The data enclosed within starting tag < strong > and ending tag </strong>. Eg:- <ul>
<li>monitor
Eg:- <strong>computer science</strong> <li>monitor
<li>printer
O/P:- <li>printer
computer science

<li>speaker • Attribute of <li> tag with ordered list. <html> <html>


</ol> 1. value:- <head> <head>
O/P:- It allows you to specify a certain number to a particular list item. <title>title</title> <title>title</title>
1. monitor Eg:- <ol> </head> </head>
2. printer <li>monitor <body> <body>
3. speaker <li>printer <h4>breakfast menu</h4> <u>Input devices</u>
<li value=”10”>speaker <ul type=”disc”> <ol type=”a”>
• Attribute </ol> <li>bread <li>mouse
1. type:- <li>cheese <li>keyboard
It allows you to specify type of number. O/P:- <li>eggs <li>switches
There are following types of numbers: 1. monitor <li>milk <li>scanners
type=”1” (Numbers) 2. printer </ul> <ol>
type=”I” (Arabic numbers) 10. speaker </body> <li>flatbed
type=”i” (Lower case Roman numbers) </html> <li>handheld
type=”I” (Upper case Roman numbers) </ol>
type=”a” (Lower case alphanumeric) 3. Definition list (<dl> tag) Q. Write html code for following output. </ol>
type=”A” (Upper case alphanumeric) It is used to give description of terms. </body>
It display lists without using bullets. Breakfast menu---------h4 </html>
Eg:- <ol type=”I”> It having starting tag <dl> and ending tag</dl> • Bread
<li>monitor It uses three different tags: o Milk bread Q. Write html code for following output.
<li>printer 1. <dl> definition list o Brown bread Input devices
<li>speaker 2. <dt> definition term:- used to display term i.e name or title of the element you • milk a. mouse
</ol> are defining. b. keyboard
O/P:- 3. <dd> definition description:- used to display definition themselves (definition of c. scanners
I. monitor element). <html>
II. printer Eg:- <dl> <head> Output devices
III. speaker <dt> term A <title>title</title> 7. monitor
<dd>definition of A </head> 8. printer
<dt> term B <body> 9. speaker
2. start:- <dd>definition of B <h4>breakfast menu</h4>
It allows you to specify beginning of lists number sequence. </dl> <ul type=”disc”>
Eg:- <ol start=”3”> O/P:- <li>bread <html>
<li>monitor term A <ul type=”disc”> <head>
<li>printer definition of A <li>milk bread <title>title</title>
<li>speaker term B <li>brown bread </head>
</ol> definition of B </ul> <body>
O/P:- <li>milk <b><u>Input devices</u></b>
3. monitor Q. Write html code for following output. </ul> <ol type=”a”>
4. printer </body> <li>mouse
5. speaker Breakfast menu---------h4 </html> <li>keyboard
• Bread <li>scanners
• Cheese Q. Write html code for following output. </ol>
• Eggs Input devices <hr>
• milk a. mouse <ol start=”7”>
b. keyboard <li>monitor
c. switches <li>printer
d. scanners
1. flatbed
2. handheld

<li>speaker • Attributes. 2. backgound


</ol> 1. href:- It is used to set background image to body section.
</body> </body> It is used to give hyper reference or address of the web page which we want to Eg:- <body background=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg”>
</html> </html> link.
It is compulsory attribute of anchor tag. 3. text
Q. Write html code for following output. ➢ <font> tag (font) Eg:- <a href=”E:\12thcs\next.html”>next_page</a> It is used to specify color to the text of body section.
Input/Output devices It is used to format data i.e. used to change size, face and color of the data using three Eg:- <body text=”yellow”>
a. mouse attributes size, face and color. 2. target:-
b. keyboard The data enclosed within starting tag <font> and ending tag </font>. As linked web page displayed in same browser, original contents of the browser 4. link
c. scanners disappears. In such a case we can use target attribute. It is used to specify color to the links.
1. monitor • Attributes. It is used to display linked web page in another frame or new tab. Eg:- <body link=”red”>
2. printer 1. size:- Eg:- <a href=”E:\12thcs\next.html” target=”anotherframe”>next_page</a>
3. speaker It allows you to specify size of the data ranging from +1 to +7. 5. alink
+7 size is displayed in larger and bolder font than other sizes and +1 size is 3. name:- It is used to specify color of active links.
<html> displayed in smaller font than other sizes. It is used create links within the same page. Eg:- <body alink=”olive”>
<head> Eg:- <font size=”+1”>computer science</font> Eg:- <a href=”#address”>address</a>
<title>title</title> O/P:- 6. vlink
</head> computer science • Types of hyper links It is used to specify color of visited links.
<body> 1. Link to document located in different directory:- Eg:- <body vlink=”maroon”>
<b><u>Input/Output devices</u></b> 2. face:- Eg:- <a href=”E:\12thcs\next.html”>next_page</a>
<ol type=”a”> It allows you to specify typeface of the data. • RGB color code
<li>mouse We can use single typeface from list of typefaces, such as arial, cambria, etc. 2. Link to page on the world wide web:- - RGB means red, green and blue.
<li>keyboard Eg:- <font face=”arial”>computer science</font> Eg:- <a href=”www.google.com”>Google</a> - By mixing of these three primary colors it is possible to generate any color.
<li>scanners O/P:- - It uses six digit hexadecimal numbers in which first two digits specify an
</ol> computer science 3. Link to an image or a document by images as a link:- amount of red, next two digits specify an amount of green and last two digits
<ol> Eg:- 1. <a href=” C:\Users\Public\Pictures\SamplePictures\rose.jpg”> specify an amount of blue.
<li>monitor Also you can use more than one typeface from list of typefaces separated by <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg”></a> Eg:- #FF 00 00 (code for red)
<li>printer commas. The available available typeface will be used to display and if font face Eg:- 2. <a href=”E:\12thcs\next.html”> #00 FF 00 (code for green)
<li>speaker is not available the face will appear. <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg”></a> #00 00 FF (code for blue)
</ol> Eg:- <font face=”arial,cambria”>computer science</font> O/P:- #00 00 00 (code for black)
</body> O/P:- #FF FF FF (code for white)
</html> computer science #FF FF 00 (code for yellow, mixing of maximum red and maximum green)
- There are 16 colors in html. They are Black, Silver, Blue, Gray, White, Maroon,
Q. Draw output of following html code. 3. color:- Red, Purple, Fuchsia, Green, Lime, Olive, Yellow, Navy, Teal and Aqua.
<html> It allows you to specify color to the data. ➢ <marquee> tag (marquee)
<head> We can use RGB value of color or color name. It is used to scroll or roll data horizontally on the web page. ➢ <img> tag (image)
<title>title</title> Eg:- <font color=”red”>computer science</font> The data enclosed within starting tag <marquee> and ending tag </marquee> - It is used to insert image in the body section.
</head> O/P:- Eg:- <marquee>computer science</marquee> - It is also called as inline images because the image inserted within a line of body
<body> computer science O/P:- text. Because image is a text level element, it should be nested inside a
<dl> computer scie paragraph or other block level container, and it does not start a next paragraph
<dt> Software ➢ <a> tag (anchor) automatically.
<dd>It is <b>interface</b> between user and computer hardware. It is used to create link or hyperlink • Changing color scheme or Attributes of <body> tag Eg:- <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg”>
<dt> Hardware The data within the anchor tag will displayed in a different color and with underline. 1. bgcolor O/P:-
<dd>It is <u>physical component</u> of a computer or other electronic The data enclosed within starting tag <a> and ending tag </a> It is used to set background color of body section.
system. Eg:- <a href=”E:\12thcs\next.html”>next_page</a> Eg:- <body bgcolor=”blue”>
</dl> O/P:-
next_page
- To make an image appear as a separate paragraph, enclose it within paragraph 6. width :- O/P:- O/P:-
element as: It is used to specify width of image. It is given in number of pixel. 1 2 CS-1 CS-2
Eg:- <p> Eg:- <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg” 100 marks 100 marks
<img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg”> width=”500”> 3 4
</p> O/P:-
5. cellspacing Q. Draw output of following html code.
• Attributes It is used to create space in between each cell of the table. <html>
Eg:- <table cellspacing=”3”> <head>
1. src (source) :- O/P:- <title>table</title>
It is used to give path or address of image. It is compulsory attribute of image • Image formats 1 2 </head>
tag. 1. GIF (Graphic Interchange Format) <body>
Eg:- <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg”> 2. PNG (Portable Network Graphic) <table border=”1”>
3 4
3. JPEG (Joint Photographic Expert Group) <tr>
2. border :- <th>Paper-I</th>
It is used to give border to the image. ➢ <table> tag (table) <th>Paper-II</th>
Eg:- <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg” It is used to insert table in the body section. ➢ <tr> tag (table row) <th>Total</th>
border=”1”> It having starting tag <table> and ending tag</table> It is used to create row of table. </tr>
O/P:- It having starting tag <tr> and ending tag</tr> <tr>
• Attributes <th>100</th>
1. border ➢ <th> tag (table heading) <th>100</th>
It is used specify border to the table. It is used to create table headings. <th>200</th>
Eg:- 1. <table> 2. <table border=”1”> It having starting tag <th> and ending tag</th> </tr>
3. alt :- O/P:- 1 </table>
2 1 2 ➢ <td> tag (table data)
It is used to give alternate text to the image tag and it displays when roll mouse </body>
3 4 3 4 It is used to create each individual cell. </html>
over the image. Sometime it uses instead of image.
Eg:- <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg” alt=”Tulip It having starting tag <td> and ending tag</td>
Flowers”> 2. align O/P:-
O/P:- Q. Draw output of following html code. Paper-I Paper-II Total
It is used to align the table horizontally.
There are three alignments left, center and right. <html> 100 100 200
Eg:- <table align=”right”> <head>
O/P:- <title>table</title>
1 2 </head> • Attributes of <tr>,<th> and <td> tags
4. align :- <body> 1. align
3 4
It is used to align image over the web page. <table border=”1”> It is used to align data of single row or single cell horizontally.
There are three vertical alignments top, middle and bottom and <tr> There are three alignments left, center and right.
two horizontal alignments used to float images that are left and right. 3. width <th>CS-1</th> Eg:- <tr align=”right”>
Eg:- <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg” It is used to specify width of table. <th>CS-2</th> <th align=”right”>
align=”top”> Eg:- <table width=”30%”> </tr> <td align=”right”>
O/P:- <tr> O/P:-
5. height :- 1 2 <td>100 marks</td> 100 100 200
It is used to specify height of image. It is given in number of pixel. 3 4 <td>100 marks</td>
Eg:- <img src=”C:\Users\Public\Pictures\SamplePictures\Tulips.jpg” </tr>
height=”500”> 4. cellpadding </table> 2. valign
O/P:- It is used to create space in between cell border and cell data. </body> It is used to align data of single row or single cell vertically.
Eg:- <table cellpadding=”3”> </html> There are three alignments top, middle, bottom and baseline.
Eg:- <tr align=”middle”>

<th align=” middle”> </tr> </tr>


<td align=” middle”> • Attribute <tr> <tr>
O/P:- 1. align <td align=”center”>100</td> <th>Income</th>
100 100 200 It is used to align caption of table. <td align=”center”>100</td> <td align=”center”>1000</td>
There are two alignments of caption top and bottom. </tr> <td align=”center”>800</td>
Eg:- <caption align=”bottom”>Computer Sciecne</caption> </table> <td align=”center”>2000</td>
3. bgcolor </body> </tr>
It is used to specify color to single row or single cell. Q. Draw output of following html code. </html> </table>
Eg:- <tr bgcolor=”blue”> <html> </body>
<th bgcolor=”blue”> <head> O/P:- CS Marks </html>
<td bgcolor=”blue”> <title>table</title>
O/P:- </head> Computer Science Q. Write html code for following output.
100 100 200 <body>
<table border=”1”> Paper-I Paper-II
<tr> HSC/SSC Board
100 100
• Attributes of <th> and <td> tags <th rowspan=”2”>Total<br>200</th>
1. width <th>Paper-I</th> HSC SSC
It is used to specify width of single cell. <th>Paper-II</th> Q. Write html code for following output.
Eg:- <th width=”200”> </tr> <html>
<td width=”200”> <tr> Years <head>
O/P:- <td align=”center”>100</td> 2017 2018 2019 <title>table</title>
100 100 200 <td align=”center”>100</td> Units 500 400 1000
</head>
</tr> Sales <body>
</table> Income 1000 800 2000 <table border=”1”>
2. colspan </body> <tr>
It is used to merge columns or cells. </html> <html> <th colspan=”2”>HSC/SSC Board</th>
Eg:- <th colspan=”2”> <head> </tr>
<td colspan=”2”> O/P:- <title>table</title> <tr>
O/P:- Total Paper-I Paper-II </head> <th>HSC</th>
CS Total 200 <body> <th>SSC</th>
100 100
<table border=”1”> </tr>
100 100 200 <tr> </table>
Q. Draw output of following html code. <th colspan=”2” rowspan=”2”></th> </body>
3. rowspan <html> <th colspan=”3”>Years</th> </html>
It is used to merge rows or cells of different rows. <head> </tr>
Eg:- <th rowspan=”2”> <title>table</title> <tr> Q. Write html code for following output.
<td rowspan=”2”> </head> <td>2017</td>
O/P:- <body> <td>2018</td> Teamperature
<table border=”1”> <td>2019</td> City Wind
Paper-I Paper-II Total High Low
200 <caption align=”top”>CS Marks</caption> </tr>
100 100 Aurangabd 30 20 South
<tr> <tr>
<th colspan=”2”>Computer Science</th> <th rowspan=”2”>Sales</th> Jalna 32 21 South
➢ <caption> tag (caption) </tr> <th>Units</th>
Parbhani 35 22 West
It is used to create caption of the table. <tr> <td align=”center”>500</td>
It having starting tag <caption> and ending tag</caption> <td align=”center”>400</td> Weather’s Report
<th>Paper-I</th>
Eg:- <caption>Computer Sciecne</caption> <td align=”center”>1000</td> <html>
<th>Paper-II</th>

<head> VB Script O/P:-


<title>table</title> ➢ <script> tag ---message box
Welcome to VBScript
</head> It is used to add script code in html web page.
<body> It can be written in head section as well as body section.
<table border=”1”> Eg:- <script language =”VBScript”> VBScript ---body section
<tr> Scripting code
<th rowspan=”2”>City</th> </script>
<th colspan=”2”>Temperature</th>
<th rowspan=”2”>Wind</th> Q. Write html code for displaying time and day. Make use of VB script.
</tr>
<tr> <html>
<th>High</th> <head>
<th>Low</th> <title>VBScript Code</title>
</tr> </head>
<tr> <body>
<td align=”left”>Aurangabd</td> <script language =”VBScript”>
<td align=”center”>30</td> document.write(“Today’s Date is:”)
<td align=”center”>20</td> document.write(MonthName(Month(Now) & “/” & Day(Now) & “/” & Year(Now))
<td align=”left”>South</td> document.write(“The Time is:”)
</tr> document.write(“Time())
<tr> </script>
<td align=”left”>Jalna</td> </body>
<td align=”center”>32</td> </html>
<td align=”center”>21</td>
<td align=”left”>South</td> O/P:-
</tr> Today’s Date is: 11/7/2020
<tr> The time is: 9:35:56 AM
<td align=”left”>Parbhani</td>
<td align=”center”>35</td> Note:- Above program shows current system date and time as a output.
<td align=”center”>22</td>
<td align=”left”>West</td> Q. Write html code for displaying time and day. Make use of VB script.
</tr>
<caption aligh=”bottom”><b><u>Weather’s Report</u></b></caption> <html>
</table> <head>
</body> <title>VBScript Code</title>
</html> <script language =”VBScript”>
document.fgcolor=”h FF0000”
document.bgcolor=”h 00FF00”
msg box “Welcome to VBScript”
</script>
</head>
<body>
VBScript
</body>
</html>

You might also like