0% found this document useful (0 votes)
16 views

HTML Tags - Bca

These are the basic html tag

Uploaded by

anshjoshi7417
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

HTML Tags - Bca

These are the basic html tag

Uploaded by

anshjoshi7417
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 42

HTML TAGS

Tags Description Syntax

The
abbreviation
tag in HTML is
abbreviatio used to define
<abbr title=” “> … </abbr>
n the
abbreviation
or short form
of an element.

The acronym
tag in HTML is
used to define
the acronym
that gives
useful
acronym <acronym title=” “> … </acronym>
information to
browsers,
translation
systems, and
search
engines.

address The address <address> … </address>


Tags Description Syntax

tag in HTML
indicates the
contact
information of
a person or an
organization.

The anchor
tag in HTML is
anchor used to create <a herf=” “> …</a>
a hyperlink on
the webpage.

The applet tag


in HTML was
used to embed
Java applets
applet into any HTML <applet>….</applet>
document,
discontinued
starting from
HTML 5.

area This area tag <area>


is used in an
HTML
document to
Tags Description Syntax

map a portion
of an image to
make it
clickable by
the end-user.

The <article>
tag is one of
the new
sectioning
article elements in <article>..</article>
HTML5. The
tag is used to
represent an
article.

It is a useful
tag if you want
to add audio
audio such as songs, <audio>..</audio>
interviews,
etc. on your
webpage.

base The HTML <base href = ” “>


base tag is
used to
Tags Description Syntax

specify a base
URI, or URL,
for relative
links. This
URL will be
the base URL
for every link
on the page.

The bgsound
tag is used to
play the
bgsound <bgsound src=””>
soundtrack in
the
background.

The big tag in


HTML is used
to increase
the selected
text size by
big <big> Contents… </big>
one larger
than the
surrounding
text. In HTML
5.
Tags Description Syntax

The
blockquote
tag in HTML is
used to
display the
<blockquote> Contents…
blockquote long
</blockquote>
quotations (a
section that is
quoted from
another
source).

The body tag


in HTML is
used to define
the main
body <body> Contents… </body>
content
present inside
an HTML
page.

bold The bold tag <b>… </b>


in HTML is
used to
specify the
bold text
without any
extra
Tags Description Syntax

importance.

The break tag


inserts a
single
carriage
return or
break <br>
breaks in the
document.
This element
has no end
tag.

The button tag


in HTML is
used to define
the clickable
button button. <button type = “button”>
<button> tag
is used to
submit the
content.

caption The caption <caption align = “value”></caption>


tag is used to
specify the
caption of a
Tags Description Syntax

table. Only
one caption
can be
specified for
one table.

The center tag


in HTML is
used to set the
alignment of
center <center> Contents.</center>
text in the
center. Not
supported in
HTML5.

The cite tag in


HTML is used
to define the
cite title of a work. <cite>Content</cite>
It displays the
text in italic
format.

code The code tag <code>Contents</code>


in HTML is
used to define
the piece of
Tags Description Syntax

computer
code.

It is useful for
applying
styles to
entire
columns,
colgroup <colgroup> Column lists </colgroup>
instead of
repeating the
styles for each
column, and
for each row

The col tag in


HTML is used
to set the
column
column <col attribute = “value”>
properties for
each column
within a
colgroup tag.

comment The comment <!–…–>


tag is used to
insert
comments in
Tags Description Syntax

the HTML
code.

The data
element gives
an address to
a given
data <data value=””> Contents </data>
content with a
machine-
readable
translator.

The datalist
tag is used to
provide an
autocomplete
feature & used
with an input
datalist tag so that <datalist>Contents</datalist>
users can
easily fill the
data in the
forms using
select the
data.

dd The dd tag is <dd>Contents</dd>


Tags Description Syntax

used to
denote the
description or
definition of
an item in a
description
list.

The define tag


in HTML
represents the
definition
element and is
define <dfn>Contents</dfn>
used to
represent a
defining
instance in
HTML.

Delete tag is
used to mark
a portion of
delete text which has <del>Contents</del>
been deleted
from the
document.
Tags Description Syntax

This tag is
used to create
an interactive
details <details>Contents</details>
widget that
the user can
open or close.

