Loading...
Please wait while we prepare your content
Please wait while we prepare your content
Solutions for Computer Applications, Class 10, CBSE
What does W3C stand for?
World Wide Web Consortium
Which elements have both starting and ending tags?
Container elements
How many heading levels can be defined in HTML?
Six heading levels starting from <H1>
to <H6>
.
Write the tag which is used as a separator between blocks of text.
<HR>
Which attribute of HTML tag specifies the language used within the document?
Lang attribute
What is the utility of <P>
tag?
Marks a block of text as a paragraph
Which tag is used to set Font Face, Size, Color, and other attributes for the whole HTML document?
<BASEFONT>
What type of lists are supported by HTML?
Unordered, Ordered and Definition
Name any one software for each of the following categories:
a. Text Editor
b. Web Browser
a. Notepad
b. Google Chrome
Mihir wants to know the name of any two text editors that can be used to write the code for an HTML webpage. Can you provide him with the names?
The two text editors that can be used to write the code for an HTML webpage are Notepad and Wordpad.
Write the HTML code for the following in the space provided.
a. <H3> LOYOLA HIGH SCHOOL. </H3>
b. <H1> PETER PAN </H1>
c. <H3> A MUSICAL </H3>
d. <HR>
Find error(s) in the following HTML code segment. Rewrite the correct code and underline the corrections made.
<UL STYLE: square>
<LI> Water Bottles
<LI> Lunch box
<LI> Handkerchief
</OL>
The errors in the given code are as follows:
<LI>
tags should be closed with </LI>
</UL>
instead of </OL>
.The correct code is as follows:
<UL Type= "Square">
<LI>Water Bottles</LI>
<LI>Lunch Box</LI>
<LI>Handkerchief</LI>
</UL>
6CO2 + 6H2O → C6H12O6 + 6O2
To display the above given chemical expression on a web page, the following HTML code was written:
6CO<sup>2</sup> + 6H<sup>2</sup>O →
C<sup>6</sup>H<sup>12</sup>O<sup>6</sup> + 6O<sup>2</sup>
But it's not displaying the expression in desired format. Identify the fault(s) and suggest the required correction(s).
<SUB>
tag is used to write a text as a subscript and <SUP>
tag is used to write a text as a superscript. The given chemical expression should be written using <SUB>
tag instead of the <SUP>
tag.
Thus, the given equation can be written correctly by writing the given HTML code:
6CO<SUB>2</SUB> + 6H<SUB>2</SUB>O →
C<SUB>6</SUB>H<SUB>12</SUB>O<SUB>6</SUB> + 6O<SUB>2</SUB>
The ............... section contains the content to be displayed on the web page.
The <BODY>
section contains the content to be displayed on the web page.
The ............... editor provides various tools and graphical interface where the web pages are designed.
The WYSIWYG editor provides various tools and graphical interface where the web pages are designed.
............... and ............... are attributes of the <HR>
tag.
Size and Width are attributes of the <HR>
tag.
The colour of the text in the HTML document can be changed using the ............... attribute of the Font tag.
The colour of the text in the HTML document can be changed using the Color attribute of the Font tag.
The FACE attribute of the ............... tag is used to change the typeface or the name of the font.
The FACE attribute of the <FONT>
tag is used to change the typeface or the name of the font.
The ............... attribute of Body tag defines the colour of the visited links in a document.
The <VLINK>
attribute of Body tag defines the colour of the visited links in a document.
The ............... attribute of Body tag changes the colour of the Active link.
The <ALINK>
attribute of Body tag changes the colour of the Active link.
The three values that can be defined with ............... tag are disc, square, and circle.
The three values that can be defined with <UL>
tag are disc, square, and circle.
To specify the start value of the first item from which an ordered list should start, the ............... attribute is used.
To specify the start value of the first item from which an ordered list should start, the Start attribute is used.
A list created within a list is called ............... list.
A list created within a list is called nested list.
The default colour of a hyperlink on a web page is ............... .
The default colour of a hyperlink on a web page is blue.
The ............... tag is used to create subscripts and ............... tag is used to create superscripts on a web page.
The <SUB>
tag is used to create subscripts and <SUP>
tag is used to create superscripts on a web page.
The ............... attribute is used to define the thickness of horizontal rule.
The Size attribute is used to define the thickness of horizontal rule.
The ............... tag is used to insert line break on a web page.
The <BR>
tag is used to insert line break on a web page.
Write a short note on web browser.
A web browser is essential software used for accessing websites and serves as an interface between users and the World Wide Web. Web browsers come in various forms, including those with graphical user interfaces like Internet Explorer, Mozilla Firefox, Google Chrome, Opera, as well as text-based browsers such as Lynx.
They are typically installed on individual computers, enabling users to effortlessly explore files, folders, and websites through hyperlinks. Multiple tabs and windows within the same browser can be opened simultaneously, enhancing user experience.
Web browsers offer an array of features and functionalities, including the ability to download content, save bookmarks for easy access, and manage passwords securely. They also provide tools like spell-checking, integrated search engine toolbars, tabbed browsing for efficient multitasking, ad-blocking features, accessibility through HTML access keys, and pop-up blocking to enhance browsing safety and convenience.
Differentiate between Block-level elements and Text-level elements.
Block-level elements | Text-level elements |
---|---|
Block level elements take up the full width available and by default, begin on a new line. | Text level elements are used to markup the bits of text, including changing the text appearance or creating hyperlinks. They do not start on a new line and only take up as much width as necessary. |
For example, <P> tag, <HR> tag etc. | For example, <B> tag, <I> tag etc. |
What is the difference between <B>
and <BR>
tags?
<B> tag | <BR> tag |
---|---|
This tag is used for making the text bold. | This tag is used to insert a line break. |
It is a container element. | It is an empty element. |
E.g.<b>This text is bold.</b> | E.g.This is some text <br> on a new line. |
How can we display <, > and & symbols on a web page?
We can display the given symbols on a web page using the following character entities:
Symbol | Character Entities |
---|---|
< | &lt |
> | &gt |
& | &amp |
Differentiate between Ordered and Unordered list with the help of an example.
Difference between Ordered and Unordered list:
S. No. | Ordered List | Unordered List |
---|---|---|
1. | The ordered list is used to display the list of items in a specific order. | The unordered list is used when the items are not to be displayed in any particular order. |
2. | <OL> tag is used to create ordered list. | <UL> tag is used to create unordered list. |
3. | E.g. <OL> <LI>Apple</LI> <LI>Mango</LI> <LI>Banana</LI> </OL> Output
| E.g. <UL> <LI>Apple</LI> <LI>Mango</LI> <LI>Banana</LI> </UL> Output
|
What do you mean by nesting of list?
A list created within a list is called a Nested list. Ordered and Unordered list can be nested within each other to form a multilevel list. To create a nested list, we add a new list within a list. Consider the given example,
<OL>
<LI> Input Devices
<UL>
<LI> Keyboard </LI>
<LI> Mouse </LI>
<LI> Joystick </LI>
</UL>
<LI> Output Devices
<UL>
<LI> Monitor </LI>
<LI> Speaker </LI>
<LI> Printer </LI>
</UL>
</OL>
The nested list will be displayed as follows:
What is the function of Definition List? Explain its structure with the help of an example.
Definition lists are used to outline the multiple terms and their descriptions one after another, as in a glossary and other name or value lists. It starts and ends with <DL>
and </DL>
tag respectively. The <DL>
tag is used in conjunction with <DT>
(Definition Term) and <DD>
(Definition Description) tags where:
<DT>
helps in defining the terms or names.<DD>
helps in describing each term or name.Consider the following example,
<DL>
<DT>DNA</DT>
<DD>DNA stands for Deoxyribonucleic acid. It is the hereditary material in humans and almost all other organisms.</DD>
<DT>RNA</DT>
<DD>RNA stands for Ribonucleic acid. It acts as a messenger between DNA and the protein synthesis complexes known as ribosomes.</DD>
</DL>
The given HTML code is displayed in the following way:
Discuss the use of <UL>
and <LI>
tags with suitable examples of each.
The <UL>
tag is used to define an unordered list. It indents each item in the list and adds a bullet against each of them. The <LI>
tag is used to display the listed items in an unordered or ordered list.
Consider the following example,
<HTML>
<BODY>
FRUITS
<UL>
<LI>Mango</LI>
<LI>Apple</LI>
<LI>Guava</LI>
<LI>Banana</LI>
</UL>
</BODY>
</HTML>
The list is displayed as follows:
FRUITS
The ............... contain elements which define how the information on a web page is formatted or displayed.
Tags
Reason — The tags contain elements which define how the information on a web page is formatted or displayed.
The ............... tag contains the content of your document which gets displayed on the web page of your browser window.
<HEAD>
<BODY>
<HTML>
<BODY>
Reason — The <BODY>
tag contains the content of our document which gets displayed on the web page of our browser window.
Which special property provides additional information about an HTML element?
Attribute
Reason — The attribute property provides additional information about an HTML element.
The ALIGN attribute of <P>
tag cannot take ............... value.
None of these
Reason — The ALIGN attribute of <P>
tag can take right, left and justify as value.
Which of the following tags helps in retaining the spacing of text or displaying the preformatted spaces on a webpage in an HTML document?
<SPACE>
<PRE>
<SPC>
<PRE>
Reason — The <PRE>
tag helps in retaining the spacing of text or displaying the preformatted spaces on a webpage in an HTML document.
Which tag adds a line horizontally on your web page?
<HR>
<LINE>
<LINE Direction="horizontal">
<TR>
<HR>
Reason — The <HR>
tag adds a line horizontally on your web page.
Choose the correct HTML tag to make the text italic.
<ii>
<Italics>
<Italic>
<I>
<I>
Reason — The <I>
tag is used to make the text italic.
What is the correct HTML tag for inserting a line break?
<BR>
<LB>
<Break>
<Newline>
<BR>
Reason — The <BR>
tag is used for inserting a line break.
An HTML ............... consists of an ON tag, the content, and an OFF tag.
Element
Reason — An HTML element consists of an ON tag, the content, and an OFF tag.
Which character is used with the OFF tag?
/
Reason — The / character is used with the OFF tag.
The default colour of LINK attribute is ............... .
Blue
Reason — The default colour of LINK attribute is blue.
The entity which displays an '&' sign on the browser is ............... .
&
<&AMP>
&AMP
&AMP
Reason — The entity which displays an '&' sign on the browser is &AMP
.
Which entity displays the ">" (greater than) sign on the browser?
<& GT>
&GT
& GRT
&GT
Reason — The &GT
entity displays the ">" (greater than) sign on the browser.
The HTML tag for the largest heading is ............... .
<H1>
<H6>
<HEAD>
<H1>
Reason — The HTML tag for the largest heading is <H1>
.
Which tag is used to define the basic font size for the whole document?
<BASEFONT>
<COLOR>
<FONT>
<SIZE>
<BASEFONT>
Reason — The <BASEFONT>
tag is used to define the basic font size for the whole document.
The default value of Type attribute for an unordered list is ............... .
Disc
Reason — The default value of Type attribute for an unordered list is disc.
Which of the following tags is suitable for creating a numbered list?
<BL>
<OL>
<UL>
<OL>
Reason — The <OL>
tag is suitable for creating a numbered list.
To display (X+Y)2, the correct HTML code is:
<SUB> (X+Y)2 </SUB>
X+Y<SUP> 2 </SUP>
(X+Y) <SUP> 2 </SUP>
<SUP> (X+Y) 2 </SUP>
(X+Y) <SUP> 2 </SUP>
Reason — To display (X+Y)2, the correct HTML code is (X+Y) <SUP> 2 </SUP>
.
What is the full form of DTD?
Document Type Definition
Reason — The full form of DTD is Document Type Definition.
Anything written between ............... is taken as a comment.
<?-->
<?- --?>
<!-- and -->
</--->
<!-- and -->
Reason — Anything written between <!-- and -->
is taken as a comment.
To start a list with alphabet 'E', which line should be used?
<OL type="A">
<OL type="A" start= "5" >
<OL type="E" >
<OL start="E" >
<OL type="A" start= "5" >
Reason — To start a list with alphabet 'E', we write the following code:
<OL type="A" start= "5" >
Which of the following is a text editor?
Both 1 and 2
Reason — Notepad and Wordpad both are text editors.
Define the <BODY>
tag in HTML.
The <BODY>
tag is the largest part of the HTML document. It contains the content that appears on a web page when viewed in a browser. Within the <BODY>
tag, various formatting elements can be incorporated, such as images, headings, lists, and hypertext links to enhance the appearance of a web page.
Define the term Hyperlink.
Hyperlink is a highlighted text segment or image that connects to other pages on the web.
Differentiate between Container and Empty elements in HTML. Give any two examples of HTML tags from each category.
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. |
Which attribute allows you to change the style of numbers in an ordered list?
'Type' attribute.
What is an attribute in HTML?
An attribute is a property that provides additional information about an HTML element. It enhances the functionality of a tag and is always specified inside the opening tag.
Which heading element gives the most prominent heading?
<H1> tag gives the most prominent heading.
Write names of two attributes each for the following tags:
<FONT>
<BODY>
<FONT>
tag are Face and Size.<BODY>
tag are Bgcolor and Background.Identify which of the following is a tag or an attribute:
Write an HTML code to create the following ordered list.
C. Apples
D. Oranges
E. Grapes
<HTML>
<BODY>
<OL TYPE = "A" START = "3">
<LI>Apples</LI>
<LI>Oranges</LI>
<LI>Grapes</LI>
</OL>
</BODY>
</HTML>
Write an HTML code to create the following bulleted list.
<HTML>
<BODY>
<UL TYPE = "CIRCLE">
<LI>MS Word</LI>
<LI>MS Excel</LI>
<LI>MS PowerPoint</LI>
<LI>MS Access</LI>
</UL>
</BODY>
</HTML>
Find the errors in the following HTML code and write the correct code.
<UL Style: Square> <LI> Water Bottles <LI> Lunch Box <LI> Handkerchief </OL>
The errors in the given code are as follows:
<LI>
tags should be closed with </LI>
</UL>
instead of </OL>
.The correct code is as follows:
<UL Type= "Square">
<LI>Water Bottles</LI>
<LI>Lunch Box</LI>
<LI>Handkerchief</LI>
</UL>
Identify error(s) in the following HTML code and write the correct code.
<OL Type= "a" Start= "d">
The error in the given code is that the value of start attribute should be numeric. Thus, for the list to start with 'd', the value of start attribute must be set to '4'.
The correct code is as follows:
<OL Type= "a" Start= "4">
The title of a document can contain maximum 64 characters.
True
Reason — The title should be short and include only upto 64 characters.
The Heading levels are part of the <HEAD>
tag.
False
Reason — The Heading levels are part of the <BODY>
tag.
The Vlink tag defines the colour of the link after it has been visited.
True
Reason — The Vlink attribute defines the colour of the link after it has been visited.
A list can be defined in different styles.
True
Reason — A list can be defined as a ordered list, unordered list or as a definition list.
The default value for <OL>
is a filled circle.
False
Reason — The default value for <UL>
is a filled circle or disc.
You can start the ordered list with a different number.
True
Reason — We can start the ordered list with a different number which we can specify using the start attribute.
The colour of the hyperlinks in an HTML document cannot be changed.
False
Reason — The Link, Alink and Vlink attributes of the body tag control the colours of the hyperlinks.
There must be only one <title>
tag in an HTML document.
True
Reason — There must be only one <title>
tag in an HTML document and it is defined within the <HEAD>
tag.
Unordered list type creates a bulleted list.
True
Reason — Unordered list type creates a bulleted list with bullets like disc, circle or square.
Physical structure refers to different parts of a document, i.e., how a document is built.
True
Reason — Physical structure refers to the arrangement and organization of different parts of the document, including elements like headings, paragraphs, lists, tables, images, and more.