INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

What HTML5 tag is <note_h1>?

What HTML5 tag is <note_h1>?

(OP)
Hi,

I am trying to validate a Wordpress template we have been given and the validator is saying

Quote:


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

RE: What HTML5 tag is <note_h1>?

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.

RE: What HTML5 tag is <note_h1>?

(OP)

Quote:

<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

RE: What HTML5 tag is <note_h1>?

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:

CODE --> html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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.

RE: What HTML5 tag is <note_h1>?

(OP)
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

RE: What HTML5 tag is <note_h1>?

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.

RE: What HTML5 tag is <note_h1>?

(OP)

Quote:

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close