3. We can also create tables in the web pages.
Table can be created row by row.
Syntax (Table):
Here, codes for column will not be used.
It is created through codes of rows which
includes codes for different cells.
<TABLE>……codes for row and cell……..</TABLE>
4. S.NO. ATTRIBUTES DESCRIPTION
1. BORDER=“…….” Width of the border.
2. CELLSPACING=“……” Space between cells.
3. CELLPADDING=“…….” Space between edges of cells and its
content.
4. WIDTH=“…….” Width of the table in pixels or a percentage
of page within.
5. ALIGN=“….” Alignment of content of cell.Values LEFT,
RIGHT,CENTRE.
6. VALIGN=“…..” Vertical alignment of content of cells.
7. BGCOLOR=“…..” Background color of the cells.
8. BACKGROUND=“image.gif” URL of image to tile in all cells in a row.
9. BORDERCOLOR=“……” Color of the border.
5. Syntax:
Attributes:
<TH>…..heading of table……</TH>
S.NO. ATTRIBUTES DESCRIPTION
1. ROWSPAN=“…..” Number of rows the cell will span.
2. COLSPAN=“….” Number of columns the cell will span.
3. ALIGN=“….” Alignment of content of cell.Values LEFT,
RIGHT,CENTRE.
4. VALIGN=“…..” Vertical alignment of content of cells.
5. BGCOLOR=“…..” Background color of the cells.
6. BACKGROUND=“image.gif
”
URL of image to tile in all cells in a row.
7. BORDERCOLOR=“……” Color of the border.
6. Syntax:
Attributes:
<TR>……codes for table cell………</TR>
S.NO. ATTRIBUTES DESCRIPTION
1. ALIGN=“….” Alignment of content of cell.Values LEFT,
RIGHT,CENTRE.
2. VALIGN=“…..” Vertical alignment of content of cells.
3. BGCOLOR=“…..” Background color of the cells.
4. BACKGROUND=“image.gif
”
URL of image to tile in all cells in a row.
5. BORDERCOLOR=“……” Color of the border.
7. Syntax:
Attributes:
<TD>……..text…..</TD>
S.NO. ATTRIBUTES DESCRIPTION
1. ROWSPAN=“…..” Number of rows the cell will span.
2. COLSPAN=“….” Number of columns the cell will span.
3. ALIGN=“….” Alignment of content of cell.Values LEFT,
RIGHT,CENTRE.
4. VALIGN=“…..” Vertical alignment of content of cells.
5. BGCOLOR=“…..” Background color of the cells.
6. BACKGROUND=“image.gif
”
URL of image to tile in all cells in a row.
7. BORDERCOLOR=“……” Color of the border.
9. We can also create forms through HTML.
Syntax:
Attributes:
<FORMS>………..</FORMS>
S.NO. ATTRIBUTES DESCRIPTION
1. ACTION=“….” URL of script to run.
2. METHOD=“…..” How to send the form input to the server.
Values GET or POST
3. NAME=“……” Name by which subscripts can refers to the
forms.
10. It is used to add the features in the form.
Syntax:
BasicAttribute:
Values for Basic Attribute:
<INPUT>
<INPUTTYPE=“……..”>
1. CHECKBOX A B C
2. RADIO Male Female
3. RESET
4. TEXT
5. SUBMIT
RESET
SUBMITText to write
11. S.NO. ATTRIBUTES DESCRIPTION
1. NAME=“……..” Names passed to CGL script as part of
name/Value pair.
2. SRC=“……” URL of image file.
3. VALUE=“……” Value passed to CGI script as part of name/Value
pair.
4. SIZE=“…..” Size of text box, in characters.
5. ALIGN=“…..” For images in forms, save as with <IMG> tag.
6. MAXLENGTH=“…..” Maximum number of characters that can be
entered to text box.
7. CHECKED=“……” Sets check box or video button.
12. It is a multiline text entry base.
Default text can be included.
Syntax: Explanation:
Attributes:
<TEXTAREA> </TEXTAREA>
S.NO. ATTRIBUTES DESCRIPTION
1. NAME=“….” Names passed to CGL script as part of
name/Value pair.
2. ROWS=“…….” Number of rows of text to display.
3. COLS=“…….” Number of columns of text to display.
4. WRAP=“…..” At right side of text area ,wrap to next line.
Text area to write
13. It shows the menu or scrolling list of section.
Syntax:
Attribute:
<SELECT> option tag code </SELECT>
S.NO. ATTRIBUTES DESCRIPTION
1. NAME=“….” Names passed to CGL script as part of
name/Value pair.
2. SIZE=“…..” Number of elements in a scrolling list, if
no size is given the section is a pop menu.
3. MULTIPLE Allows multiple section.
14. It is used with <SELECT> tag.
Syntax: Explanation:
Attribute:
<OPTION>…text..</OPTION>
VALUE=“……”
The value to submit of this
<OPTION> tag is selected.
SELECTED the option will be
selected by default.
MUSLIM
SIKH
CHRISTAN
JAIN
OTHERS
HINDU
15. It is used to divide the web pages into parts.
It will be used in <HEAD> tag.
Syntax:
Attributes:
<FRAMSET> ….code for frame ….</FRAMESET>
S.NO. ATTRIBUTES DESCRIPTION
1. ROWS=“……..” Width of frame in number of rows or
percentage of windows width.
2. COLS=“……..” Height of frame in number of columns or
percentage of windows height.
3. “…,….,…*” indicates frame should take up the
remaining space.
16. This tag will be used within <FRAMSET> tag.
Syntax:
Attributes:
<FRAME> </FRAME>
S.NO. ATTRIBUTES DESCRIPTION
1. SRC=“…..” URL of a document.
2. NAME=“….” Name used to target attribute in <HREF> links.
3. SCROLLING=“….” Values=YES, NO, AUTO
4. NORESIZE Prevents user from resizing the frame.
5. FRAMEBORDER=“…” Whether to display frame border.YES or NO
6. FRAMESPACING=“…” Spacing between frames.