Figure 1

Figure 1 Tag to BCL Object Mapping
HTML Element
Base Class Library Object
<A>
HtmlAnchor
<INPUT>
HtmlInputButton, HtmlInputCheckBox, HtmlInputRadioButton, HtmlInputFile, HtmlInputHidden, HtmlInputImage, HtmlInputText
<FORM>
HtmlForm
<IMG>
HtmlImage
<TABLE>
HtmlTable
<TR>
HtmlTableRow
<TD>
HtmlTableCell
<SELECT>
HtmlSelect
Figure 4 Defining Web Controls Programmatically
<html>
<script language="C#" runat=server>
void Page_Load(Object source, EventArgs e)
{
    Table t = new Table();
    t.ID = "MyTable";

    TableRow r1 = new TableRow();
    TableCell c1 = new TableCell();
    c1.Controls.Add(new LiteralControl("Created #1")); 
    
    r1.Cells.Add(c1);
    t.Rows.Add(r1);

    TableCell c2 = new TableCell();
    c2.Controls.Add(new LiteralControl("Created #2")); 
    TableRow r2 = new TableRow();
    r2.Cells.Add(c2);
    t.Rows.Add(r2);
    
    MyBody.Controls.Add(t);
}
</script>

<body runat=server ID="MyBody">

<asp:Table runat=server>
    <asp:TableRow>
        <asp:TableCell> Declared #1</asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell> Declared #2</asp:TableCell>
    </asp:TableRow>
</asp:Table>

</body>

</html>