This tag is
used to create
a popup
dialog and
dialog models on a <dialog open> Contents… </dialog>
web page.
This tag is
new in
HTML5.

The div tag is


used in HTML
to make
divisions of
content in the
div web page <div>Content</div>
(text, images,
header,
footer,
navigation
bar, etc).
Tags Description Syntax

The dl tag in
HTML is used
to represent
the
description
list. In
dl HTML4.1, it <dl> Contents… </dl>
defines
definition list
and in HTML5,
it defines
description
list.

The dt tag in
HTML is used
to specify the
description
list. It is used
dt <dt> Content… </dt>
inside the
<dl> element.
It is usually
followed by a
<dd> tag.

embed It is used as a <embed attributes>


container for
embedding
Tags Description Syntax

plug-ins such
as flash
animations.

The fieldset
tag in HTML5
is used to
make a group
of related
fieldset <fieldset>Contents</fieldset>
elements in
the form, and
it creates the
box over the
elements.

The
figurecaption
tag in HTML is
used to set a
caption to the
<figcaption> Figure caption
figcaption figure element
</figcaption>
in a
document.
This tag is
new in
HTML5.
Tags Description Syntax

The figure tag


in HTML is
used to add
self-contained
content like
figure <figure> Image content… </figure>
illustrations,
diagrams,
photos, or
codes listed in
a document.

The font tag in


HTML plays
an important
role in the
<font attribute = “value”> Content
font web page to
</font>
create an
attractive and
readable web
page.

footer The footer tag <footer> … </footer>


in HTML is
used to define
a footer of
HTML
document.
This section
Tags Description Syntax

contains the
footer
information.

This form is
used basically
for the
registration
process,
logging into
form <form> Form Content… </form>
your profile
on a website
or creating
your profile
on a website,
etc …

HTML Frames
are used to
divide the web
browser
frame window into <frame/>
multiple
sections. Not
supported in
HTML5.
Tags Description Syntax

The frameset
element
contains one
or more frame
elements. It is
used to
frameset specify the <frameset cols = “pixels|%|*”>
number of
rows and
columns in a
frameset with
their pixel of
spaces.

The head tag


in HTML is
used to define
the head
portion of the
head document <head>…</head>
which
contains
information
related to the
document.

header The header <header> …</header>


tag is used to
Tags Description Syntax

contain the
information
related to the
title and
heading of the
related
content.

An HTML
heading tag is
used to define
the headings
of a page.
These 6
heading
<h1>Heading1</
heading elements are
h1><h2>Heading2</h2>
h1, h2, h3, h4,
h5, and h6;
with h1 being
the highest
level and h6
being the
least.

hgroup The hgroup <hgroup> … </hgroup>


tag in HTML is
used to wrap
one or more
Tags Description Syntax

heading
elements from
<h1> to <h6>,
such as the
headings and
sub-headings.

The hr tag in
HTML stands
for horizontal
hr rule and is <hr>
used to insert
a horizontal
rule.

The html tag


in HTML is
used to define
html the root of <html> Contents </html>
HTML and
XHTML
documents.

Iframes The iframe tag <iframe src=”URL”


defines a title=”description”></iframe>
rectangular
region within
Tags Description Syntax

the document
in which the
browser can
display a
separate
document.

HTML Image,
how to add
the image in
HTML. In
earlier times,
the web pages
<img src=”url” alt=”some_text”
image only contains
width=”” height=””>
textual
content, which
made them
appear quite
boring and
uninteresting.

input The input tag <input type = “value” …. />


is used within
< form>
element to
declare input
controls that
allow users to
Tags Description Syntax

input data.

The ins tag is


typically used
to mark a
ins range of text <ins> Contents… </ins>
that has been
added to the
document.

This tag is
generally used
to display a
technical
italic term, phrase, <i> Contents</i>
the important
word in a
different
language.

kbd The text <kbd> text content … </kbd>


enclosed
within kbd tag
is typically
displayed in
the browser’s
default
Tags Description Syntax

monospace
font.

The keygen
tag in HTML is
used to
specify a key-
pair generator
field in a form.
keygen When a form <keygen name = “name”>
is submitted
then two keys
are generated,
the private
key and a
public key.

