HTML and XHML look very similar. But HTML was designed long before XHTML and therefore is less rigorous. In other words, HTML does not require the coder to follow strict rules, while if you don't strictly follow the rules while coding XHTML, it just plain won't work.
Welcome to Bucaro TecHelp!

Welcome to Bucaro TecHelp!
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact Advertise on Bucaro TecHelp Advertise Here RSS News Feeds News Feeds

HTML5 Solutions: Essential Techniques for HTML5 Developers

Essential Techniques for HTML5 Developers

HTML5 brings the biggest changes to HTML in years. Web designers now have new techniques, from displaying video and audio natively in HTML, to creating realtime graphics on a web page without a plugin.

This book provides a collection of solutions to all of the most common HTML5 problems. Every solution contains sample code that is production-ready and can be applied to any project.

Click Here

XHTML Basics

Most webpage coders are familiar with HTML (HyperText Markup Language), but when they see the term XHTML many of them say "what the heck is XHTML". Well, you may have noticed that HTML and XHTML (Extensible HyperText Markup Language) look very similar. They both use tags that are delimited with < and > characters.

But HTML was designed long before XHTML and therefore is less rigorous. In other words, HTML does not require the coder to follow strict rules, while if you don't strictly follow the rules while coding XHTML, it just plain won't work. XHTML is an attempt to make HTML as rigorous as XML. In fact an XHTML webpage IS an XML document.

Here are the rules your code must follow to become XHTML:

  • Tag names must be in lower case
  • Attribute names must be in lower case
  • Attribute values must be in quotes
  • Attribute shorthand is not allowed
  • Use the id attribute instead of the name attribute
  • Tags must be properly nested
  • All tags must be closed
  • The Web page must have proper structure
  • The Web page must have a DOCTYPE declaration
  • Validate Your XHTML

Tag Names Must be in Lower Case

Okay, first grade is over for the Internet. Stop using capital letters in your code. With XHTML (or should I say xhtml) all tag names need to be in lower case. This is wrong:

<UL>
<LI>Use lower case
<LI>Use the id attribute
<LI>Properly nest tags
<LI>Close all tags
</UL>

Instead do it this way:

<ul>
<li>Use lower case</li>
<li>Use the id attribute</li>
<li>Properly nest tags</li>
<li>Close all tags</li>
</ul>

RSS Feed RSS Feed



Web Design Sections

HTML5 for Masterminds

HTML5 for Masterminds

How to take advantage of HTML5 to create amazing websites and revolutionary applications

This book is not an introduction of HTML5 but instead a complete course that will teach you how to build compelling websites and amazing web applications from scratch. Every chapter explores basic concepts as well as complicated issues of HTML5, CSS3 and Javascript.

Concepts are supported by fully functional codes to guide beginners and experts through every single tag, style or function included in the specification.

Click here for more information.


[Site User Agreement] [Advertise on This site] [Search This Site] [Contact Form]
Copyright©2001-2011 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268