Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Need advice on code

Reply
Thread Tools

Need advice on code

 
 
shapper
Guest
Posts: n/a
 
      12-13-2007
Hello,

I have a page with the following content and using the following tags:

Title <h1>
Description <span>
Text <p>
Form Header <h2>
Form <ul> (the form inputs and buttons are
inside the <li> tags)
Text <p>

My question is:
Is there any reason to put my FormHeader and Form wrapped around
inside a div?

Thanks,
Miguel
 
Reply With Quote
 
 
 
 
Adrienne Boswell
Guest
Posts: n/a
 
      12-14-2007
Gazing into my crystal ball I observed shapper <>
writing in news:08ec2d96-43df-45cf-888a-a9701a23a436
@e6g2000prf.googlegroups.com:

> Hello,
>
> I have a page with the following content and using the following tags:
>
> Title <h1>
> Description <span>
> Text <p>
> Form Header <h2>
> Form <ul> (the form inputs and buttons are
> inside the <li> tags)
> Text <p>
>
> My question is:
> Is there any reason to put my FormHeader and Form wrapped around
> inside a div?
>
> Thanks,
> Miguel
>


Why are you using this kind of markup? Use the correct element for the
job:

<h1>Page Title</h1>
<p>Use the form to send information.</p>
<form method="post" action="somescript">
<fieldset><legend>Form Title</legend>
<label for="field1">Field1 </label> <input type="text" name="field1"
id="field1" value="initial value"><br>
<label for="field2">Field2 </label> <input type="text" name="field2"
id="field2" value="initial value"><br>
<input type="submit" value="Submit">
</fieldset>
</form>

Using this kind of markup, you can style the elements any way you wish.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 
Reply With Quote
 
 
 
 
DocuMaker
Guest
Posts: n/a
 
      12-14-2007
On Dec 13, 2:37 pm, shapper <mdmo...@gmail.com> wrote:
> Hello,
>
> I have a page with the following content and using the following tags:
>
> Title <h1>
> Description <span>
> Text <p>
> Form Header <h2>
> Form <ul> (the form inputs and buttons are
> inside the <li> tags)
> Text <p>
>
> My question is:
> Is there any reason to put my FormHeader and Form wrapped around
> inside a div?
>
> Thanks,
> Miguel


I can't think of a reason since forms automatically break onto a new
line. Unless forms can accept styles - then no.

---
http://www.outsource2documaker.com
Managing outsourced projects ranging from fine artwork and business
graphics to website design and maintenance.
 
Reply With Quote
 
Chaddy2222
Guest
Posts: n/a
 
      12-14-2007
On Dec 14, 6:13 pm, Adrienne Boswell <arb...@yahoo.com> wrote:
> Gazing into my crystal ball I observed shapper <mdmo...@gmail.com>
> writing in news:08ec2d96-43df-45cf-888a-a9701a23a436
> @e6g2000prf.googlegroups.com:
>
>
>
>
>
> > Hello,

>
> > I have a page with the following content and using the following tags:

>
> > Title <h1>
> > Description <span>
> > Text <p>
> > Form Header <h2>
> > Form <ul> (the form inputs and buttons are
> > inside the <li> tags)
> > Text <p>

>
> > My question is:
> > Is there any reason to put my FormHeader and Form wrapped around
> > inside a div?

>
> > Thanks,
> > Miguel

>
> Why are you using this kind of markup? Use the correct element for the
> job:
>
> <h1>Page Title</h1>
> <p>Use the form to send information.</p>
> <form method="post" action="somescript">
> <fieldset><legend>Form Title</legend>
> <label for="field1">Field1 </label> <input type="text" name="field1"
> id="field1" value="initial value"><br>
> <label for="field2">Field2 </label> <input type="text" name="field2"
> id="field2" value="initial value"><br>
> <input type="submit" value="Submit">
> </fieldset>
> </form>
>
> Using this kind of markup, you can style the elements any way you wish.
>

I agree. I really hate sites that use headings just to make a bit of
text bold, you should really use a style rule for such things.
--
Regards Chad. http://freewebdesignonline.org
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      12-14-2007
DocuMaker wrote:

> I can't think of a reason since forms automatically break onto a new
> line. Unless forms can accept styles - then no.


Of course forms can be styled

form {
margin: .5em;
padding: 1em;
border: 5px inset #f00;
color: ##000;
background-color: #fee;
}

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Organization ... Really need advice shapper ASP .Net 0 09-09-2008 05:17 PM
Need advice: Stored Proc vs SQL Code vs GUI Cirene ASP .Net 2 04-22-2008 02:26 PM
need advice on building core code for python and PHP digimotif Python 7 05-30-2007 05:46 AM
Need advice on subclassing code Rusty Shackleford Python 4 11-15-2005 05:34 PM
Needed: Advice on Film Scanning, Or Website Which Has This Advice Larry R Harrison Jr Digital Photography 0 09-06-2003 01:00 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57