Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What HTML5 tag is <note_h1>? 2

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hi,

I am trying to validate a Wordpress template we have been given and the validator is saying
Element note_h1 not allowed as child of element div in this context

regarding this piece of mark-up
Code:
<note_h1>Welcome Note:</note_h1>

I've hunted W3Schools and the SE's and cannot find this tag as part of the HTML5 standard?

However, W3C validator isn't saying the tag is invalid, it's implying it just can't be used as a child to a DIV?

Is this a genuine HTML5 tag? If not what is it and why has the developer used it?

Your help is appreciated.

Regards,
1DMF

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads
 
I know of no html tags with an underscore in them - I do not believe that is a genuine tag (though if I'm wrong someone correct me, and show me).

If I had to guess I would guess the developer meant <h1 class="note">, though why they did what you mentioned I wouldn't have the foggiest clue.
 
<h1 class="note">
that's exactly what I turned it into and removed the in-line styles for a CSS class.

Incidentally I found another hand-made tag :
Code:
<about_title>
, which I promptly removed, along with the <center> tags and hardcoded <br> tags and applied CSS styling instead!

So much for outsourcing to professional design company, ...if you want the job doing properly...!

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads
 
It is only a valid in XML, not in (X)HTML. Have this code validated, and the validator will tell you that <note_h1> is an undefined tag:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Demo</title>
</head>
<body>
<note_h1>Heading</note_h1>
</body>
</html>

How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.
 
Well technically X/HTML should allow for bespoke (eXtensible) mark-up, however, as the doc-type is html (HTML5), the point is mute!

Thanks for all the input, and clarification that this is invalid mark-up.




"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads
 
It's invalid markup, there are, however Javascript libraries like Angular.JS allowing such extensions to be used, but in case of angular I'd expect additional attributes for processing that to valid html at runtime.

So are there any script elements in the header pointing to some javascript framework?

Bye, Olaf.
 
So are there any script elements in the header pointing to some javascript framework?
Not that I can see, there is a...

slider.js,
html5.js,
theme-customizer.js,
navigation.js

none of which can I see any related code to the invalid tags.



"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top