Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Html Legend, Learn how to create a handy legend with HTML!
KansukeKojima
post Nov 13 2007, 09:57 PM
Post #1


Privileged Member
*********

Group: [HOSTED]
Posts: 524
Joined: 13-October 06
From: Alberta, Canada
Member No.: 31,584



I think this is pretty neat... good for those people who maybe aren't that great at designing things but still want something to look nice..

CODE
<fieldset>
<legend>Legend title</legend>
Content
</fieldset>

try it in note pad.. it looks nice...good for forums, sign up forms...
Go to the top of the page
 
+Quote Post
CrashCore
post Feb 13 2008, 04:03 AM
Post #2


Super Member
*********

Group: [HOSTED]
Posts: 225
Joined: 8-April 05
Member No.: 5,385



That is a really cool trick that I actually didn't know existed, but unfortunately, it doesn't validate at http://validator.w3.org/ sad.gif Still, very neat.
Go to the top of the page
 
+Quote Post
jlhaslip
post Feb 13 2008, 04:53 AM
Post #3


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,874
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



That sample likely doesn't validate because the Form is not complete.
Check this version: http://www.jlhaslip.trap17.com/contact_form/contact.php

Do a View Source to see a Fieldset/Legend combination that validates. The Fieldset includes a div, etc, so that may be why it passes.
Go to the top of the page
 
+Quote Post
anachro
post Feb 13 2008, 06:46 AM
Post #4


Member [Level 1]
****

Group: Members
Posts: 68
Joined: 7-January 08
Member No.: 55,865



I learned about legend when I was looking for some HTML to pimp out my myspace (yeah, sad I know, learning because of myspace sad.gif ) it's a neat feature, and a good way to make cool looking boxes if you know how to code youself some good ol' CSS to go with it.
Go to the top of the page
 
+Quote Post
hitmanblood
post Feb 13 2008, 12:47 PM
Post #5


Privileged Member
*********

Group: [HOSTED]
Posts: 775
Joined: 13-April 07
From: mreža
Member No.: 41,558



Yes it is great to use I use tthis almost always in the forms to separte different fields and so on. It is just great and I suggest that you all use it and it helps your visitors when they see nicely organized content. Good luck with using it really biggrin.gif but it is so simple you fill in elements and it gets wrapped with box you can even change other things using css and sme modifiers.
Go to the top of the page
 
+Quote Post
KansukeKojima
post Feb 13 2008, 10:03 PM
Post #6


Privileged Member
*********

Group: [HOSTED]
Posts: 524
Joined: 13-October 06
From: Alberta, Canada
Member No.: 31,584



Thank you for the validation tip... I will be updating this valid part to my website.. within about five minutes..... didn't think about putting divs there lol....
Go to the top of the page
 
+Quote Post
encryptopath
post Feb 15 2008, 06:39 PM
Post #7


Newbie
*

Group: Members
Posts: 8
Joined: 15-February 08
Member No.: 57,917



Thanks for that , it makes a cool addition to my html files , and it's easily customisable with css too biggrin.gif


This post has been edited by encryptopath: Feb 15 2008, 07:01 PM
Go to the top of the page
 
+Quote Post
ultraviolet_66
post Feb 22 2008, 11:12 AM
Post #8


Newbie
*

Group: Members
Posts: 3
Joined: 22-February 08
Member No.: 58,260



thats nice its the first time i see it..
i have studied many html code but that is some kind of a rare cod hehehe....
thnx by the way...
Go to the top of the page
 
+Quote Post
suberatu
post Feb 24 2008, 09:04 PM
Post #9


Advanced Member
*******

Group: Members
Posts: 132
Joined: 23-September 07
Member No.: 50,511



I've never seen those HTML tags either, but the outcome is nice and organized. Thank you for the info.
Go to the top of the page
 
+Quote Post
Deviatore
post Mar 6 2008, 11:57 AM
Post #10


Newbie
*

Group: Members
Posts: 5
Joined: 2-February 07
Member No.: 38,169