Curriculum
Course: Ncert-Class 10 computer science
Login

Curriculum

Ncert-Class 10 computer science

Text lesson

Very Short Answer -Class 10- Computer Science-Chapter 2- HTML

Very Short Answer -Class 10- Computer Science-Chapter 2- HTML

Q1. What is meant by inline images in HTML ?

Ans: Inline image means that image displays in line with the text, i.e., the specified image is loaded separately and placed into the text flow as if the image were some special character.

Q2. Name various types of alignments available for images.

Ans: The various types of alignments available for images are:

Top alignment

Middle alignment

Bottom alignment

Left and Right alignment

Q3. Which attributes of <A> facilitates external linking ?

Ans. The attributes of <A> tag which facilitate external linking are:

href — It is used to specify the URL of the target of the link.

title — It specifies a title for the document to which one is linking.

Q4 Which attribute of <A> facilitates internal linking ?

Ans: The attributes of <A> tag which facilitate internal linking are:

name — It is used to identify a segment of the document to which a link is to be established.

href — It is used to link to the named section.

Q5.What for is Mailto function used ?

Ans: The “mailto” function is used to create email links on webpages, allowing users to click on the link and open their default email client with a new message addressed to the specified email address.

 Q6. Write HTML code to create the following ordered list :

    X. Xylophone

    Y. Yak

    Z. Zebra

Ans : <OL TYPE = “A” START = “24”>

<LI> Xylophone </LI>

<LI> Yak </LI>

<LI> Zebra </LI>

</OL>

Q7. How would you indent a single word and put a square bullet in front of it ?

Ans: To indent a single word and put a square bullet in front of it, we can use an unordered list in the following way:

<UL TYPE = “SQUARE”>

<LI> Word </LI>

</UL>

Q8. Write the HTML code to create the following indentation effect :

 Apple pie,

pudding,

and pancake,

All begin with an A.

Ans: Apple pie, <BR> 

pudding, <BR>

and pancake, <BR>

All begin with an A.

Q9. Use a definition list in a table to show that the word “glunch” means “a look of disdain, anger, or displeasure” and that the word “glumpy” means “sullen, morose, or sulky.”

Ans 

<HTML>

<BODY>

<TABLE>

<TR>

<TD>

<DL>

<DT> Glunch </DT>

<DD> a look of disdain, anger, or displeasure</DD>

</DL>

</TD>

</TR>

<TR>

<TD>

<DL>

<DT> Glumpy </DT>

<DD> sullen, morose, or sulky</DD>

</DL>

</TD>

</TR>

</TABLE>

</BODY>

</HTML>

Q10. How would you insert an image file named elephant.jpg at the very top of a Web page ?

Ans: To insert the image at the very top of a Web page, the align attribute of <IMG> tag should be set to “top” in the following way:

<IMG SRC = “ELEPHANT.JPG” ALIGN = “TOP”>

Q11. Suppose you have a large picture of a standing elephant named elephant.jpg. Now make a small named fly.jpg appear to the left of the elephant’s head and mouse.jpg appear next to the elephant’s right foot.

Ans: The HTML code to perform the given task is as follows:

 

<IMG SRC = “FLY.JPG” ALIGN = “TOP”><IMG SRC = “ELEPHANT.JPG”><IMG SRC = “MOUSE.JPG” ALIGN = “BOTTOM”>

 

 

 

 

×

Cart