Jump to content

Custom Tags


iyeru42

Recommended Posts

I was wondering if it was at least OK practice to use custom-made tags in HTML. For example, the below code:

<TAGGER class="blah">Content</TAGGER>

I've done this before, and HTML said it was all fine and dandy (without any XML.)

Link to comment
Share on other sites

I am not sure, but, unless a tag is understood by the browser, I dought it will function. I will look into it for you.Best of Luck!

Link to comment
Share on other sites

You can use them but you will not be able to validate your code. You could use something like this instead

<span class="tagger"></span>

Then your CSS or javascript could check for the tagger class and not the tag

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...