The label tag


in HTML is
used to
provide a
label <label> form content… </label>
usability
improvement
for mouse
users.

legend The legend tag <legend> Text </legend>


Tags Description Syntax

is used to
define the title
for the child
contents. The
legend
elements are
the parent
element.

The list tag in


HTML is used
to define the
list item in an
HTML
list document. It <li> List Items </li>
is used within
an Ordered
List <ol> or
Unordered
List <ul>.

main The main tag <main>Coontents</main>


is used to give
the main
information of
a document.
The content
inside the
Tags Description Syntax

<main>
element
should be
unique for the
document.

The mark tag


in HTML is
used to define
the marked
mark text. It is used <mark> Contents… </mark>
to highlight
the part of the
text in a
paragraph.

The marquee
tag in HTML is
used to create
scrolling text
marquee or images on a <marquee>Contents</marquee>
webpage. It
scrolls either
horizontally
or vertically.

menuitem The menuitem <menuitem label=”” icon=”” type>


Tags Description Syntax

tag is used to
define a
command or
menu that the
user can
</menuitem>
utilize from
the popup
item. Not
supported in
HTML5.

meta The meta tag <meta attribute-name=”value”>


is regularly
used to give
watchwords,
portrayals,
author data,
and other
metadata that
might be
utilized by the
program to
deliver the
document
accurately or
in simple
words, it
provides
important
Tags Description Syntax

information
about a
document.

It is used to
define the
scale for
measurement
in a well-
meter <meter attributes…> </meter>
defined range
and also
supports a
fractional
value.

nav The nav tag is <nav> Links… </nav>


used for
declaring the
navigational
section in
HTML
documents.
Websites
typically have
sections
dedicated to
navigational
links, which
Tags Description Syntax

enables users
to navigate
the site.

The no break
tag is used to
create a single
line text, that
does not
nobreak matter how <nobr> Statement </nobr>
long the
statement is,
this tag is
used with
<wbr> tag.

The object tag


is an HTML
tag used to
display
multimedia
object <object>…</object>
like audio,
videos,
images, PDFs,
and Flash on
web pages.
Tags Description Syntax

This tag is
used to create
a group of the
optgroup same category <optgroup>…</optgroup>
options in a
drop-down
list.

The option tag


in HTML is
used to
option choose an <option> Contents… </option>
option from a
Drop-Down
menu.

The output tag


in HTML is
used to
represent the
result of a
output <output> Results… </output>
calculation
performed by
the client-side
script such as
JavaScript.
Tags Description Syntax

The <p> tag in


HTML defines
a paragraph.
paragraphs These have <p> Content </p>
both opening
and closing
tags.

The param tag


in HTML is
used to define
a parameter
param for plug-ins <param name=”” value=””>
which is
associated
with <object>
element.

In HTML,
phrase tag is
used to
phrase indicate the <em> Text Content </em>
structural
meaning of a
block of text.

pre The pre tag in <pre> Contents… </pre>


Tags Description Syntax

HTML is used
to define the
block of
preformatted
text which
preserves the
text spaces.

It is used to
represent the
progress of a
task. It is also
defined how
progress <progress attributes…> </progress>
much work is
done and how
much is left to
download a
thing.

The q tag is a
standard
quotation tag
q <q> Contents… </q>
and is used for
short
quotations.

rp The rp tag in <rp>[</rp> Explaination…


Tags Description Syntax

HTML is used
to provide
parentheses
around a ruby
<rp>]</rp>
main text
which defines
the
information.

The rt tag in
HTML is used
to define the
explanation of
the ruby
rt <rt> Explanation… </rt>
annotation
which is a
small text,
attached to
the main text.

ruby The ruby tag <ruby attributes> Contents… </ruby>


in HTML is
used to
specify the
ruby
annotation
which is a
small text,
Tags Description Syntax

attached with
the main text
to specify the
meaning of
the main text.

This tag is
used to
specify that
the text
content is no
longer correct
s <s> Contents… </s>
or accurate.
This tag is
similar but
slightly
different from
<del> tag.

It is a phrase
tag used to
define the
samp sample output <samp> Contents… </samp>
text from a
computer
program.
Tags Description Syntax

