Class 10 Computer Application code 165 Linking in HTML Question Answer

200+ Important Question Answer

Class 10 Computer Application [165] Question Answer


Unit 2 – HTML II [Linking in HTML]

1. What do you mean by Linking?

Answer: Linking means connecting a text or image with another document. Linking is the chief power of HTML.

A browser highlights the identified text or image with color and /or underlines to indicate it is a hypertext link or link or hyperlink.

2. What do you mean by Hyperlink?

Answer: A hyperlink is a link from a hypertext file to another document, file, or location. A hyperlink is typically activated by clicking on a highlighted word or icon at a particular location.

3. How many types of Linking?

Answer: There are two types of linking – External Linking and Internal Linking

4. What is External Linking?

Answer: The External Linking links two documents i.e. upon clicking a hyperlink, a new document, to which the hyperlink is linked, gets opened.

5. What is Internal Linking?

Answer: The Internal Linking links various sections of the same document. That is, upon clicking a hyperlink, a different section of the same document becomes visible in the browser window.

6. Which HTML tag is used for hyperlinks?

Answer: Anchor tag <A>

7. What is anchor tag <A>?

Answer: An anchor tag <A> of HTML is used to make a hyperlink to another document.

Syntax: <A href = “url” title = “title of document”>

8. What is the href attribute of anchor tag <A>?

Answer: The href attribute is used to specify the URL of the target of the link.

Example

<!DOCTYPE html>
<html>
<head>
  <title> Using of anchor tag  with href attribute</title>
</head>
<body>
  <h4>Anchor Tag  with href</h4>
   <ol>
    <li> <A href = "https://mycstutorial.in/"> Visit mycstutorial.in for Complete Study Material </A> </li>
    <li> <A href = "https://anjeevsinghacademy.com/"> Visit anjeevsinghacademy.com for solution of Sumita Arora</A> </li>
  </ol>
</body>
</html>
Output:
Using of anchor tag with href attribute

Anchor Tag with href attribute

  1. Visit mycstutorial.in for Complete Study Material
  2. Visit anjeevsinghacademy.com for solution of Sumita Arora

9. What is the ‘title’ attribute of anchor tag <A>?

Answer: The title attribute is used to specify a title for the document to which you are linking. The value of the attribute is any string, enclosed in quotation marks.

Example

<!DOCTYPE html>
<html>
<head>
  <title> Using of anchor tag with href and title attribute</title>
</head>
<body>
  <h4>Anchor Tag  with href and title attribute</h4>
   <ol>
    <li> <A href = "https://mycstutorial.in/" title = "mycstutorial - best tutorial for class 9 to 12"> Visit mycstutorial.in for Complete Study Material </A> </li>
    <li> <A href = "https://anjeevsinghacademy.com/" title ="provides complete solutions of ncert and sumita arora"> Visit anjeevsinghacademy.com for solution of Sumita Arora</A> </li>
  </ol>
</body>
</html>
Output:
Using of anchor tag with href and title attribute

Anchor Tag with href and title attribute

  1. Visit mycstutorial.in for Complete Study Material
  2. Visit anjeevsinghacademy.com for solution of Sumita Arora

10. How browser used the ‘title’ attribute of anchor tag <A>? or What is the purposes of title attribute?

Answer: The main purposes of title attribute are –

  • (a) Flash the title the when move the mouse pointer over the link,
  • (b) Used by browser to add this link to a user’s hotlist.
  • (c) It is also used for referencing an otherwise unlabeled resources such as an image or non-HTML document.

11. What is internal linking? Which tag and attributes are used to do internal linking?

Answer: Linking of one part/section of a document to another part/section of document, is known as Internal Linking. Anchor <A> tag and name or id & href attributes are use to do internal linking.

12. How can you do internal linking in HTML? Write steps.

