11CA 11 HTML Formatting Text Creating Tables List and Links v7
11CA 11 HTML Formatting Text Creating Tables List and Links v7
10) To create internal link, which of the following attribute should be used?
(A) link (B) name (C) local (D) Inter
11 CA / Chapter 11 - HTML Formatting Text, Creating Tables, List and Links / Page 1 of 8
Part – II
Very Short Answers
1) Write a short note on (i) <strong> (ii) <em>
<strong> used to define important text. This tag displays the text as bold. The <strong> tag is a
phrase tag.
<em> used to emphasize the text. the text will be in italics.
6) What is pixel?
A pixel is one of the tiny dots that make up the display on computer. Generally, 72 pixels is equal to
an inch. Pixel is usually referred as points.
11 CA / Chapter 11 - HTML Formatting Text, Creating Tables, List and Links / Page 2 of 8
Part-III
Short Answers
1) Write an HTML code to display the following text in exactly the same way as given below.
I am studying Computer Application.
<HTML>
<HEAD><TITLE> ABOUT ME</TITLE> </HEAD>
<BODY>
I am studying Computer Application
</BODY>
</HTML>
<HTML>
<HEAD><TITLE> Link to w3schools</TITLE> </HEAD>
<BODY>
<A HREF=” https://www.w3schools.com”> Click Here for W3Schools web site</A>
</BODY>
</HTML>
11 CA / Chapter 11 - HTML Formatting Text, Creating Tables, List and Links / Page 3 of 8
6) Write HTML code to produce the following table:
CODE :
<HTML>
<BODY>
<TABLE BORDER=1 WIDTH=100 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ROWSPAN=2>A</TD>
<TD>B</TD>
</TR>
<TR ALIGN=TOP>
<TD>C</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Part-IV
Explain in Detail
1) Write an HTML code the show the following text:
CODE :
<HTML>
<HEAD><TITLE>MODERN ATOMIC THEORY</TITLE></HEAD>
<BODY>
<CENTER><H1>MODERN ATOMIC THEORY</H1></CENTER>
<B>The findings of modern atomic theory are given as follows:</B>
<UL>
11 CA / Chapter 11 - HTML Formatting Text, Creating Tables, List and Links / Page 4 of 8
<LI>An atom is the smallest particle which takes part in chemical
reaction.</LI>
<LI>An atom is considered to be a divisible particle.</LI>
<LI>The atoms of the same element may not be similar in all respects.
<DD>eg: Isotopes (17Cl<SUP>35</SUP> , 17Cl<SUP>37</SUP> )</DD></LI>
<LI>The atoms of different elements may be similar in some respects.
<DD>eg. Isobars (18Ar<SUP>40</SUP>, 20Ca<SUP>40</SUP> )</DD></LI>
</UL>
</BODY>
</HTML>
1. CELLSPACING
It is used to set the space between cells in a table. The value should be in pixels
2. CELLPADDING
It is used to set the space between the contents of a cell and its border. The value should
be in pixels.
3. BORDER:
it is used to specify the thickness of the border lines around the table. The value of the border
attribute should be a non zero value in pixels. If its value is zero, HTML displays the table
without border. The default value is Zero in most of the browsers.
4. BORDERCOLOR:
It is used to apply colour to the border lines.
5. ALIGN:
It is used to set the position of the table within the browser window. Left is the default
position. Right or center may be the value of align attribute.
6. BGCOLOR
It is used to apply background colour to the table.
7. HEIGHT and WIDTH
These two attributes are used to specify the height and width of a table in terms of pixels
or percentage.
11 CA / Chapter 11 - HTML Formatting Text, Creating Tables, List and Links / Page 5 of 8
Attributes of Ordered List:
There are two attributes that can be used to customize ordered list, they are
(1) Type - changing numbering style
(2) Start - changing numbering order.
Type – is used to change the number style. The default number style is standard Arabic
numerals (1,2,3,…………).
Start – is used to specify the number or letter with which to start the list. The default starting
point is 1. The value of the start attribute should be a decimal number, regardless of the
numbering style being used.
3. Definition List
Definition list is different from other two types of list. No bullet or number is provided
for the list items. In this list type, the list element has two parts.
(1) A definition term
(2) The definition description
Nested Lists:
A list block can be defined inside another list is called as nested list.
<HTML>
<HEAD>
<TITLE> LISTS </TITLE>
</HEAD>
<BODY>
<OL TYPE=I START=5>
11 CA / Chapter 11 - HTML Formatting Text, Creating Tables, List and Links / Page 6 of 8
<LI> RED
<LI> GREEN
<LI> YELLOW
<LI> BLUE
</OL>
<UL TYPE=circle>
<LI> CHENNAI
<LI> SALEM
</UL>
<DL>
<DT> HTML: </DT>
<DD> Hyper Text Markup Language </DD>
<DT> Website: </DT>
<DD> It is a collection of web pages </DD>
</BODY>
</HTML>
The anchor tag <A> is used to create links along with HREF attribute. HREF is abbreviated as
“Hypertext Reference”.
<A href = “ Web content path / URL “> Text – Clickable link </A>
Eg : <A HREF=www.salemholycross.com>MY SCHOOL</A>
Internal Links:
Creating a link to a particular section of the same document is known as Internal Link. To
create an internal link, the attribute Name is used along with <A> tag. The Name attribute of
<A> tag establish the link to the content within the document.
External Link:
To Establish link with an external web page in known as external link. It is created by
providing the URL of the external file in the HREF attribute of <A> tag of the current page.
11 CA / Chapter 11 - HTML Formatting Text, Creating Tables, List and Links / Page 7 of 8
5) Write HTML code to create the following table:
<HTML>
<HEAD><TITLE>MERGED TABLE</TITLE></HEAD>
<BODY>
<TABLE BORDER=1 CELLSPACING=0 WIDTH=300>
<TR>
<TD ROWSPAN=3 VALIGN=TOP>A</TD>
<TD COLSPAN=4 ALIGN=CENTER>B</TD>
</TR>
<TR>
<TD>C</TD>
<TD>D</TD>
<TD>E</TD>
<TD ROWSPAN=2 VALIGN=TOP>G</TD>
</TR>
<TR>
<TD COLSPAN=3 ALIGN=CENTER>F</TD>
</TABLE>
</BODY>
</HTML>
11 CA / Chapter 11 - HTML Formatting Text, Creating Tables, List and Links / Page 8 of 8