terryds Posted December 17, 2013 Share Posted December 17, 2013 (edited) Look at this one first <tag1> <tag2><label>Name:<input type="text" name="name" id="name"></label></tag2> <tag2><label>Email:<input type="email" name="email" id="email"></label></tag2> <tag2><label>Telephone:<input type="tel" name="tel" id="tel"></label></tag2> <tag2><label>Comment<br><textarea rows="4" cols="60" maxlength="300" name="comment" placeholder="No more than 300 characters long"></textarea></label></tag2> </tag1> Could you please tell me what tag should i use ? I'm thinking of ul,ol,p,div,dl .. But, i don't know which one to choose... Edited December 17, 2013 by terryds Link to comment Share on other sites More sharing options...
davej Posted December 17, 2013 Share Posted December 17, 2013 (edited) Does it serve a purpose or is it pointless nesting? http://www.w3schools.com/html/html5_semantic_elements.asp Edited December 21, 2013 by davej Link to comment Share on other sites More sharing options...
terryds Posted December 17, 2013 Author Share Posted December 17, 2013 (edited) It is pointless nesting... I just want to ask what tag i shoud use for semantic form? should i use ul,ol,dl,p , or even wrap in the div? Edited December 17, 2013 by terryds Link to comment Share on other sites More sharing options...
Ingolme Posted December 17, 2013 Share Posted December 17, 2013 Normally I don't put a <tag2> and <tag1> would be a <fieldset> element. I turn the <label> elements into blocks to make them stack up on eachother. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now