How to Create your own HTML Tags in CSS



Just wondering,

How do I create myown HTML tags.

For example, whenever you use ur own custom tag such as <name> it goes to the CSS file and looks for the defning class, and does it. Cause right now when I try and od that it doesn't recognize it so it just comes out as <name>JOHNNY SMITH</name> as the output.. instead of JOHNNY SMITH in the right format.

ANy ideas?:(


Glaanies script monkey
Political User
I think your mistaken, you need to define either a class or an id, ie:

.red {
    color : #ff0000;

#blue {
    color : #0000ff; 
<div class='red'>This text is red as defined by the css class .red</div>
<div id='blue'>This text is blue as defined by the css id #blue</div>


OSNN Veteran Addict
yep what they said

if you want to create your own tags then you are looking at XML, and then XSLT stylesheets and a whole new set of headaches.
I have written a few XML DocTypes and those are not the nicest things to try and work out

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
What a long strange trip it's been. =)

Forum statistics

Latest member