Function:
The HTML <area> tag is used for defining an area in an image map.
Difference between HTML and XHTML:
In HTML the <area> tag has no end tag.
In XHTML the <area /> tag must be properly closed.
Function:
The HTML <base> tag is used to specify a base URI, or URL, for relative links. For example, you can set the base URL once at the top of your page in header section, then all subsequent relative links will use that URL as a starting point.
Difference between HTML and XHTML:
In HTML the <base> tag has no end tag.
In XHTML the <base /> tag must be properly closed.
Function:
The HTML <bgsound> tag is used to play a soundtrack in the background. This tag is for Internet Explorer documents only.
Difference between HTML and XHTML:
In HTML the <bgsound> tag has no end tag.
In XHTML the <bgsound /> tag must be properly closed.
Function:
The HTML <br /> tag is used to give a line break.
Difference between HTML and XHTML:
In HTML the <br> tag has no end tag.
In XHTML the <br /> tag must be properly closed.
Function:
The HTML <frame> tag is used to specify each frame within a frameset tag.
Difference between HTML and XHTML:
In HTML the <frame> tag has no end tag.
In XHTML the <frame /> tag must be properly closed.
Function:
The HTML <hr> tag is used for creating a horizontal line. This is also called Horizontal Rule in HTML.
Difference between HTML and XHTML:
HTML syntax is <hr>
XHTML syntax is <hr />
Function:
The HTML <img> tag is used to put an image in an HTML document.
Difference between HTML and XHTML:
In HTML the <img> tag has no end tag.
In XHTML the <img /> tag must be properly closed.
The align, border, hspace, and vspace attributes of the image element are deprecated in HTML as well as in XHTML.
Function:
The HTML <input> tag is used within a form to declare an input element - a control that allows the user to input data.
Difference between HTML and XHTML:
In HTML the <input> tag has no end tag.
In XHTML the <input /> tag must be properly closed.
Function:
The HTML <keygen> tag is used to process Web forms with certificate management systems. The element generates a secure key and submits the public key.
NOTE: This is a Netscape only element, and there is not a lot of documentation on it.
Difference between HTML and XHTML:
In HTML the <keygen> tag has no end tag.
In XHTML the <keygen /> tag must be properly closed.
Function:
The HTML <link> tag is used for defining a link to an external document. It is placed in the <head> section of the document.
Difference between HTML and XHTML:
In HTML the <link> tag has no end tag.
In XHTML the <link /> tag must be properly closed.
Function:
The HTML <meta> tag is used for declaring metadata for the HTML document.
Difference between HTML and XHTML:
In HTML the <meta> tag has no end tag.
In XHTML the <meta /> tag must be properly closed.
The HTML <param> tag is used for passing parameters to an embedded object using <object> tag.
Difference between HTML and XHTML:
In HTML the <param> tag has no end tag.
In XHTML the <param /> tag must be properly closed.
Function:
The HTML <select> tag is used to create a block of white space within an html document.
This tag is available in Netscape 4 and higher version only.
Difference between HTML and XHTML:
In HTML the <spacer> tag has no end tag.
In XHTML the <spacer /> tag must be properly closed.
Function:
The HTML <wbr> tag is used defines a potential line break point if needed. This stands for Word BReak.
This is used with the <nobr> tag, <wbr> advises the extended browser when it may insert a line break in an otherwise nonbreakable sequence of text. Unlike the <br> tag, which always causes a line break, even within a <nobr>- tagged segment, the <wbr> tag works only when placed inside a <nobr>- tagged content segment and causes a line break only if the current line has already extended beyond the browser's display window margins.
Difference between HTML and XHTML:
In HTML the <wbr> tag has no end tag.
In XHTML the <wbr /> tag must be properly closed.
That's all folks!
These are all the different between HTML and XHTML.