Share via


HTML Tab, Toolbox

The HTML tab of the Toolbox provides components that are useful on Web pages and Web forms. To view this tab, first open a document for editing in the HTML designer. On the View menu, click Toolbox, and then click the HTML tab of the Toolbox.

To create an instance of a tool on the HTML tab, either double-click the tool to add it to your document at the current insertion point, or select the tool and drag it to the desired position on the editing surface.

Tasks

UI Elements

The following tools are available by default on the HTML tab.

  • Input (Reset)
    HTMLpageResetButton screenshot

    Inserts an input element of type="reset". To change the text that is displayed, edit the name property. By default, id="Reset1" is inserted for the first reset button, id="Reset2" for the second, and so on.

    When you drag Input (Reset) onto the Design view surface, HTML markup like the following is inserted into your document:

    <input id="Reset1" type="reset" value="Reset" name="Reset1">
    

    For more information, see HTML Input Controls, HtmlInputReset Server Control Declarative Syntax, HtmlInputButton, and Button.

  • Input (Submit)
    HTMLpageToolbarSubmitButton screenshot

    Inserts an input element of type="submit". To change the text that is displayed, edit the name property. By default, id="Submit1" is inserted for the first submit button, id="Submit2" for the second, and so on.

    When you drag Input (Submit) onto the Design view surface, HTML markup like the following is inserted into your document:

    <input id="Submit1" type="submit" value="Submit" name="Submit1">
    

    For more information, see HTML Input Controls, HtmlInputSubmit Server Control Declarative Syntax, HtmlInputButton, and Button.

  • Input (Hidden)
    HTML page Hidden Item

    Inserts an input element of type="hidden". By default, id="Hidden1" is inserted for the first hidden field, id="Hidden2" for the second, and so on.

    When you drag Input (Hidden) onto the Design view surface, HTML markup like the following is inserted into your document:

    <input id="Hidden1" type="hidden" name="Hidden1"> 
    

    For more information, see HTML Input Controls, HtmlInputHidden Server Control Declarative Syntax, and HtmlInputHidden.

  • Textarea
    HTMLpage Toolbar Text Area

    Inserts a textarea element. You can resize the text area, or use its scroll bars to view text that extends beyond its display area. To change the default text that is displayed, edit the value attribute. By default, id="textarea1" is inserted the first text area, id=" textarea 2" for the second, and so on.

    When you drag Textarea onto the Design view surface, HTML markup like the following is inserted into your document:

    <textarea id=" textarea 1 name=" textarea 1" rows=2 cols=20></textarea> 
    

    For more information, see HtmlTextArea Server Control Declarative Syntax, HtmlTextArea, and TextBox.

    Security noteSecurity Note

    It is recommended that you validate all user input. For more information, see Validating User Input in ASP.NET Web Pages.

  • Horizontal Rule
    HTML page Horizontal Rule Item

    Inserts an hr element. To increase the thickness of the line, edit the size attribute.

    When you drag Horizontal Rule onto the Design view surface, HTML markup like the following is inserted into your document:

    <hr width="100%" size=1> 
    

    For more information, see HTML Horizontal Rule Control.

  • Div
    HTML page Label

    Inserts a div element that includes an ms_positioning="FlowLayout" attribute. Except for the width and height, this item is identical to a Flow Layout Panel. To format the text that is contained within the div element, add a class="stylename" attribute to the opening tag.

    When you drag Div onto the Design view surface, HTML markup like the following is inserted into your document:

    <div ms_positioning="FlowLayout" style="width: 70px; position: relative; height: 15px">Label</div>
    

    For more information, see HTML Div Control, Label Web Server Control (Visual Studio), and Label.

See Also

Reference

Toolbox
Standard Tab, Toolbox

Other Resources

Individual Web and HTML Controls