Loading...
Please wait while we prepare your content
Please wait while we prepare your content
Solutions for Computer Applications, Class 10, CBSE
Hamish is creating a website for the Highland Chess League. Part of the HTML for the home page is shown below:
<head>
<title> Highland Chess League </title>
<meta name = "description" content = "The Highland Chess League" />
<meta name = "keywords" content = "chess, league, games, Highland, hobbies" />
</head>
<body>
<div align = "centre">
<p> Welcome to the Highland Chess League Home Page </p>
<p>Play the board <u>not</u> the man </p>
</div>
</body>
(a) The window shown alongside is seen when a browser is used to view the home page. Use the HTML code above to identify the contents displayed in A, B and C.
(b) The meta tag specifies keywords used by spiders of search engines. Where do you provide (inside which tag) the meta information in HTML code ?
(a) The following contents are displayed in A, B and C :
A — Highland Chess League
B — Welcome to the Highland Chess League Home Page
C — Play the board not the man
Explanation
In A, the content given inside the <title>
tag will be displayed.
In B, the content given inside the first <p>
tag will be displayed.
In C, the content given inside the second <p>
tag will be displayed.
(b) The meta information is provided in the <meta>
tag which is enclosed inside the <head>
tag.
Consider the following web page:
(a) The text at P is :
(b) To follow a link to find information, the user should click at :
(c) The alignment of text at T is :
(d) The text at S provides a way to contact Ski Breaks Ltd using :
(e) To use the Internet to find more websites about winter sports, the user should use :
(a) a web address
Reason — A web address or URL is given in the address bar of the browser to access a web page.
(b) R
Reason — R is a link which can be followed by clicking to find more information about the destination (USA).
(c) Left
Reason — The text at T is left aligned.
(d) email
Reason — S provides an e-mail address to contact Ski Breaks Ltd.
(e) a search engine
Reason — A search engine helps a user to find information about any topic using keywords.
HTML is acronym for :
Hyper Text Markup Language
Reason — HTML is acronym for Hyper Text Markup Language.
A coded HTML command that indicates how part of a web page is displayed is called ............... .
Tag
Reason — A coded HTML command that indicates how part of a web page is displayed is called tag.
Which of the following tags identifies the document as an HTML document?
<HTML>
<HEAD>
<BODY>
<P>
<HTML>
Reason — <HTML>
tag identifies the document as an HTML document. An HTML document begins with <HTML>
and ends with </HTML>
.
The tags that require a starting as well as an ending tag are called ............... .
Container Element
Reason — The tags that require a starting as well as an ending tag are called Container Element.
Which sequence of HTML tags is correct ?
<html><head><title></title></head><body></body></html>
<html><head><title><body></title></head></body></html>
<html><head><title</head><body></body>></title></</html>
<htm1><head><title><body></body></title></head></html>
<html><head><title></title></head><body></body></html>
Reason — The correct document structure of an HTML document is <html><head><title></title></head><body></body></html>
.
To specify the background image for the document, Background attribute is used with which of the following tags ?
<BODY>
<HTML>
<P>
<BODY>
Reason — "background" is an attribute of the <BODY>
tag which is used to specify the background image for the document. The syntax is as follows:
BODY background = "fileame.gif">
To define the basic font size, which of following tag is used ?
BASEFONT
Reason — The <BASEFONT>
tag lets us define the basic size for the font, which the browser uses for text with no defined font size.
The unnumbered lists can be created by ............... tag.
<UL>
<OL>
<LI>
Both (1) and (3)
Reason — The unnumbered lists can be created by <UL>
and <LI>
tags. An unnumbered list begins with a tag that identifies the type of list (<UL>
for unnumbered) and then uses the <LI>
tag to denote the beginning of each new list item. For example:
<UL>
<LI>Apples</LI>
<LI>Bananas</LI>
<LI>Grapes</LI>
</UL>
The numbered lists can be created by ............... tag.
<UL>
<OL>
<LI>
Both (2) and (3)
Reason — The numbered lists can be created by <OL>
and <LI>
tags. A numbered list begins with a tag that identifies the type of list (<OL>
for numbered) and then uses the <LI>
tag to denote the beginning of each new list item. For example:
<OL>
<LI> First item</LI>
<LI> Second item</LI>
<LI> Third item</LI>
</OL>
Consider the following HTML code :
<ol type='i'>
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
</ol>
Choose the correct output that would be shown upon execution of the above code , from the choices given below:
1. I. First
II. Second
III. Third
IV. Fourth
2. i. First
ii. Second
iii. Third
iv. Fourth
3. I First
II Second
III Third
IV Fourth
4. i First
ii Second
iii Third
iv Fourth
i. First
ii. Second
iii. Third
iv. Fourth
Reason — The "type" attribute with <OL>
tag specifies the type of numbering style. With the <OL>
tag, the type attribute may have a value of 'i' for lowercase Roman numerals.
We can create a numbered list using the ............... tag.
<UL>
<list>
<OL>
<DL>
<OL>
Reason — We can create a numbered list using the <OL>
tag.
Identify which of the following type of list will create a bulleted list.
Unordered
Reason — Unordered list will create a bulleted list.
In <OL>
and <UL>
, the style of bullet or number is defined by ................. .
type attribute
Reason — In <OL>
and <UL>
, the style of bullet or number is defined by type attribute. For unordered list, the type attribute may have a value of either disc for a solid circle, circle for a hollow circle or square for a solid square.
For ordered list, the type attribute may have the value of 'A' for numbering with capital letters, 'a' for lowercase letters, 'I' for capital and 'i' for lowercase Roman numerals and '1' for common Arabic numerals.
Which of the following will produce a solid circle bullet when given as value of type with <UL>
?
disc
Reason — When the value of type attribute is disc, a solid circle bullet is displayed in an unordered list.
Tag(s) required to create Description lists in HTML :
<DL>
<DT>
<DD>
All of the above
Reason — A definition list <DL>
usually consists of an alternating definition term <DT>
and a definition description <DD>
.
An advantage of using basic HTML to create a document is that :
all browsers can display the document
Reason — An advantage of using basic HTML to create a document is that all browsers can display the document. HTML is a document layout and hyperlink specification language which tells the browser to display the contents of a hypertext document in a certain way.
Factors that affect how an HTML document looks on the monitor do not include :
operating system
Reason — Factors that affect how an HTML document looks on the monitor do not include operating system.
Every HTML document must include the tags :
<html> </html>
& <body> </body>
<body> </body>
& at least one <p>
<html> </html>
& <head> </head>
<html> </html>
& <body> </body>
Reason — Every HTML document must include <html> </html>
& <body> </body>
tags. <html> </html>
tags are used to mark the beginning and end of an HTML document. The <body> </body>
tags define a document's body.
If the HTML code looks like :
<font face="Arial" size="3"
color ="#000000">Welcome</font>
then the text would look like:
Welcome
(Option 3)
Reason — face, size and color attributes of <FONT>
tag set the font, size and colour of the text respectively. Thus, the text (Welcome) will be displayed in "Arial" font of size "3" and its colour will be "#000000" i.e., black.
Which attribute is not valid for <BODY>
tag ?
color
Reason — color is not an attribute of <BODY>
tag. background, vlink and leftmargin are the attributes of <BODY>
tag which specify the background image of the document, the colour of visited link and the left margin of the document, respectively.
Which attribute is NOT valid for the <body>
tag ?
color
Reason — color is not an attribute of <BODY>
tag. background, vlink and bgcolor are the attributes of <BODY>
tag which specify the background image of the document, the colour of visited link and the background colour of the document, respectively.
Which of these is NOT an attribute of the font tag ?
type
Reason — type is not an attribute of <FONT>
tag. face, size and color attributes of <FONT>
tag set the font, size and colour of the text respectively.
How can you make a text appear bold?
<b>
text </b>
<strong>
text </strong>
both (1) and (2)
Reason — <b>
and <strong>
tags both can be used to make a text appear bold.
Choose the correct HTML tag to make a text italic .
<italic>
<i>
<italicise>
<i>
Reason — <i>
tag is used to make a text italic.
If the background image is smaller than the screen, what will happen ?
It will be repeated
Reason — If the background image is smaller than the screen, the browser uses a feature called tiling to repeat the image and fill the browser window.
The <title>
tag belongs where in your HTML ?
Head
Reason — The <title>
tag belongs to the <HEAD>
tag in HTML.
Choose the correct HTML tag for the largest heading.
<heading>
<h6>
<head>
<h1>
<h1>
Reason — HTML has six levels of headings, numbered 1 through 6, with 1 being the largest i.e., <H1>
appears as the largest heading and <H6>
appears as the smallest heading.
Besides, <B>
another way to make text bold is what ?
<strong>
<dark>
<fat>
<strong>
Reason — <strong>
tag can be used to make the text appear bold.
The attribute used to choose the type of font in HTML is :
Face
Reason — face attribute of <FONT>
tag is used to choose the type of font in HTML.
Why should you specify a background color if you are using an image for the actual background of your page ?
The background color will be shown until the image loads
Reason — We should specify a background color if we are using an image for the actual background of our page because the background color will be shown until the image loads.
All normal webpages consist of what two parts ?
Head and body
Reason — All normal webpages consist of <HEAD>
and <BODY>
tag.
HTML is a :
Both (2) & (3)
Reason — HTML is a Web page layout language and a Markup language.
A tag is ............... .
HTML command
Reason — A tag is a coded HTML command that indicates how part of web page should be displayed.
Container elements in HTML require ............... .
Starting and Ending tag
Reason — Container elements in HTML require Starting and Ending tags. For example, to make text bold, we write <B> text </B>
. <B>
is a container tag.
Background attribute of <BODY>
is used to :
load an image and use it as a background when displaying webpage
Reason — Background attribute of <BODY>
is used to load an image and use it as a background when displaying webpage.
With which HTML tag do you apply attributes that modify text size, font-face, and color ?
<font>
<mod>
<f>
<text>
<font>
Reason — We apply size, face, and color attributes with <FONT>
tag to modify text size, font-face, and color of the text.
Which HTML tag would you apply the bgcolor attribute to in order to change the background color of the web page ?
<html>
<head>
<body>
<p>
<body>
Reason — We apply the bgcolor attribute with the <BODY>
tag in order to change the background color of the web page.
Gagandeep has written the following code to display an image in the background of HTML document :<BODY BgGround = "Animals.jpeg">
but he is not getting the desired output. Help him in identifying correct code from the following :
<BODY Bg = "Animals.jpeg">
<BODY BACK = "Animals.jpeg">
<BODY BGIMAGE = "Animals.jpeg">
<BODY BACKGROUND = "Animals.jpeg">
<BODY BACKGROUND = "Animals.jpeg">
Reason — "bgGround" is not an attribute of <BODY>
tag. Background attribute of <BODY>
is used to display an image in the background of HTML document.
In which section of an HTML document do you enter the <P>
element ?
The body section.
Reason — We use the <P>
element in the body section of an HTML document.
In which HTML element do you apply attributes that modify the background image ?
<html>
element.<head>
element.<background>
element.<body>
element.The <body>
element.
Reason — Background attribute of <BODY>
tag is used to modify the background image of HTML document.
Which of the following heading tags will cause a browser to render text at the largest default size ?
<h3>
<h2>
<h5>
<h4>
<h2>
Reason — HTML has six levels of headings, numbered 1 through 6, with 1 being the largest i.e., <H1>
appears as the largest heading and <H6>
appears as the smallest heading. Thus, in the given options, <h2>
will cause a browser to render text at the largest default size.
Which is the correct way to comment out something in HTML ?
##
and #
<!--
and -->
</--
and -/->
<!--
and -!>
Using <!--
and -->
Reason — <!--
and -->
is the correct way to comment out something in HTML.
Which of the following is the proper syntax to start an HTML comment ?
<!--
<!>
<comment>
<notate>
<!--
Reason — <!--
is the proper syntax to start an HTML comment.
Which one of the following is the HTML tag used to insert a horizontal rule ?
<h1>
<hr>
<rule>
<br>
<hr>
Reason — <hr>
tag is used to insert a horizontal rule in an HTML document.
HTML tag to draw horizontal line :
<h1>
<hr>
<hline>
<hr>
Reason — <hr>
tag is used to draw horizontal line in an HTML document.
What HTML container tags do you apply to text to format the text as a paragraph ?
<para></para>
<text></text>
<p></p>
<format style="para"></format>
<p></p>
Reason — <p></p>
tags are used to format the text as a paragraph.
Which HTML tags cause browsers to render text as italics ?
<text style = "italics"></text>
<ital></ital>
<i></i>
<b></b>
<i></i>
Reason — <i></i>
tags are used to display the text as italics in an HTML document.
Interpret this statement :
<strong>Michelle</strong>
It will print out Michelle in bold font
Reason — <STRONG>
tag is used to make text appear bold. Thus, it will print out Michelle in bold font.
Which one is correct ?
<b>Click Here<b>
<strong>Click Here<strong>
<b>Click Here</b>
</strong>Click Here</strong>
<b>Click Here</b>
Reason — HTML tags are written in angle brackets ( <> ). Container tags require pair tags. The ending tag is similar to that of the starting tag except that it begins with a slash ( / ) symbol.
In option 1 and 2, the ending tag doesn't have a slash symbol. In option 4, the starting tag has a slash symbol which is incorrect. Thus, option 3, <b>Click Here</b>
is correct.
The page title is inside the ............... tag.
Head
Reason — The page title is inside the <HEAD>
tag.
To align multiple lines of text we use ............... .
DIV
Reason — To align multiple lines of text we use <DIV>
tag.
The value of #FFFFFF is :
White
Reason — The value of #FFFFFF is white.
The value of #000000 is :
Black
Reason — The value of #000000 is black.
In HTML, lists can be of :
all of these
Reason — In HTML, lists can be of three types — unnumbered, numbered and definition.
To start a list at the count of 3, use which ?
<ol start="3">
<ol begin="3">
<ol list="5">
<ol start="3">
Reason — The start attribute of <OL>
tag sets the starting value of an item integer counter at the beginning of an ordered list.
Which of the following is the correct way to create a list using the lowercase letters ?
<ol alpha = a">
<ol type = "a">
<ol letter = "a">
<ol type = "a">
Reason — The type attribute of <OL>
tag sets the actual numbering style of an ordered list.
What is the correct HTML for adding a background color ?
<body background="yellow">
<background>yellow</background>
<body style="background-coloris:white">
<body bgcolor="white">
<body bgcolor="white">
Reason — bgcolor attribute of <BODY>
tag sets the background colour of the HTML document.
To create a bulleted list use ?
<il>
<ul>
<ol>
<ul>
Reason — We use <UL>
to create a bulleted list.
When making bulleted lists you have what options ?
disc, circle, square
Reason — For unordered list, the type attribute may have a value of either disc for a solid circle, circle for a hollow circle or square for a solid square.
Which one of the following is the list type that will create a bulleted list ?
unordered
Reason — An unordered list will create a bulleted list.
HTML is a :
Language
Reason — HTML is a Web page layout language and a Markup language.
Choose the correct HTML tag to make the text bold ?
<B>
<BOLD>
<STRONG>
Both (1) & (3)
Reason — <b>
and <strong>
tags both can be used to make a text appear bold.
Choose the correct HTML tag for the largest heading ?
<H1>
<H6>
<H10>
<HEAD>
<H1>
Reason — HTML has six levels of headings, numbered 1 through 6, with 1 being the largest i.e., <H1>
appears as the largest heading and <H6>
appears as the smallest heading.
Which of the following will result in the largest text size ?
<H3>
<H6>
<H2>
<H4>
<H2>
Reason — HTML has six levels of headings, numbered 1 through 6, with 1 being the largest i.e., <H1>
appears as the largest heading and <H6>
appears as the smallest heading. Thus, in the given options, <h2>
will result in the largest text size.
State True or False :<BR>
tag has its closed tag as </BR>
False
Reason — <BR>
is an empty element. It does not have a closing tag </BR>
.
State True or False :<P>
tag has no closing tag
False
Reason — <P>
is a container element. Thus, it requires a starting tag <P>
and a closing tag </P>
.
State True or False :<HR>
tag is same as <BR>
False
Reason — The <HR>
tag produces a horizontal line spread across the width of the browser window while the <BR>
tag is used to end one line and jump to the next line.
State True or False :<KBD>
tag is used to display tables
False
Reason — <KBD>
tag is used to display text as user keyboard entry. It is typically displayed in a fixed width font.
In <BR>
tag resets the paragraph alignment to the default left alignment. True or False ?
False
Reason — The <HR>
tag resets the paragraph alignment to the default left alignment while after the <BR>
tag, the previously set alignment of the paragraph is retained.
The textual content that appears in the source HTML document but is not rendered by the browser is called ............... .
The textual content that appears in the source HTML document but is not rendered by the browser is called comment.
Comments are enclosed in ............... and ............... tags.
Comments are enclosed in <!-- and --> tags.
By default <HR>
produces a ............... rule.
By default <HR>
produces a 3-D rule.
............... text styles are handled in its own way by the browsers.
Logical text styles are handled in its own way by the browsers.
To display an & on the web page, ............... is used in the source HTML code.
To display an & on the web page, &amp
is used in the source HTML code.
Two tags break the line flow. These are : ............... and ............... .
Two tags break the line flow. These are : <BR>
and <HR>
.
Background colour is set by ............... attribute and background graphics is set by ............... attribute of ............... tag.
Background colour is set by Bgcolor attribute and background graphics is set by Background attribute of Body tag.
An element that only has a starting tag and no ending tag is ............... element.
An element that only has a starting tag and no ending tag is empty element.
Text inside paragraphs is displayed.
<HTML>
<BODY>
<P>
This paragraph contains a lot of lines in the source code, but the browser ignores it.
</P>
<P>
This paragraph contains a lot of spaces in the source code, but the browser ignores it.
</P>
<P>
The number of lines in a paragraph depends on the size of your browser window.
If you resize the browser window, the number of lines in this paragraph will change.
</P>
</BODY>
</HTML>
Use of break <BR>
tag.
<HTML>
<BODY>
<P>
To break<BR>lines<BR>in a<BR>paragraph<BR>use the BR tag.
</P>
</BODY>
</HTML>
HTML editor ignores your formatting.
<HTML>
<BODY>
<P>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</P>
<P> Note that your browser simply ignores your formatting!</P>
</BODY>
</HTML>
The heading tags.
<HTML>
<BODY>
<H1>This is heading 1</H1>
<H2>This is heading 2</H2>
<H3>This is heading 3</H3>
<H4>This is heading 4</H4>
<H5>This is heading 5</H5>
<H6>This is heading 6</H6>
<P>Use heading tags only for headings. Don't use them to make something big.
Use other tags for that.</P>
</BODY>
</HTML>
Centralized heading.
<HTML>
<BODY>
<H1 align = "center">This is heading 1</H1>
<P>The heading above is aligned to the center of this page. The heading above is aligned to the center of this page. The heading above is aligned to the center of this page.</P>
</BODY>
</HTML>
Defining and using a horizontal rule.
<HTML>
<BODY>
<P>The hr tag defines a horizontal rule:</P>
<HR>
<P>This is a paragraph</P>
<HR>
<P>This is a paragraph</P>
<HR>
<P>This is a paragraph</P>
</BODY>
</HTML>
Comments in HTML source.
<HTML>
<BODY>
<!--This comment will not be displayed-->
<P>This is a regular paragraph</P>
</BODY>
</HTML>
Add a background colour.
<HTML>
<BODY bgcolor = "yellow">
<H3>Look: Colored Background!</H3>
</BODY>
</HTML>
Add a background image.
<HTML>
<BODY background = "background.jpg">
<H3>Look: Image Background!</H3>
<P>Both gif and jpg files can be used as HTML backgrounds.</P>
<P>If the image is smaller than the page, the image will repeat itself.</P>
</BODY>
</HTML>
Text formatting.
<HTML>
<BODY>
<B>This text is bold</B>
<BR>
<STRONG>This text is strong</STRONG>
<BR>
<BIG>This text is big</BIG>
<BR>
<EM>This text is emphasized</EM>
<BR>
<I>This text is italic</I>
<BR>
<SMALL>This text is small</SMALL>
<BR>
This text contains<SUB> subscript</SUB>
<BR>
This text contains
<SUP>
superscript
</SUP>
</BODY>
</HTML>
Start Notepad from Programs menu. In the opened file give the coding for the following :
(i) Give the Title Pace Computer Education. (this should appear on title bar)
(ii) Make the background colour as Grey and text colour as Red.
(iii) Give the heading My First Web Page as H1 tag, Face = Times New Roman, Color = Red, Align = Center.
(iv) Write the paragraph with <P>
tag, Align = Right, Font = Comic Sans MS, Color = Blue and Size = 4.
Today, one of the major reasons businesses, homes and other users purchase computers is to gain Internet access. Many companies and organizations assume that the public is familiar with the Internet. Web addresses appear on television, in radio broadcasts, in printed news-papers, magazines and in other forms of advertising. Software companies use their Web sites as a place for you to download upgrades or enhancements to software products. To be successful today, you must have an understanding of the Internet. Without it, you are missing a tremendous resource for goods, services and information.
(v) Create two copies of above paragraph and apply <B>
tag, <TT>
tag, <I>
and <U>
tags in between.
(vi) "Exciting Features Offered By HTML". Give it as heading H3, Align = Left, Color = Red, Font = Comic Sans Ms.
(vii) Apply any Font style, Size = 5 on the following points :
1. E-Mail
2. Information
3. Discussion Groups
4. Online- Shopping
5. Entertainment
6. Programme
(viii) Add a horizontal rule spread on the 50% of the browser window.
(ix) Combine different font effects : <B>
, <I>
, <U>
and <TT>
.
(x) Select File menu and click on Save, type your file name with extension .HTML, and click on Save button to complete the procedure of saving.
<HTML>
<HEAD>
<TITLE> Pace Computer Education </TITLE>
</HEAD>
<BODY BGCOLOR = "GREY" TEXT = "RED">
<H1 ALIGN = "CENTER">
<FONT FACE = "TIMES NEW ROMAN" COLOR = "RED">My First Web Page</FONT>
</H1>
<P ALIGN = "RIGHT">
<FONT FACE = "COMIC SANS MS" COLOR = "BLUE" SIZE = "4">
Today, one of the major reasons businesses, homes and other users purchase computers is to gain Internet access. Many companies and organizations assume that the public is familiar with the Internet. Web addresses appear on television, in radio broadcasts, in printed news-papers, magazines and in other forms of advertising. Software companies use their Web sites as a place for you to download upgrades or enhancements to software products. To be successful today, you must have an understanding of the Internet. Without it, you are missing a tremendous resource for goods, services and information.
</FONT>
</P>
<P> Today, one of the <B> major reasons </B> businesses, homes and other users purchase computers is to gain Internet access. Many companies and organizations assume that the public is <TT> familiar with the Internet </TT>. Web addresses appear on <I> television, in radio broadcasts, in printed news-papers, magazines and in other forms of advertising </I>. Software companies use their Web sites as a place for you to download upgrades or enhancements to software products. To be successful today, you must have an understanding of the Internet. Without it, you are <U> missing a tremendous resource </U> for goods, services and information. </P>
Today, one of the <TT> major reasons </TT> businesses, homes and other users purchase computers is to gain Internet access. Many companies and organizations assume that the public is <B> familiar </B> with the Internet. Web addresses appear on television, in radio broadcasts, in printed news-papers, magazines and in other forms of advertising. Software companies use their Web sites as a place for you to <I> download upgrades or enhancements </I> to software products. To be successful today, you must have an understanding of the Internet. Without it, you are <U> missing </U> a tremendous resource for goods, services and information.
<H3 ALIGN = "LEFT">
<FONT COLOR = "RED" FACE = "COMIC SANS MS">Exciting Features Offered By HTML</FONT>
</H3>
<FONT FACE = "ARIAL" SIZE = "5" COLOR = "BLUE">
<OL>
<LI>E-Mail</LI>
<LI>Information</LI>
<LI>Discussion Groups</LI>
<LI>Online- Shopping</LI>
<LI>Entertainment</LI>
<LI>Programme</LI>
</OL>
</FONT>
<HR WIDTH = "50%">
<FONT COLOR = "BLACK">
<U>HTML, or <B><I>Hypertext Markup Language</I></B>,</U> was created in 1990 by <B>Tim Berners-Lee</B> as a means <TT>to share and format <B><I><U>scientific and academic information</U></I></B></TT> on the <B><I>World Wide Web.</I></B>
</FONT>
</BODY>
</HTML>
Types of ordered lists.
<HTML>
<BODY>
<H4>Numbered list:</H4>
<OL>
<LI>Apples</LI>
<LI>Bananas</LI>
</OL>
<H4>Letters list:</H4>
<OL type="A">
<LI>Apples</LI>
<LI>Bananas</LI>
<LI>Lemons</LI>
<LI>Oranges</LI>
</OL>
<H4>Lowercase letters list:</H4>
<OL type="a">
<LI>Apples</LI>
<LI>Bananas</LI>
</OL>
<H4>Roman numbers list:</H4>
<OL type="I">
<LI>Apples</LI>
<LI>Bananas</LI>
</OL>
<H4>Lowercase Roman numbers list:</H4>
<OL type="i">
<LI>Apples</LI>
<LI>Bananas</LI>
</OL>
</BODY>
</HTML>
Types of unordered lists.
<HTML>
<BODY>
<H4>Disc bullets list:</H4>
<UL type="disc">
<LI>Apples</LI>
<LI>Bananas</LI>
</UL>
<H4>Circle bullets list:</H4>
<UL type="circle">
<LI>Apples</LI>
<LI>Bananas</LI>
</UL>
<H4>Square bullets list:</H4>
<UL type="square">
<LI>Apples</LI>
</UL>
</BODY>
</HTML>
Nested List.
<HTML>
<BODY>
<H4>A nested List:</H4>
<ul>
<LI>Coffee</LI>
<LI>Tea</LI>
<ul>
<LI>Black tea</LI>
<LI>Green tea</LI>
</UL>
<LI>Juice</LI>
<LI>Milk</LI>
</UL>
</BODY>
</HTML>
Definition List.
<HTML>
<BODY>
<H4>A Definition List:</H4>
<DL>
<DT>Coffee</DT>
<DD>Black hot drink</DD>
<DT>Milk</DT>
<DD>White cold drink</DD>
</DL>
</BODY>
</HTML>
Insert the <UL>
tag around the following list text.
Basic etiquette for gentlemen for greeting a lady.
<B><I> Basic etiquette for gentlemen for greeting a lady.</B></I>
<UL type = "disc">
<LI> Wait for her acknowledging bow before starting conversation.</LI>
<LI>Walk with her if she expresses a wish to converse.</LI>
<LI>When walking, the lady must always have the wall.</LI>
<LI>Never make a lady stand talking in the street.</LI>
<LI>On outing in a restaurant, first offer her a seat and then take your seat.</LI>
</UL>
Insert the <OL>
tag around the following list text.
<OL START = "2" TYPE = "I">
<LI> Recourse for a lady toward unpleasant men who persist in bowing. </LI>
<LI> A simple stare of iciness should suffice in most instances. </LI>
<LI> Her ignorance is sufficient that she is not willing to be friendly. </LI>
<LI> As a last resort: " Sir, I have not the honor of your acquaintance." </LI>
</OL>
Create a list of definitions using <DL>
, <DT>
and <DD>
.
Proper Address Of Royalty.
Your Majesty
To The King or Queen
Your Highness
To The King's Children
Your Highness
To Nephews, Nieces and Cousins of the King.
Try to change the styles of bullets e.g., <UL>
.<OL>
.
Proper Address Of Royalty.
<DL>
<DT>Your Majesty</DT>
<DD>To The King or Queen</DD>
<DT> Your Highness </DT>
<DD>To The King's Children</DD>
<DT>Your Highness</DT>
<DD>To Nephews, Nieces and Cousins of the King.</DD>
</DL>
Insert the <UL>
tags (unordered list) around the following list text.
Change the style of the bullets: e.g., circle, square, disc.
<UL TYPE = "DISC">
<LI> Car </LI>
</UL>
<UL TYPE = "SQUARE">
<LI> Scooter </LI>
</UL>
<UL TYPE = "CIRCLE">
<LI> Van </LI>
</UL>
Insert the <OL>
tag (ordered list) around the following list text.
e. Story Books
f. Computer Books
g. Text Books
h. General Books
Change the style of the bullets : e.g., I, i, A and 1,2
<OL TYPE = "a" START = "5">
<LI> Story Books </LI>
<LI> Computer Books </LI>
<LI> Text Books </LI>
<LI> General Books </LI>
</OL>
<OL TYPE = "I" START = "5">
<LI> Story Books </LI>
<LI> Computer Books </LI>
<LI> Text Books </LI>
<LI> General Books </LI>
</OL>
<OL TYPE = "i" START = "5">
<LI> Story Books </LI>
<LI> Computer Books </LI>
<LI> Text Books </LI>
<LI> General Books </LI>
</OL>
<OL TYPE = "A" START = "5">
<LI> Story Books </LI>
<LI> Computer Books </LI>
<LI> Text Books </LI>
<LI> General Books </LI>
</OL>
<OL TYPE = "1" START = "5">
<LI> Story Books </LI>
<LI> Computer Books </LI>
<LI> Text Books </LI>
<LI> General Books </LI>
</OL>
Create a nest list as follows using both ordered and unordered list tags :
<OL TYPE = "1">
<LI>
Operating System
<UL TYPE = "CIRCLE">
<LI> Disk Operating System </LI>
<LI> Windows </LI>
<LI> Unix </LI>
<LI> Linux </LI>
</UL>
</LI>
<LI>
MS - Office
<UL TYPE = "SQUARE">
<LI> Word </LI>
<LI> Excel </LI>
<LI> PowerPoint </LI>
<LI> Access </LI>
</UL>
</LI>
<LI>
OpenOffice.org
<UL TYPE = "DISC">
<LI> Writer </LI>
<LI>Calc </LI>
<LI>Impress </LI>
<LI>Base </LI>
</UL>
</LI>
<LI>
Accessories
<UL TYPE = "DISC">
<LI> Paint </LI>
<LI> Calculator </LI>
<LI> Note Pad </LI>
<LI> Word Pad </LI>
</UL>
</LI>
</OL>
Apply different font styles on these lists.
<OL TYPE = "1">
<FONT FACE = "COMIC SANS MS" COLOR = "RED" SIZE = "5">
<LI>
Operating System
<UL TYPE = "CIRCLE">
<FONT FACE = "TIMES NEW ROMAN" COLOR = "GREEN" SIZE = "4">
<LI> Disk Operating System </LI>
<LI> Windows </LI>
<LI> Unix </LI>
<LI> Linux </LI>
</FONT>
</UL>
</LI>
<LI>
MS - Office
<UL TYPE = "SQUARE">
<FONT FACE = "ARIAL BLACK" COLOR = "BLUE" SIZE = "3">
<LI> Word </LI>
<LI> Excel </LI>
<LI> PowerPoint </LI>
<LI> Access </LI>
</FONT>
</UL>
</LI>
<LI>
OpenOffice.org
<UL TYPE = "DISC">
<FONT FACE = "TIMES NEW ROMAN" COLOR = "GREY" SIZE = "3">
<LI> Writer </LI>
<LI>Calc </LI>
<LI>Impress </LI>
<LI>Base </LI>
</FONT>
</UL>
</LI>
<LI>
Accessories
<UL TYPE = "DISC">
<FONT FACE = "ARIAL" COLOR = "MAGENTA" SIZE = "3">
<LI> Paint </LI>
<LI> Calculator </LI>
<LI> Note Pad </LI>
<LI> Word Pad </LI>
</FONT>
</UL>
</LI>
</FONT>
</OL>
Write HTML code to display an ordered list (with uppercase roman numbers) listing any three subjects being taught in your school. The web page should have a red background and the title of the page should be 'My Subjects'.
<HTML>
<HEAD>
<TITLE>My Subjects</TITLE>
</HEAD>
<BODY BGCOLOR = "RED">
<OL TYPE = "I">
<LI>English</LI>
<LI>Mathematics</LI>
<LI>Computer Applications</LI>
</OL>
</BODY>
</HTML>
Fill in the blanks:
(i) ............... tag is used to insert a line break on a web page.
(ii) The tag ............... is used to create subscripts and ............... tag is used to create superscripts on a web page.
(i) <BR> tag is used to insert a line break on a web page.
(ii) The tag <SUB> is used to create subscripts and <SUP> tag is used to create superscripts on a web page.
The document structure elements of HTML page is/are:
All the above
Reason — The document structure of an HTML document is as follows:
<html>
<head>
<title> ... </title>
</head>
<body>
...the body of the document...
</body>
</html>
Which attribute does not come in <HR>
tag ?
Length
Reason — The attributes of <HR>
tag are size, color and width which are used for setting the thickness, the color and the percentage of the window covered by the rule, respectively. Length is not used with <HR>
tag.
A software used to open web pages on the internet is called a ............... .
Browser
Reason — A web browser is a program that lets us visit different websites on the internet and display their offerings on our own computer. For example, Google Chrome, Mozilla Firefox, Safari, etc.
Anything written between ............... is taken as comment.
<?-->
<?---?>
<!--
and -->
</--->
<!--
and -->
Reason — The comments of HTML are written between <!--
and -->
.
We can view the source code of a web page in ............... .
Notepad
Reason — We can view the source code of a web page in Notepad.
Write the extension of HTML code file.
The extension of HTML code file is .htm or .HTML.
How would you display text in the title bar of browser ?
To display text in the title bar of browser, we write the text within <TITLE>
tag. Consider the following example,
<HEAD>
<TITLE> Text for the title bar </TITLE>
</HEAD>
How the font size of a single line on a web page be changed ?
The font size of a single line on a web page can be changed by using <FONT>
tag. Consider the following example,
<FONT> Line of Text </FONT>
Distinguish between <P>
tag and <BR>
tag with the help of an example.
<BR>
tag is a line break tag that is used to end one line and jump to the next line without showing any line in between. It is an empty element.<P>
tag is a paragraph tag that is used to define a paragraph of text. It is a container element.
The following example highlights the difference between the two:
<P>HTML, the markup language so grand,<BR>
Structures the web with tags in hand.</P>
<P>From headers to links, it guides the way,<BR>
Content and style, it helps convey.</P>
Why do we insert comments in an HTML document even though they are not displayed on a web page ?
Comments have the following utility in an HTML document:
Compare Home Page and Web Site.
Home Page | Web Site |
---|---|
The first page that appears when viewers go to a website is called the Homepage. | A website is a complete collection of interconnected web pages. |
Homepage provides an overview and direct visitors to the relevant sections or content within the website. | A website serves as a comprehensive online platform that provides information, services, or products to visitors. |
How can one insert horizontal lines in a Web Page ?
We can insert horizontal lines in a Web Page by using the <HR>
tag.
How are comments inserted in HTML code ? Explain with example.
Comments are inserted in HTML code by enclosing them in <!-- and --> tags. For example,
<BODY>
<!-- Body tag starts here -->
This is the document body.
</BODY>
Here, the text "Body tag starts here" is enclosed in <!--
and -->
and thus, it is regarded as comment and not displayed in the web browser.
What do you mean by the term 'source code' of the current page viewed in a Web Browser ?
The term 'source code' refers to the underlying HTML, CSS, and JavaScript code of the current web page viewed in a web browser.
Which tag do we use to change the size and style (face) of the text of a HTML file viewed on a Web Browser ? Also explain any two attributes used with this tag.
We use the <FONT>
tag to change the size and style (face) of the text of a HTML file viewed on a Web Browser. Two attributes of the <FONT>
tag are:
What is the purpose of using the tags <H1>...<H6>
?
The purpose of using the tags <H1> ... <H6>
is to define headings of different levels, with <H1>
being the highest level and <H6>
being the lowest level.
What is the method of viewing the source code of the current page in Web Browsers ?
A user can right click on the Web page and then select "View Source" from the context menu to view the source code of the current page in a Web Browser.
What is the method of using comment line in HTML code ?
Comments are inserted in HTML code by enclosing them in <!-- and --> tags. For example,
<BODY>
<!-- Body tag starts here -->
This is the document body.
</BODY>
Here, the text "Body tag starts here" is enclosed in <!--
and -->
and thus, it is regarded as comment and not displayed in the web browser.
What is the use of <BODY>
tag in HTML code ? Write any two attributes used with this tag.
The <BODY>
tag defines a document's body. It contains all the contents of an HTML document, such as the text, images, lists, tables, hyperlinks etc.
The two attributes used with this tag are:
Differentiate between container and empty elements used in HTML.
Container elements | Empty elements |
---|---|
Container elements require both, an opening and a closing tag. | Empty elements require only an opening tag and not a closing tag. |
Container elements affect the text appearing between their opening and a closing tag. | Empty elements just carry out the job assigned to them. |
For example, <TITLE> ...</TITLE> , <FONT> ...</FONT> etc. | For example, <BR> , <HR> etc. |
What is the use of <font>
tag in HTML code ? Write any two options used with this tag.
We use the <FONT>
tag to change the size, colour and style (face) of the text of a HTML file viewed on a Web Browser. Two attributes of the <FONT>
tag are:
Which HTML tag is used to insert an image in a page ? Write an option used with this tag.
The <img>
tag is used to insert an image in a page.
The 'src' attribute is used with this tag to specify the source/URL or path of the image. For example,
<img src = "image.jpg">
Expand the following tags used in HTML :
(i) <LI>
(ii) <VLINK>
(iii) <HR>
(iv) <P>
(i) <LI>
— Line tag
(ii) <VLINK>
— Visited link tag
(iii) <HR>
— Horizontal rule tag
(iv) <P>
— Paragraph tag
Identify which of the following is a tag or an attribute :
(i) border
(ii) img
(iii) alt
(iv) src
(v) href
(i) border — Attribute
(ii) img — Tag
(iii) alt — Attribute
(iv) src — Attribute
(v) href — Attribute
Name the following with respect to HTML : Attribute for changing bullet type of list tag.
"type" is the attribute for changing bullet type of list tag.
HTML stands for ............... .
HTML stands for HyperText Markup Language.
What do you understand by 'Tag' ?
A tag is a coded HTML command that indicates how a part of web page should be displayed. HTML tags are written inside angle brackets (< >). For example,<H1>Main Heading</H1>
What is an attribute in HTML ?
An attribute is a special word used inside tag to specify additional information to tag such as color, alignment, etc. For example, 'bgcolor' attribute of <BODY>
tag is used to set the background colour of an HTML document.
<BODY bgcolor = "white">
Define the tag, <HTML>.
The <HTML> tag it the root element of the html document. It identifies the document as an HTML document. An HTML document begins with <HTML> and ends with </HTML>.
<HTML>
....HTML document lines here
</HTML>
HR tag is used for ............... .
HR tag is used for horizontal rule.
<TITLE> tag is used to define ............... .
<TITLE> tag is used to define title of the document.
What is the basic structure of HTML File ?
Every HTML document should follow the general form given below:
<HTML>
<HEAD>
<TITLE> Title of page is written here </TITLE>
</HEAD>
<BODY>
The HTML tags that define the page are written here
</BODY>
</HTML>
The <HEAD>...</HEAD>
tags make the header of the document and the <BODY>...</BODY>
tags make the body of the HTML document.
Face attribute is used with ............... tag and used for ............... .
Face attribute is used with <FONT> tag and used for setting the font type of the text.
To align multiple lines of text we use ............... .
Align
Reason — Align attribute of <P>
tag is used to change the alignment of a paragraph. It is not supported in HTML5.
What is the use of 'size' in <BASEFONT>
tag ?
The <BASEFONT>
tag is used with its attribute "size", whose value determines the document's base font size. The size can have an absolute value from 1 to 7 (eg., size = 5) or a relative value by placing a plus or minus sign before the value (eg., size = +1).
List the attributes of <FONT>
tag.
The attributes of <FONT>
tag are:
List and define different types of paragraph alignments.
The different types of paragraph alignments are as follows:
<P>
tag is 'left', the paragraph is aligned to the left margin of the page.<P>
tag is 'center', the paragraph is aligned to the center of the page.<P>
tag is 'right', the paragraph is aligned to the right margin of the page.The value of #FFFFFF is ............... .
The value of #FFFFFF is white.
The value of #000000 is ............... .
The value of #000000 is black.
<BR>
tag has its closed tag as </BR>
. State True or False?
False
Reason — <BR>
is an empty element. It does not have a closing tag </BR>
.
<P>
tag has no closing tag. State True or False?
False
Reason — <P>
is a container element. Thus, it requires a starting tag <P>
and a closing tag </P>
.
<HR>
tag is same as <BR>
. State True or False?
False
Reason — The <HR>
tag produces a horizontal line spread across the width of the browser window while the <BR>
tag is used to end one line and jump to the next line.
<KBD>
tag is used to display tables. State True or False?
False
Reason — <KBD>
tag is used to display text as user keyboard entry. It is typically displayed in a fixed width font.
The default alignment of text is ................. , default text color is ................. and the default background color is ................. .
The default alignment of text is left, default text color is black and the default background color is white.
Give the coding for giving the heading 'PACE Computer Education' of <H1>
tag, font style as Comic Sans MS, text color as blue. Body text color as red, background as green, alignment as center, font style of body text as Brush script, size = 15. The text for body is as follows :
Education is the
ability to listen to almost
anything without
losing your temper
or your
self confidence.
And so is Democracy and Maturity too.
<BODY BGCOLOR = "GREEN" TEXT = "RED">
<H1>
<FONT FACE = "COMIC SANS MS" COLOR = "BLUE">PACE Computer Education</FONT>
</H1>
<P ALIGN = "CENTER">
<FONT FACE = "BRUSH SCRIPT" SIZE = "15">
Education is the
ability to listen to almost
anything without
losing your temper
or your
self confidence.
And so is Democracy and Maturity too.
</FONT>
</P>
What is wrong in the following coding ?
<HEAD> <my web page >
<TITLE> Welcome to My Web Page
</HEAD>
</TITLE>
The <TITLE>
tag must be entered between the opening and closing <HEAD>
tags. Since "my web page" is not a tag, it should not be enclosed between angle brackets and should be written inside the <BODY>
tag.
The correct code is as follows:
<HEAD>
<TITLE> Welcome to My Web Page </TITLE>
<BODY>
my web page
</BODY>
</HEAD>
What is wrong in the following coding ?
<FONT name = "Arial",
type = "Bold" size = 3>
The <FONT>
tag has three attributes :
Type attribute is not used with <FONT>
tag. To make the text bold, we use the <B>
or <STRONG>
tag.
The correct code is as follows:
<FONT face = "Arial" size = "3">
What is wrong in the following coding ?
<FONT face = comic sans ms color = Red>
String values of attributes must be enclosed within quotes.
The correct code is as follows:
<FONT face = "comic sans ms" color = "Red">
What is wrong in the following coding ?
<FONT color = #345678
All HTML tags are enclosed in angle brackets (< >). The values of attributes are given in double quotes (" ").
The correct code is as follows:
<FONT color = "#345678">
What is wrong in the following coding ?
<BODY color = "Red" background = "Myimage.jpg">
The attribute used to set the colour of text in a document is text.
The correct code is as follows:
<BODY text = "Red" background = "Myimage.jpg">
What is wrong in the following coding ?
<BR> </BR>
<BR>
is an empty tag. It doesn't have a closing tag.
What is wrong in the following coding ?
<P Font face = "Arial" color = "Blue">
The paragraph <P>
tag and the font <FONT>
tag should be written in separate angle brackets as both are different tags.
The correct code is as follows:
<P> <FONT face = "Arial" color = "Blue">
What is wrong in the following coding ?
<Body Margin Top = 60 Left = 75>
Text with changed margin </Body>
The attributes 'leftmargin' and 'topmargin' of <BODY>
tag are used to specify the left and top margin of the document, respectively. The values of attributes should be enclosed in double quotes (" ").
The correct code is as follows:
<Body Topmargin = "60" Leftmargin = "75">
Text with changed margin </Body>
What is wrong in the following coding ?
<BASEFONT SIZE = 5>
<BODY> Text with New format
</BODY>
<BASEFONT>
tag should be inside the <BODY>
tag.
The correct code is as follows:
<BODY>
<BASEFONT SIZE = 5>
Text with New format
</BODY>
What is wrong in the following coding ?
<HTML>
<HEAD>
<TITLE> New Page
</HEAD>
</TITLE>
</HTML>
The <TITLE>
tag must be entered between the opening and closing <HEAD>
tags.
The correct code is as follows:
<HTML>
<HEAD>
<TITLE> New Page
</TITLE>
</HEAD>
</HTML>
Differentiate between <TITLE>
and <HEAD>
tags.
<TITLE> tag | <HEAD> tag |
---|---|
<TITLE> tag contains the document title and identifies its content in a global context. | The <HEAD> tag is used to define the document header. It contains information about the document, including its title, scripts used, style definitions and document descriptions. |
<TITLE> tag is enclosed in <HEAD> tag. | <HEAD> tag contains <TITLE> tag inside it. |
Differentiate between container and empty elements.
Container elements | Empty elements |
---|---|
Container elements require both, an opening and a closing tag. | Empty elements require only an opening tag and not a closing tag. |
Container elements affect the text appearing between their opening and a closing tag. | Empty elements just carry out the job assigned to them. |
For example, <TITLE> ...</TITLE> , <FONT> ...</FONT> etc. | For example, <BR> , <HR> etc. |
Differentiate between <BR>
and <P>
tag.
<BR> tag | <P> tag |
---|---|
<BR> tag is a line break tag that is used to end one line and jump to the next line without showing any line in between. | <P> tag is a paragraph tag that is used to define a paragraph of text. |
It is an empty element. | It is a container element. |
List and define different types of heading tags.
HTML has six levels of headings, numbered 1 through 6, with 1 being the largest. Headings are typically displayed in larger and bolder fonts than normal body text.
The heading tags are as follows:
<H1>
<H2>
<H3>
<H4>
<H5>
<H6>
The first heading in a document is tagged <H1>
, the second heading is tagged as <H2>
and so on.
List and explain the different attributes of body tag.
The different attributes of body tag are as follows:
The attributes are used with <BODY>
tag in the following way:
<BODY ALINK = "BLUE" VLINK = "YELLOW" BACKGROUND = "ANIMALS.JPG" BGCOLOR = "BLACK" TEXT = "WHITE" LEFTMARGIN = "60" TOPMARGIN = "80">
What is the difference between basefont and font tag ?
basefont tag | font tag |
---|---|
The <BASEFONT> tag sets a base font size for the entire document. | The <FONT> tag applies font and text styling to a specific section of text enclosed within its opening and closing tags. |
The closing tag </BASEFONT> is optional. | The closing tag </FONT> is must for the changes in appearance to take effect. |
How can a 2D or 3D horizontal rule be displayed ?
The <HR>
tag is used to produce horizontal line spread across the width of the browser window. By default, a 3D horizontal line is produced.
If we want to produce a 2D rule, we add "noshade" to <HR>
tag.
For example:
<HR> <!-- This tag produces a 3D horizontal rule -->
<HR noshade> <!-- This tag produces a 2D horizontal rule -->
What are logical and physical text styles ?
Logical text styles are general descriptions. Each browser handles a logical style in its own way. Logical styles render the text according to its meaning. For example, <EM>
is for emphasizing something and <STRONG>
is for strongly emphasizing something.
<STRONG> This is an example of logical text style </STRONG>
Physical text styles indicate the specific type of appearance for a section. For example, bold, italics, underlined etc. They are rendered in the same manner by all browsers.
<B><I> This is an example of physical text style </I></B>
How can different tags be combined in HTML ? What is its use ?
HTML allows us to combine various tags together so as to achieve the desired result and effect. Different tags are enclosed in one another to combine their effects.
For example, if we want our text to appear bold and underlined, we can use <B>
and <U>
tags together in the following manner:
<B><U> Bold and Underlined </U></B>
What all tags are required in every HTML page ?
The following tags are required in every HTML page:
<HTML>
...</HTML>
<HEAD>
...</HEAD>
<BODY>
...</BODY>
Write the HTML code for the following to appear one after the other :
<H3>We are Proud to Present</H3>
<HR>
<H1>Orbit</H1>
<H2>The Geometric Juggler</H2>
<HR>
Insert the appropriate line break and paragraph break tags to format the following poems with a blank line between them :
A Morning is a Wonderful Blessing,
Either Cloudy or Sunny
It stands for Hope, giving us another
Start of what we call Life.
<P>
A Morning is a Wonderful Blessing, <BR>
Either Cloudy or Sunny <BR>
It stands for Hope, giving us another <BR>
Start of what we call Life. <BR>
</P>
Write a complete HTML Web page with the title "Foo Bar" and a heading at the top which reads "Happy Hour at the Foo Bar", followed by the words "Come on down!" in regular type.
<HTML>
<HEAD>
<TITLE> Foo Bar </TITLE>
</HEAD>
<BODY>
<H1> Happy Hour at the Foo Bar </H1>
<P>Come on down!</P>
</BODY>
</HTML>
How would you say,
"We're having our annual Impeachment Day SALE today,"
in normal sized blue text, but with the word "SALE" in the largest possible size in bright red ?
<FONT COLOR = "BLUE">We're having our annual Impeachment Day</FONT>
<FONT COLOR = "RED" SIZE = 7> SALE </FONT>
<FONT COLOR = "BLUE">today</FONT>
What type of lists are supported by HTML ?
HTML supports the following types of lists:
1. Unnumbered or bulleted list — These lists are indented lists with a special bullet symbol in front of each item. For example,
<UL>
<LI>Apples</LI>
<LI>Bananas</LI>
<LI>Grapes</LI>
</UL>
2. Numbered or ordered list — These are indented lists that have numbers or letters in front of each item. For example,
<OL>
<LI>Apples</LI>
<LI>Bananas</LI>
<LI>Grapes</LI>
</OL>
3. Definition lists — A definition list <DL>
usually consists of an alternating definition term <DT>
and a definition description <DD>
. For example,
<DL>
<DT>Apples</DT>
<DD>Apples are rich in Vitamin A. They are good for eye sight. They should be eaten in the morning.</DD>
<DT>Bananas</DT>
<DD>Bananas are rich in calcium. They keep the stomach healthy. They should be eaten during the day.</DD>
</DL>
Differentiate between ordered and unordered lists.
Ordered list | Unordered list |
---|---|
Ordered list are indented lists that have numbers or letters in front of each item. | Unordered list are indented lists with a special bullet symbol in front of each item. |
For example, <OL> <LI>Apples</LI> <LI>Bananas</LI> <LI>Grapes</LI> </OL> | For example, <UL> <LI>Apples</LI> <LI>Bananas</LI> <LI>Grapes</LI> </UL> |
How will you nest an unordered list inside an ordered list ?
We can nest an unordered list inside an ordered list in the following manner:
<OL>
<LI>Fruits
<UL>
<LI>Apples</LI>
<LI>Grapes</LI>
<LI>Bananas</LI>
</UL>
</LI>
<LI>Vegetables
<UL>
<LI>Potatoes</LI>
<LI>Cabbages</LI>
<LI>Gourd</LI>
</UL>
</LI>
<LI> Dairy Products
<UL>
<LI>Milk</LI>
<LI>Curd</LI>
<LI>Buttermilk</LI>
</UL>
</LI>
</OL>
Which three tags let you create the definition lists ?
The three tags that let us create the definition lists are :
<DL>
— It is used to define the starting and ending of a definition list.<DT>
— It specifies a definition term.<DD>
— It specifies a definition description. Web browsers usually format the definition on a new line and indent it.A definition list is written in the following manner:
<DL>
<DT>Apples</DT>
<DD>Apples are rich in Vitamin A. They are good for eye sight. They should be eaten in the morning.</DD>
<DT>Bananas</DT>
<DD>Bananas are rich in calcium. They keep the stomach healthy. They should be eaten during the day.</DD>
</DL>
Which two tags let you create the
(i) unnumbered lists ?
(ii) numbered lists ?
(i) The <UL>
and <LI>
tags let us create unnumbered lists.
(ii) The <OL>
and <LI>
tags let us create numbered lists.