Is there an XHTML5?

Asked

Viewed 36 times

0

I ask this question because based on two other questions I did not understand a solution.

The first would be this: When to use the xmlns attribute in the html element?

In this case, the accepted reply was given by @tayllan

In its example xmlns="http://www.w3.org/1999/xhtml" indicates that a syntax used in the document is actually XHTML5 and not HTML5.

Going to look more about the XHTML5 I see that question also in Sopt: There is an XHTML5 (XHTML + HTML5)?

There is no XHTML + HTML5. XHTML was a path taken by W3C to try to restrict the whole internet code pattern. The idea was for everyone to write valid and semantic code. HTML5, by is a language update initiated by a group of developers linked to companies like Apple, Google and Firefox.

So, remaking the questions:

  • Exists XHTML5?
  • What is the actual usefulness of the parameter xmlns in an HTML5 document?
  • And it is remaking the questions they are duplicates. If you are not satisfied co but answers put reward in them.

1 answer

-1

If you want to code HTML5 yet still use Valid XML syntax and headers, and serve your Document as XML, you’re coding XHTML5: it seems that ːXHTML5' has become an Official name of HTML5 coded and served as XML, Since the original term "Polyglot Markup" Never Took off.

XHTML5 is a Document that conforms to Both the HTML and XHTML syntax by using a common subset of Both the HTML and XHTML. To code XHTML5 you need to:

Use the HTML5 doctype Code in XHTML well-Formed syntax Default XHTML namespace: A server that serves up files as XML MIME type application/xhtml+xml An XHTML5 Document can be served as either HTML or XHTML, Depending on browser support and MIME type. It really only Becomes XHTML5 Document if it is served with the XML MIME type application/xhtml+xml . Otherwise, it is just really well coded HTML5

For a Document to be XML, you need a server that serves up the file as XML MIME type: application/xhtml+xml. This MIME declaration is not Visible in the source code. If you want to check how you file is served, check the HTTP Content-Type header. The XML MIME type is not yet supported by Internet Explorer, but IE can render XHTML Documents.

  • Being direct, "exists in parts". You can consider a mix of commands with HTML5.

  • here is a good description for your question, there are some explanations about the xlmns: What are namespaces in XML?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.