How to Create your own HTML Tags in CSS

2

~2C~

Guest
#1
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?:(
 

j79zlr

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

Code:
<html>
<head>
<style>
.red {
    color : #ff0000;
}

#blue {
    color : #0000ff; 
}
</style>
</head>
<body>
<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>
</body>
</html>
 

Geffy

OSNN Veteran Addict
#4
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 https://tinyurl.com/ycpxl
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 ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,300
Members
89,016
Latest member
Poseeut