-
Feb 11th, 2007, 01:40 PM
#1
Thread Starter
Sleep mode
HTML user-defined element , howto ?
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
Last edited by Pirate; Feb 11th, 2007 at 02:13 PM.
-
Feb 11th, 2007, 01:48 PM
#2
Re: HTML user-defined element , howto ?
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?
-
Feb 11th, 2007, 01:56 PM
#3
Thread Starter
Sleep mode
Re: HTML user-defined element , howto ?
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" .
-
Feb 11th, 2007, 02:10 PM
#4
Re: HTML user-defined element , howto ?
Use class and id selectors.
-
Feb 11th, 2007, 02:10 PM
#5
Re: HTML user-defined element , howto ?
BTW, comment is an HTML element that defines a comment,that by default is not displayed.
-
Feb 11th, 2007, 02:12 PM
#6
Thread Starter
Sleep mode
I guess I've no other option ...Cheers
-
Feb 12th, 2007, 01:05 AM
#7
Re: HTML user-defined element , howto ?
Originally Posted by Pirate
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" .
Maybe you should be using XML instead of HTML.
-
Feb 12th, 2007, 12:03 PM
#8
Re: HTML user-defined element , howto ?
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.
-
Feb 12th, 2007, 06:45 PM
#9
Re: HTML user-defined element , howto ?
But it's no longer really HTML.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Feb 12th, 2007, 11:37 PM
#10
Thread Starter
Sleep mode
Re: HTML user-defined element , howto ?
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.
-
Feb 13th, 2007, 12:32 AM
#11
Re: HTML user-defined element , howto ?
Well, I didn't mean to create an entirely new DTD: use existing and add a new element.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|