Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Layout using CSS

Featured Replies

I used to recommend lists, but after a mail list discussion recently about the subject I'm unsure. http://www.mail-archive.com/wsg@webstandar...g/msg32998.html

 

By using the method they argue it'll look something like this:

 

<form>
 <fieldset>
   <label for="subject">Subject:</label>
   <input type="text" id="subject" name="subject" />
   <br />
   <label for="name">Name:</label>
   <input type="text" id="name" name="name" />
   <br />
   <label for="message">Message:</label>
   <textarea id="message" name="message"></textarea>
   <br />
   <label for="contact">Contact Email Address:</label>
   <input type="text" id="contact" name="contact" />
   <br />
 </fieldset>
</form>

 

label
{
 display: block;
}

  • Author
Note to Ben: HTML code areas doesn't preserve white space as the CODE area does...

Oh ok, Thanks.

Quick question though, why is fieldset needed? If you remove the fieldset tags it looks the same. What does fieldset do?

The fieldset is used to group form elements. <legend> is used to add a title to the fieldsets. In your case it's probably no real value in it. It's just a force of habit I go.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.