Original address: http://www.w3schools.com/xhtml/xhtml_html.asp Translation: Fan Wei Xiao You Can Prepare yourself for xhtml by Starting to Write Strict HTML. You can start writing strict HTML code to your XHML road Prepare how to get ready for XHTML starts XHTML? XHTML IS The Next Generation of HTML, But It Will of Course Take SOME TIME BROWSERS AND OTHER SOFTWARE PRODUCTS Are Ready for it.xhtml is the next generation of words of HTML, of course, before the new browser and other related software products appear It will be delayed for a while. In the meantime there are some important things you can do to prepare yourself for it. As you will learn from this tutorial, XHTML is not very different from HTML 4.01, so bringing your code up to 4.01 standards is a very good start. Our complete HTML 4.01 Reference Can Help You With That. There are some important things you can do to prepare for it. Just like you can learn from this guide, XHTML is not a lot of differences with HTML4.01, so make your code rewritable 4.01 standard is a very good start, our complete HTML4.01 reference Help you solve this problem. In Addition, you's, and never make the bagercase letters, and never make the bag Habit of skipping end tags like the p>. Now you should start writing your HTML code with lowercase letters. And never have a bad habit of jumping like p> like p> as before.
Happy Coding! Encourage in the code! The Most Important Differences: The main difference between the two: XHTML elements must be properly nested XHTML documents must be well-formed Tag names must be in lowercase All XHTML elements must be closed XHTML elements must be properly nested XHTML documents must have a good The name of the format marker must be used in lowercase letters. Some markers are non-correct mutually nested, just like this: this text is bold and italic b> i> in xhtml all elements must be prot in,: in XHTML All markers must be properly nested, like this: this text is bold and italic i> b> NOTE: A Common Mistake In Nested Lists, is to forget That The Inside List Must be withn li element, like this: Note: Everyone often makes a mistake when the list is nested, that is, forgetting the new list of inserts must be in a
.. Root element All other elements can have sub (children) elements Sub elements must be in pairs and correctly nested within their parent element The basic document structure is:. All XHTML markup must be nested in the tag of the root in. All other tags have their own submarkers. Submissions located within the parent mark must also be paired and properly nested. The basic structure of a web page is this:
... head> ... body> html> Tag names Must Be in Lower Case tag must with lowercase letters this IS Because XHTML Documents Are XML Applications. Tags Likethis is a paragraph p> body> this is correct: correct
this is a paragraph p> body> all XHTML Elements Must Be Closed All XHTML tags must have a closed Non-Empty Elements Must Have an end tag. Non-empty tags must have a shutdown.