DAV Class 8 Computer Chapter 4 HTML-III Question Answer Notes
DAV Class 8 Computer Chapter 4 HTML-III Question Answer Notes Solution by Expert Computer Teacher. DAV Class 8 Computer 4th Chapter HTML-III for Students of DAV Schools.
Lesson No 4
HTML-III
(Q1) Multiple Choice Questions:-
(1) In HTML document, we can insert image by using ______ tag.
(a) <picture>
(b) <photo>
(c) <img>
(d) <snap>
Ans: (c) <img>
(2) We use ______ attribute for the location/path of the image files which needs to be inserted in the webpage.
(a) Location
(b) place
(c) venue
(d) src
Ans: (d) src
(3) The ______ attribute that is used for alternative text in the webpage.
(a) substitute
(b) alt
(c) replace
(d) None of these
Ans: (b) alt
(4) It is an underlined word or phrase, or sometimes even a graphic image or icon, which has been linked to another location.
(a) Attached
(b) Hyperlinked
(c) Joined
(d) Fixed
Ans: (b) Hyperlinked
(5) Anchor tag is divided into _______ parts.
(a) Three
(b) Two
(c) Four
(d) Six
Ans: (b) Two
(Q2) Match the following column A with Column B
Sr. No |
Column A | Column B |
Answers |
1) |
<IMG> tag | It is an underlined word or phrases, or sometimes even a graphic image or icon, which has been linked to another location. |
Used for inserting images in HTML document |
2) |
SRC attribute | When one page is linked with the other page on the same or another website. | Defines the location/path of the image files that is to be inserted on webpage |
3) | Anchor Tag | Defines the location/path of the image files that is to be inserted on webpage |
It used for creating the hyperlink in a webpage |
4) |
Hyperlink | Used for inserting images in HTML document |
It is an underlined word or phrases, or sometimes even a graphic image or icon, which has been linked to another location. |
5) |
External link | It used for creating the hyperlink in a webpage |
When one page is linked with the other page on the same or another website. |
(Q3) State whether the following statements are True or False :-
(1) Anchor tag is divided into six parts. False
(2) The visited link is underlined and purple. True
(3) The name attribute of the <A> tag used for creating bookmark on a webpage. True
(4) The <img> tag is container tag. False
(5) The three image file formats can be easily used in HTML which are .jpg, .gif. and .png True
(6) The align attribute specifies the alignment of the image. True
(Q4) Answer the following questions in one or two sentences each :-
(1) What is a Hyperlink
Ans :- It is the word, phrase which is been underlined or the graphic image / icon which is been connected/linked to the another location. If we make a go to the hyperlink, our arrow pointer turns into the hand shape icon and make a click on the hyperlink, suddenly we are been taken from the previous location to the other location in the same or other document or on the world wide web.
(2) Name the two parts of the Anchor tag.
Ans :- There are two parts of the Anchor Tag which are The link text – on which the user can click on and the other part is web address (URL).
(3) State the two types of linking.
Ans :- In HTML, there are two types of linking which are Internal linking and External Linking.
(4) What is the abbreviation of HREF
Ans :- The abbreviation of HREF is Hypertext Reference.
(5) State the importance of IMG tag?
Ans:- In HTML IMG tag is used for adding or inserting images in the document.
(Q5) Answer the following questions :-
(1) What is IMG Tag. Write down its attributes?
Ans :- In the HTML if incase there is a need of inserting or adding the images in the document, then we can add or insert it in the document by making using of the IMG tag. The IMG tag is defined as <img> tag. This tag is always treated as the empty tag which means there is no content in this tag nor it does not have any closing tag.
Whenever any webpage is created, then it is saved as file in HTML whereas the image which is inserted in the HTML document/webpage is also saved as the separate file. When many webpages are been uploaded on the web server then, website is been formed/created. The webpage images are save din a separate file file and is loaded into the space which been created by the img element. HTML there type of image file formats/extensions are been supported which are .jpg,, .gif, and .png. There are various attributes of the img element and are classified as required attributes and optional attributes.
Required attributes of IMG tag are
Attribute |
Description | Possible Values |
Src | It specifies the location/path of the image that is to be inserted in the webpage |
URL |
Alt |
Text |
It specifies the alternate text |
(a) The src attribute states the browser that which image should be inserted on the webpage and from where to find it (the image). All the images are been stored in the separate folder which arises the need for the specification of the location or path of the image in the src attribute. After which the browser send the instructions to the respective folder, intakes the images and then displays it in the space that is been reserved/kept in the image tag.
(b) Alt attribute is used for alternate text. If incase, there is a problem with the image in getting displayed, then the text with the double quotation marks appears.
Optional Attributes of the IMG tag
Attribute |
Value | Description |
Align | Top Bottom Middle Right |
This specifies the image alignment |
Border |
Pixels |
It specifies the width for the image border |
Height |
Pixels or % | It is used for specifying the height of the image. |
width | Pixels or % |
It is sued for specifying the width of the image |
Align attribute is used for stating the alignment of the image in the document.
(2) What do understand by Anchor Tag
Ans :- Anchor tag is used for creating the hyperlinks in the webpage. For creating the hyperlink, we make use of <A> tag. HREF which is known as Hypertext reference attribute is used to state the URL (web address) of the webpage of the page, which gets displayed when the user clicks on the linked text. The text which is described between the <A> and </A> tag is termed as the link text. Anchor tag is divided into two parts which are one is link text and the other one is web address. In the browsers, there are some links which appears by default which are :-
- Unvisited link – is underlined and Blue
- Visited link – is underlined and Purple
- Active link – is underlined and Red
You can even change the colors of the above links by making use of the link, alink and clink attribute in the <body> tag. Link is the attribute which can be used for changing the color of the links which are unvisited link, vlink for visited link and alink for active link.
In the anchor tag <A> the name attribute is specially used for creating a bookmark on the webpage. This states the attributes name of the anchor which is sued as href attribute along with the # symbol.
(3) What do you mean by E-mail Linking
Ans :- If incase the visitor or our friends wishes to send the e-mail from the designed/created website, then we can do it by simply providing the special link by making use of the <a href> tag known as mailto. For ex :- <a href=”mailto:youremailaddress”>Contact Me </a>. The output would be seen in your friends e-mail where the program is opening a new email along with your address already writer in the To: field.
(4) Explain the term Internal Linking and External Linking.
Ans :- The Internal Linking and External Linking are explained as followed :-
(a) Internal Linking:- In the Internal Linking one part of webpage is been linked to the another part within the same webpage. In this type of links, for jumping on to a particular location in the webpage that we wish to Bookmark is much essential. Bookmark a website or a place in a file means recording of the address which helps in quickly accessing of the same in future. Thus bookmarks can be created by making use of the name attribute of the <A> tag. .
(b) External Linking:- In the External Linking when one page is linked to the other webpage on the same website or on the other one. When we click on such type of links, then these links takes the user to the new webpage which is on the same website or or to the other new website, stating the external linking.
For further update follow net explanations home page