I want to create a HTML user-defined element to use it in my CSS file,how is that ?I used <Comment>xxxxx</Comment> but it's not getting applied from the CSS file.
Thanks
Printable View
I want to create a HTML user-defined element to use it in my CSS file,how is that ?I used <Comment>xxxxx</Comment> but it's not getting applied from the CSS file.
Thanks
I am not sure what you mean.
Do you want to have a user defined CSS class? I think you can extend XHTML to include user defined elements, but as for whether a browser would recognise these and when they do, their behaviour, I don't know.
What is it you want to do?
Maybe it's not possible ! but anyway , I want to wrap a comment text within a HTML element that I define.Then I can control it in my CSS file..I know I can use span or p with class name but I'd be more cooler if it works just like the element "code" .
Use class and id selectors. :)
BTW, comment is an HTML element that defines a comment,that by default is not displayed.
I guess I've no other option ...Cheers
Maybe you should be using XML instead of HTML.Quote:
Originally Posted by Pirate
It is possible: create a custom DTD (document type definition). This way you can create elements to your liking and you can also style these and it should work.
I don't know the details, but I've seen working custom DTD HTML pages.
But it's no longer really HTML.
That's sounds a lot of work ! but I'm using dotnetnuke and I don't think I can do that.I solved it using different approach.
Well, I didn't mean to create an entirely new DTD: use existing and add a new element.