Anda di halaman 1dari 9

HTML Tags – Sample files

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body>

<h1>Heading</h1>

<p>Paragraph</p>

</body>

</html>

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body>

<h1>Heading</h1>

<a href="http://www.google.co.in">Link
1</a><br>

<a href="Eg3.html">Link 2</a><br>

<a href="New folder/Eg3.html">Link 3</a><br>

<a href="F:/2017-Winter/CSE326 - INTERNET AND


WEB PROGRAMMING/Practice Problems/HTML/Eg3.html">Link
4</a><br>
<a href="http://www.google.co.in"
target="_blank">Link 5</a>

<a
href="mailto:abc@vit.ac.in">abc@vit.ac.in</a>

<p>Paragraph</p>

</body>

</html>

<html>

<head>

<title>Eg3</title>

</head>

<body>

<p> Para Line 1<br/> Line 2 </p>

<p>

This is another paragraph with a

&nbsp; GAP &nbsp; between

some of the words.

</p>

<p>

&nbsp;&nbsp; This paragraph is<br/>

indented on the first line<br/>

but not on subsequent lines.

</p>

<p title="Tooltip">

This is a paragraph with Tooltip.


</p>

</body>

</html>

<html>

<head>

<title>Eg4</title>

</head>

<body>

<h1> heading 1</h1>

<p>

Here is some text.%""!@#$%^&*()

</p>

<h2>Subheading</h2>

<p>

Here is some subtext.

</p>

<hr/>

<h1>heading 2</h1>

<p>

Here is some more text.

</p>

<hr size=10/>

</body>

</html>

<!DOCTYPE html>
<html>

<head>

<title>Page Title</title>

</head>

<body>

<h1>Heading</h1>

<img src="VITLOGO.png" alt="VIT LOGO"


width="228" height="128">

<br/><img src="VITLOGOa.png" alt="VIT LOGO"


width="228" height="128"/>

<p>Paragraph</p>

<img src="VITLOGO.png">

</body></html>

<html>

<head>

<title >Internal Links in a Page</title>

</head>

<body>

<p align="center">

[ <a href="#HTML">HTML</a> |

<a href="#HTTP">HTTP</a> |

<a href="#IP">IP</a> |

<a href="#TCP">TCP</a> ]

</p>
<p>

<br><br><br><br><br><br><br><br><br>

<br><br><br><br><br><br><br><br><br>

<br><br><br><br><br><br><br><br><br>

<br><br><br><br><br><br><br><br><br>

Computer acronyms:

<dl><!-- Definition list -->

<a name="HTML"></a><dt><b>HTML</b>

<dd>HyperText Markup Language

<a name="HTTP"></a><dt>HTTP

<dd>HyperText Transfer Protocol

<a name="IP"></a><dt>IP

<dd>Internet Protocol

<a name="TCP"></a><dt>TCP

<dd>Transfer Control Protocol

</p>

</body>

</html>

<html>

<head>

<title>Text Styles</title>

</head>

<body align="center">

<p>

Text <b>bold</b>, <i>italics</i>,<del>del</del>,


<ins>ins</ins>,<mark>mark</mark>

<big title="Tooltip">resizing with tooltip</big>.

<br/>

Typewriter Font:

<tt>i = i + 1;</tt> <br />

<small>2<sup>2</sup></small> = 4

</p>

</body>

</html>

<html>

<head>

<title>Eg 8</title>

</head>

<body bgcolor="SALMON">

<p>

<tt><pre>

for (i = 0; i < 10; i++)

sum = sum + i;

</pre></tt>

</p>

<p>

Blockquote

<blockquote>
A section that is quoted from another source.

</blockquote>

</p>

<p>

IWP <br>

<font size="7">IWP</font><br>

<big><font size="10">IWP</font></big>

</p>

<p>

<font color='green'>IWP</font><br>

<font color='rgb(200,100,10)'>IWP</font><br><br>

<font face="Times New Roman" size="5">

Times New Roman</font><br>

<font face="verdana">verdana!</font><br>

<font face="Courier">Courier!</font>

<!-- Arial,WildWest,Impact, Courier New, Century


Gothic,

Modern,Bedrock-->

</p>

</body>

</html>

<html>

<head>

<title>Simple Lists</title>
</head>

<body> <font face="Times New Roman" size="5" color =


"green">

<p>

<ol><!--Ordered List-->

<li>First.

<li>Second.

<li>Third.

</ol>

<p>New Para</p>

<ol start="5"><!--Ordered List-->

<li>five.

<li>six.

<li>seven.

</ol>

<ul><!--Un Ordered List-->

<big><li>One.

<li type="disc">Two.

<li type="circle">Three.

<li type="square">Four.

</big>

</ul>

</p>

<p>

<dl><!--Definition List-->
<dt>HTML

<dd>HyperText Markup Language

<dt>HTTP

<dd>HyperText Transfer Protocol

</dl>

</p>

</font>

</body>

</html>

Anda mungkin juga menyukai