Leakbali
w3 Tutorial, Web Tutorial
Register   Login
Share

Empty Elements Must Also Be Closed 


Empty elements must also be closed.

This is wrong:

A break: <br>
A horizontal rule: <hr>
An image: <img src="happy.gif" alt="Happy face">

This is correct:

A break: <br />
A horizontal rule: <hr />
An image: <img src="happy.gif" alt="Happy face" />
More Tutorial
  1. XHTML - Get Ready For XHTML
  2. XHTML - The most Important Differences
  3. XHTML - XHTML Elements Must Be Properly Nested
  4. XHTML - XHTML Must Always be Closed
  5. XHTML - Empty Elements Must Also Be Closed
  6. XHTML - XHTML Elements Must Be In Lower Case
  7. XHTML - XHTML Documents Must Have One Root Element

Tutorial


References

About Us

Home
About Us
Contact Us
Sitemap

Tools

Google PageRank
Alexa Rank
Keywords Density

Accounts

Register Account
Login
Valid XHTML 1.0 TransitionalValid CSS!
Web Directory


2006 - 2012 © Leakbali.com - Free Web Tutorial, Free Web Articles, Web Sharing, Source Codes, Web References