dwjohnston
dwjohnston

Reputation: 11771

Is there a panel in HTML?

In .NET you have a panel object.

enter image description here

This gives you a border, as well as a label, which is good for grouping objects.

Is there a similar device in HTML? I assumed there was, but my google-fu is failing me here.

Upvotes: 2

Views: 514

Answers (4)

BlackHatSamurai
BlackHatSamurai

Reputation: 23483

HTML has fieldset. Here is an example from Mozilla docs

    <form action="test.php" method="post">
      <fieldset>
        <legend>Title</legend>
        <input type="input" name="radio" id="radio"> <label for="radio">Enter text</label>
      </fieldset>
    </form>

Upvotes: 2

code1x1.de
code1x1.de

Reputation: 304

Do you mean div, section or article elements in HTML like this?

http://www.w3schools.com/html/html5_new_elements.asp

or

http://www.w3schools.com/html/html_layout.asp

this?

Upvotes: 1

GolezTrol
GolezTrol

Reputation: 116100

The fieldset tag is used a group box or panel to surround form elements. You can use a legend element for the caption.

<fieldset>
    <legend>Edit Method Based Query</legend>
    <label for="methodName">Method name: </label><input id="methodName"  .. >
    
    </fieldset>

Upvotes: 3

Andy G
Andy G

Reputation: 19367

A fieldset is the nearest equivalent.

Upvotes: 3

Related Questions