Do browsers support HTML markup using namespaces (see Code)?

It seems like namespaces can be used in an HTML document. Although, I have never seen this done. If I used namespaces in my document, would browsers display it correctly?

Here is your HTML:

<html>
<head>
</head>
<body>
   <input type="button"/>
</body>
</html>

Here is your HTML on namespaces:

<h:html xmlns:h="http://www.w3.org/1999/xhtml">
<h:head>
</h:head>
<h:body>
   <h:input type="button"/>
   <svg:svg xmlns="http://www.w3.org/2000/svg"/>
</h:body>
</h:html>

Have questions?

FYI SVG uses namespaces and is rendered by browsers. See this .

-1
source share
1 answer

XML- (, XML , XML) HTML. HTML , , XML " ". , , . , XML, XML, , . , , , , HTML, .

+1

Source: https://habr.com/ru/post/1621185/


All Articles