The script tag


in HTML is
script used to define <script> Script Contents… </script>
the client-side
script.

Section tag
defines the
section of
documents
such as <section> Section Contents
section
chapters, </section>
headers,
footers, or any
other
sections.

The small tag


in HTML is
used to set
small font
sizes. It
small decreases the <small> Contents… </small>
font size by
one size (from
medium to
small, from x-
large to large).
Tags Description Syntax

The source tag


in HTML is
used to attach
source multimedia <source src=”” type=””> </source>
files like
audio, video,
and pictures.

The spacer tag


is used to
create some
spacer <spacer type=”” size=””>
white space.
Not-supporte
in HTML5 .

The HTML
span element
is a generic
inline
span <span class=””>Some Text</span>
container for
inline
elements and
content.

strike HTML strike <strike> Contents </strike>


tag, along with
understandin
Tags Description Syntax

g its
implementati
on through
the example.
The <strike>
tag defines a
strike or line
through Text.

The strong tag


in HTML is the
parsed tag
and is used to
strong <strong> Contents… </strong>
show the
importance of
the text. Make
that text bold.

The style tag <tagname style=”property:value;”>


in HTML helps
style
us to design
the web page.

sub and  The sub- <sub>subscript


sup Tags tag is text</sub><sup>superscript
used to text</sup>
add a
Tags Description Syntax

subscrip
t text to
the
HTML
docume
nt.

 The
<sup>
tag is
used to
add
superscr
ipt text
to the
HTML
docume
nt.

The
<summary>
tag in HTML is
summary used to define <summary> Content </summary>
a summary for
the <details>
element.

table HTML Table, <table>… </table>


various ways
Tags Description Syntax

to implement
it, & will also
understand its
usage through
the examples.
HTML Table is
an
arrangement
of data in
rows and
columns, or
possibly in a
more complex
structure.

The tbody tag


in HTML is
used to make
tbody a group of the <tbody> // Table contents </tbody>
same type of
content of the
body element.

td The table data <td>……..</td>


tag is used to
define a
standard cell
in an HTML
Tags Description Syntax

table.

The template
tag in HTML is
used to store
the HTML
code
template fragments, <template> Contents </template>
which can be
cloned and
inserted in an
HTML
document.

This tag is
used in HTML
table with
header and <tfoot> // Table footer contents…
tfoot
body which is </tfoot>
known as
“thead” and
“tbody”.

th The table <th> Contents… </th>


header tag in
HTML is used
to set the
Tags Description Syntax

header cell of
a table. Two
types of cells
in the HTML
table Header
& Standard.

This tag is
used in HTML
tables as head
and body <thead>Table head
thead
which are Contents…</thead>
known as
thead and
tbody.

time The time tag is <time attribute> Time… </time>


used to
display the
human-
readable
date/time. It
can also be
used to
encode dates
and times in a
machine-
readable
Tags Description Syntax

form.

The title tag in


HTML is used
to define the
title of HTML
title <title> Title name </title>
document. It
sets the title
in the browser
toolbar.

The table row


tag is used to
define a row
in an HTML
table. The
tr <tr>…..</tr>
<tr> element
contains
multiple <th>
or <td>
elements.

track The tracking <track attribute>


tag specifies
text tracks for
media
components
Tags Description Syntax

audio and
video.

The tt tag is
the
abbreviation
of teletype
text. This tag
tt is depreciated <tt> Contents… </tt>
from HTML 5.
It was used for
marking
Keyboard
input.

The underline
tag in HTML
stands for
underline, and
underline it’s used to <u> Contents… </u>
underline the
text enclosed
within the <u>
tag.

var It is a phrase <var> Contents… </var>


tag used to
Tags Description Syntax

specify the
variable in a
mathematical
equation or in
a computer
program.

HTML5 Video,
along with
knowing the
video different ways <video src=”” controls> </video>
to add the
videos to the
HTML page.

The wbr tag is


used to define
the position
within the text
wbr <wbr>
which is
treated as a
line break by
the browser.

xmp The XMP tag is <xmp> statement </xmp>


used to create
any content in
Tags Description Syntax

letter format.

You might also like