HTML
HTML introduction
HTML basics
HTML colors
HTML backgrounds
HTML text
HTML font
HTML text formatting
HTML entities
Display tags
HTML links
Email links
Types of links
HTML images
HTML image maps
HTML tables
HTML frames
HTML forms
Fieldset/legend tags
HTML stylesheets
Div/span tags
HTML layout
HTML marquees
HTML multimedia
HTML meta tags
HTML document types
HTML base tag
HTML scripts
URL formatting
Encoding and decoding
HTML summary

Programming

Programming intro
Java

Markup

First webpage guide
XHTML

Style & Layout

CSS

Browser scripting

Javascript
VBScript
AJAX

Server scripting

PHP
ASP

Making money online

Make money online

Fieldset and legend tags

HTML provides some tags that place an emphasis on certain data and at the same time add some style to a webpage.

This lesson focuses on:

The <fieldset> tag

The <fieldset> tag creates a box around certain data that places emphasis on it.

Example:

<fieldset>
<h1>This text will have a box around it</h1>
</fieldset>

Output:

This text will have a box around it

The <legend> tag

The <legend> tag will add some title text to the box created by the <fieldset> tag.

Example:

<fieldset>
<legend>
Message
</legend>
<h1>This text will have a box around it</h1>
</fieldset>

Output:

Message

This text will have a box around it

Practice

Online code editor
Practical examples
Practical exercises
Step-by-step tutorials

Reference

Terms glossary
Reference material

Rate this site

Rate this site
Visitor comments