Page 125 - CA_165_V2.0_Flipbook
P. 125
21 st
Lab Assignment ‘n Activity Century #Technology Literacy
Skills
Complete the following activity and tick on the circle.
Write HTML code to design a web page that displays the following:
IONS
For ions, the charge on a particular atom may be denoted with a superscript. For example Na ,
+
or Cu . The total charge on a charged molecule or a polyatomic ion may also be shown in this
2+
way. For example: H O or So 4 2− .
+
3
For more complex ions, brackets [ ] are often used to enclose the ionic formula, as in [B H ] ,
2−
12
12
which is found in compounds such as Cs [B H ]. Parentheses ( ) can be nested inside brackets
2
12
12
to indicate a repeating unit, as in [Co(NH ) ] . Here (NH ) indicates that the ion contains six
3+
3 6
3 6
NH groups, and [ ] encloses the entire formula of the ion with charge +3.
3
Special Notes:
Use the <SUP>, <SUB> and <BLOCKQUOTE> Tags wherever required.
<TABLE> TAG
Sometimes in a web page, it is necessary to represent the data in a tabular format for better understanding.
A table consists of rows and columns. HTML also facilitates displaying tables on a web page.
This tag is used to the create table in a web page. It is used within the body of the HTML document.
Syntax to use the <TABLE> tag is as follows:
<TABLE>
..........................
</TABLE>
<TABLE> Tag
Type Function Attributes Contains Used Inside
Container tag Defines a table BORDER, CELLPADDING, <TR><TH> <TD> Typically placed
structure. CELLSPACING, WIDTH. within <BODY> tag.
<TR> and <TD> Tags
To create a table in HTML (web pages), it is necessary to create rows and columns. The TR (Table Row)
tag and TD (Table Data) tag are used to create a grid of rows and enter data in the grid. Syntax to use the
<TR> and <TD> tags is as follows:
<TABLE>
<TR>
<TD> Text </TD>
<TD> Text </TD>
..........................
More About HTML 123

