XHTML - how extend/create ELEMENT body in my DTD?


Joined
Oct 29, 2019
Messages
4
Reaction score
0
Hello.

validator.w3.org say me this code not is valid becouse ELEMENT BODY don't reknow my TAG <planet>:
Code:
<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
[
<!ELEMENT planeta (#PCDATA)>
]>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">

<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mis TAGS</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="icon" href="https://google.com/favicon.ico" type="image/x-icon" />
<style type="text/css">@import url("https://google.com/style.css");</style>
</head>
<body><planet>Jupiter</planet>
</body></html>
just I add and declarate this TAG in the DOCTYPE, but previuslly the element BODY is declarated and not include my elements (tags) as <planet>, <star>, <ovni>, etc...

Some idea about how I can eXtend my tags to this document using the DTD from W3C ?

I believe I need rewrite the ELEMENT BODY, but I am no't sure.



Thanks!

:)
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top