HTML Commands
HTML Commands
Course :BCA
SemCourse :BCA
Semester :4th
Subject : WD
Faculty: Ms. Rubbina
Topic :HTML Commands
MOST COMMONLY USED TAGS IN
HTML
HTML contains lots of predefined tag. Some
of them are described below:
Syntax:
<h1> Statements... </h1>
<h2> Statements... </h2>
<h3> Statements... </h3>
<h4> Statements... </h4>
<h5> Statements... </h5>
<h6> Statements... </h6>
Paragraph tag: It is used to define paragraph
content in html document.
Syntax:
<em>GeeksforGeeks</em>
Bold tag: It is used to specify bold content in
html document.
Syntax:
<b>Bold word</b>
Italic tag: It is used to write the content in
italic format.
Syntax:
<i>GeeksforGeeks</i>
Small (text) tag: It is used to set the small
font size of the content.
Syntax:
<small>Example</small>
Underline tag: It is used to set the content
underline.
Syntax:
<u>GeeksforGeeks</u>
Deleted text tag: It is used to represent as
deleted text. It cross the text content.
Syntax:
<strike>GeeksforGeeks</strike>
Anchor tag: It is used to link one page to
another page.
Syntax:
<a href="https://www.geeksforgeeks.org/">
GeeksforGeeks</a>
List tag: It is used to list the content.
Syntax:
<ol>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</ol>
Unordered List tag: It is used to list the content
without order.
Syntax:
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</ul>
Center tag: It is used to set the content into
the center.
Syntax:
<center>GeeksforGeeks</center>
Font tag: It is used to specify the font size,
font color and font-family in html document.
Syntax:
Syntax:
<img>
<hr/>
Example
<!DOCTYPE html>
<html>
<head>
<title>Superscript Text Example</title>
</head>
<body>
<p>The following word uses a <sup>superscript</sup>
typeface.</p>
</body>
</html>
This will produce the following result −
<!DOCTYPE html>
<html>
<head>
<title>Subscript Text Example</title>
</head>
<body>
<p>The following word uses a <sub>subscript</sub>
typeface.</p>
</body>
</html>
This will produce the following result −
<!DOCTYPE html>
<html>
<head>
<title>Inserted Text Example</title> </head>
<body>
<p>I want to drink
<del>cola</del><ins>wine</ins></p>
</body>
</html>
LARGER TEXT
The content of the <big>...</big> element is
displayed one font size larger than the rest of the
text surrounding it as shown below −
Example
<!DOCTYPE html>
<html>
<head>
<title>Larger Text Example</title>
</head>
<body>
<p>The following word uses a <big>big</big>
typeface.</p>
</body>
</html>
This will produce the following result −
The following word uses a big typeface.
HTML <FOOTER> TAG
<footer>
<p>Author: Hege Refsnes<br>
<a href="mailto:[email protected]">hege
@example.com</a></p>
</footer>
Y O U
TH ANK