as far as i know...
<br/>
<img....................../>
and...
<hr/>
could be wrong but i dont think so.....
check out w3schools as well, theyll tell you everything
<html> <body> <div></div> </body> </html> that is an empty div tag, there is nothing in between the <div> and </div>
The requirement for a valid XHTML is that all the tags should be closed. This is actually the difference between HTML and XHTML.
In HTML, all tags are elements and all HTML elements other than empty elements and <p> elements require a start and end tag to delimit the element's content. The <br> tag is an example of an empty element (there is no </br> tag). However, an empty element can also be closed by the start tag, such that <br /> is acceptable (<br /> is a requirement of XHTML but not HTML).
doctype, html,head, body, and title
Tags define elements. The P tag introduces a paragraph. The H4 tag introduces a fourth-level heading. A P element does not require a closing tag in HTML, but does in XHTML.
<html> <body> <div></div> </body> </html> that is an empty div tag, there is nothing in between the <div> and </div>
# Write up multiple XHTML documents, attempting to not make any mistakes. # Write multiple HTML documents, and transform them into XHTML documents. # Browse forums or other online sources for HTML documents (or incorrect XHTML documents) that need help, markup-wise. # Take on projects involving XHTML coding.
You will generally want to end any tag that does not have a closing tag with "/" at the end before closing it. The DTD Doctype declaration is the exception since the HTML tag is not opened until after it.
The requirement for a valid XHTML is that all the tags should be closed. This is actually the difference between HTML and XHTML.
(1) XHTML 1.0 Strict(2) XHTML 1.0 Transitional(3) XHTML 1.0 Frameset
XHTML is Extensible Hyper Text Markup Language. It is a stricter form of HTML with all tags closed.
In HTML, all tags are elements and all HTML elements other than empty elements and <p> elements require a start and end tag to delimit the element's content. The <br> tag is an example of an empty element (there is no </br> tag). However, an empty element can also be closed by the start tag, such that <br /> is acceptable (<br /> is a requirement of XHTML but not HTML).
XHTML opening tags are 'closed' again instantly (although they are closed again further down) e.g. .The difference between HTML, and XHTML is that XHTML is XML and HTML combined. XHTML is the strict version of HTML.Here is a script with XHTML:body{background-color:black;color:yellow;font-family:Comic Sans Ms;-moz-column-count:3; /* Firefox */-webkit-column-count:3; /* Safari and Chrome */column-count:3;}Mark Elliot Zuckerberg (born May 14, 1984) is an American software developer and Internet entrepreneur. He is best known for creating the social networking site Facebook, of which he is chief executive and president. It was co-founded as a private company in 2004 by Zuckerberg and classmates Dustin Moskovitz, Eduardo Saverin, and Chris Hughes while they were students at Harvard University. In 2010, Zuckerberg was named Time magazine's Person of the Year.and now with HTML :body{background-color:black;color:yellow;font-family:Comic Sans Ms;-moz-column-count:3; /* Firefox */-webkit-column-count:3; /* Safari and Chrome */column-count:3;}Mark Elliot Zuckerberg (born May 14, 1984) is an American software developer and Internet entrepreneur. He is best known for creating the social networking site Facebook, of which he is chief executive and president. It was co-founded as a private company in 2004 by Zuckerberg and classmates Dustin Moskovitz, Eduardo Saverin, and Chris Hughes while they were students at Harvard University. In 2010, Zuckerberg was named Time magazine's Person of the Year.notice a difference?EDIT: The newer answer actually contains CSS. This is something separate. XHTML is just a newer, improved version of HTML.
Tags define elements. The P tag introduces a paragraph. The H4 tag introduces a fourth-level heading. A P element does not require a closing tag in HTML, but does in XHTML.
doctype, html,head, body, and title
In HTML5, according to the W3C, the HTML tag is optional. (Both the opening and closing tag.) As a matter of fact, and as part of a carry-over from HTML 4.01, the HEAD and BODY elements are also optional. That said, Internet Explorer has been known to fail to render HTML5 elements that are not inside a BODY element. And, while you can work without these tags, it will make understanding and maintaining the elements more difficult. In XHTML, none of these elements are optional. Neither the opening, nor the closing tags.
HTML and XHTML use a similar language syntax; tags, elements and everything. If you know HTML, you know messy XHTML: XHTML is a "clean" HTML. * Tags can be written in any case (uppercase or lowercase). * Some tags do not need to be closed. * HTML is parsed by systems based off of the Standard Generalized Markup Language (SGML). * HTML provides less accurate reading, and needs more time to read and manipulate data. * Some parsers cannot even manipulate HTML data, which is a big problem with more finicky devices (like mobile devices). * Tags must be written in lowercase. * All tags must be closed. * Tags must be properly nested -- no overlapping elements. * XHTML is parsed by XML parsers. * XHTML provides more accurate reading, and requires less time to read and manipuate data. * If a device can parse XML (which many modern devices can), the device can manipulate XHTML data to their needs (for example, to fit a website into the screen of a mobile phone).