PART I: Introduction (Note: i am assuming you already know html)
Since some time, the internet has been relying on HTML... or Hyper TextMarkup Language... Since it's been invented, many tries to replace ithave been thought up, but none as successfull as XHTML (eXtensive HyperText Markup Language)... let's say that it's HTML cleaned up...
oh yeah... it's kinda like a combination of XML and HTML... so... there's that
PART II: The Rules of XHTML
As you may (or may not now)... XHTML uses TAGS to work (like HTML before him)... these tags have this look:
| <tag property="attribute">Content</tag> |
some tags (like "img" or "br") require no content, so they don't use aclosing tag, in XHTML they close themselves ("/" is the closingcharacter)Example:
| <img src="image.jpg" alt="text" /> <br /> |
The document has two main parts:
| <head></head> (where you put info about the page, but not the actual content) <body></body> (the content of the page) |
| <h5><b> This is wrong </h5></b> <h5><b> This is not wrong</b></h5> |
| <img src=image.jpg alt=hello /> WRONG! <img src="image.jpg" alt="hello" /> RIGHT!! |
List Of Doctype Declarations
So... if you plan to move from HTML to XHTML, take notice of all these things.
PART III: Ending
to validate your Markup (HTML or XHTML) go to:
the W3C validation service
I hope this was usefull for those of you that use HTML already, andmore usefull for those who want to take a peak at the world of MarkupLanguages.
Related Articles
- HTML To XHTMLIf someone just says that this is the high time when you should convert your site from HTML to XHTML - you can halt or not. But if he can say this with proper logic then you must be going through his decision - adaptibility is another thing. So at first you must know basically what XHTML is. XHTML i...
- XHTML vs. HTMLA quick introduction to XHTML
- Why You Shouldn't Be Using XHTMLA lot of people these days are using XHTML. Why? Do they actually need it or are they just following a trend?
- What is XHTML?We have all heard of HTML. HTML stands for Hypertext Markup Language. What is a hypertext markup language, you ask? It is a language for specifying how certain text should appear. When you design a web page, you want certain content or text to be displayed in a specific way.
- Code Validation & Compliancy - The New Beginning XHTMLCode validation is still widely debated as to whether it is required for performance within the search engines. It is only a guess that the search engines dont utilise it within their algorithm, but nobody is actually 100% sure on that fact...
- XHTML bridges the gulf between HTML and XMLBringing XML to todays HTML-based Web, XHTML justifies the breakthrough label. It will rise slowly but surely. If you take any interest in Web technology, youll have come across references to...
- highlight_string(); With Valid XHTML 1.0 Strict OutputThis small guide aims to take the standard output from the PHP function highlight_string() and make it completely valid XHTML 1.0 Strict.
- XHTML and StylesheetsWant to build website content that can be processed by XML-compliant tools? If you answered yes, then its time to learn the rules governing XHTML.
- Why is Validation Important?Validation in your webpages is very important as proven in this tutorial. In this tutorial youll learn about Validation and how you should be making the effort to get validated!
- Do Your Know Enough About Your Visitors? Probably Not!Your site is up, its matured for a few months and now its finally getting some visitors; congratulations.
But just how much do you know about where these visitors are actually coming from and what exactly theyre doing once they reach your site?