Answer: Internal linking can be done in two steps-

  • (a) The first step to make the target fragment, i.e. define a target fragment using name or id attribute. <A name = “segment1”>Target segment</A>
  • (b) The second step to create the link to the target fragment. <A href = “#segment1”>Click to jump Segment1</A>

13. Write HTML code to show the Internal Linking.

Answer: Code for Internal Linking

<!DOCTYPE html>
<html>
	<head>
		<title>
			Internal linking
		</title>

	</head>
	<body>
		<h3>Internal Linking</h3>
		<a name = "top"><h3>This is top</h3></a>
		<a href="#section1">Click to go Section 1</a><br>
		<a href="#section2">Click to go Section 2</a>
		<a name = "section1">
		<h4> This is Section 1</h4>
		</a>
		<p>
			mycstutorial.in<br> mycstutorial.in<br> mycstutorial.in<br>mycstutorial.in<br>mycstutorial.in<br>mycstutorial.in<br>
			mycstutorial.in<br>	mycstutorial.in<br> mycstutorial.in<br> mycstutorial.in<br>
		
		</p>
		<a id="section2">
		<h4>This is section 2</h4>
		</a>
		<p>
			anjeevsinghacademy.com <br>anjeevsinghacademy.com <br>anjeevsinghacademy.com <br>anjeevsinghacademy.com <br>
			anjeevsinghacademy.com <br>anjeevsinghacademy.com <br>anjeevsinghacademy.com <br>anjeevsinghacademy.com <br>
			anjeevsinghacademy.com <br>anjeevsinghacademy.com <br>anjeevsinghacademy.com <br>anjeevsinghacademy.com <br>
		</p>
		<a href="#top">Click to go Top</a>
	</body>
</html>

Output of above code:

Internal linking

Internal Linking

This is top

Click to go Section 1
Click to go Section 2

This is Section 1

mycstutorial.in
mycstutorial.in
mycstutorial.in
mycstutorial.in
mycstutorial.in
mycstutorial.in
mycstutorial.in
mycstutorial.in
mycstutorial.in
mycstutorial.in

This is section 2

anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com
anjeevsinghacademy.com

Click to go Top

14. How can you links sections of different document?

Answer: To create links between sections of two different documents, first of all you need to create a named anchor <a name=”name1″></a> in the target document, then you need to write anchor tag to links the source document to target document <a href=”target.html#name1></a>.

Note :HTML5 does not support ‘name’ attribute. So use ‘id’ attribute in place of name to create named anchor.

15. Write one example to show the linking sections of different document.

Answer: In target document-

type the following anchor tags where you want to jump after clicking on link.

<a id = “section_outside”>This is the outside section</a> In the source document, links the section_outside. In this section_name followed by filename.

<a href=”target.html#section_outside”> Click here to move to target </a>

16. What is the significance of Linking?

Answer: Linking is the very useful features of HTML. With the help of this, you can link several documents. You can create links of every chapters in one file as table of contents. Menu of any website is the best live example of linking.

17. What is use of mailto?

Answer: “mailto:____” is used with <A> tag to send mail to someone, directly by clicking on the link.

18. Write the syntax of mailto?

Answer: <A href = “mailto:info.mycstutorial@gmail.com” ? Subject = ‘Thanks for your supporting materials’ “> mail to mycstutorial.in </A>

19. Show the uses of mailto with the help of example.

Answer: Code to show how to use mailto:-

<!DOCTYPE html>
<html>
	<head>
		<title>
			Sending mail to mycstutorial
		</title>

	</head>
	<body>
		<h3>Send mail to mycstutorial.in</h3>
		<A href = "mailto:info.mycstutorial@gmail.com" ? Subject = 'Thanks for your supporting materials' "> mail to mycstutorial.in </A>
		Thanks
	</body>
</html>

Output:

Sending mail to mycstutorial

Send mail to mycstutorial.in

mail to mycstutorial.in Thanks

You cannot copy content of this page

Scroll to Top