Reputation: 11771
In .NET you have a panel object.
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
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
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
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