Need advice on code

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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?


Re: Need advice on code

writing in news:08ec2d96-43df-45cf-888a-a9701a23a436

Quoted text here. Click to load it

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

<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">

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

Adrienne Boswell at Home
Arbpen Web Site Design Services
Please respond to the group so others can share

Re: Need advice on code

Quoted text here. Click to load it
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.

Re: Need advice on code

Quoted text here. Click to load it

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

Managing outsourced projects ranging from fine artwork and business
graphics to website design and maintenance.

Re: Need advice on code

DocuMaker wrote:

Quoted text here. Click to load it

Of course forms can be styled

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

Take care,


Site Timeline