Custom tag in DTD document
And now I want to add this to a DTD document, so that it can be properly validated.
I've tried to input it like this
But the w3c validator is complaining about it!
<!-- gallery object, block object -->
<!ELEMENT gallery EMPTY>
src %Text; #REQUIRED
height %Length; #IMPLIED
width %Length; #IMPLIED
What could I do to make this validated correctly?
Line 12, Column 27: document type does not allow element "gallery" here
The W3C is not complaining about my DTD document, it's only saying that my gallery tag is not allowed where it is.
My html document looks like this
<!DOCTYPE html SYSTEM "http://www.mydomain.com/xhtml.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />