Explain various attributes of <img> tag. -Technology

1 Answer

Answer :

Attributes of <img> TagAn attribute is an extra piece of information associated with a tag that provides further details about the tag.Following are the various attributes of <img> tag:The src Attribute: The src (source) attribute takes URL (Universal Resource Locator) of an image file as value, which points to the direct location of an image to be displayed. The image that you specify in your <img> tag should be in your computer otherwise the image will not be displayed and in place of image a cross mark in a box 0 will appear.The alt Attribute: This attribute of <img> tag is used to provide alternate text when an image on a Web page cannot be displayed. The alternative text is the text associated with an image that serves the same purpose and conveys the same essential message. As per HTML standard, alt attribute is optional but is highly recommended.The align Attribute: This attribute is used to set the position of an image in a Web page according to the user’s requirements. In HTML, images appear inline with a single line of the text. But, HTML standard does not define a default alignment for the images with respect to other text and images in the same line. There are some values of image alignment attribute as follows:1. Top Alignment2. Middle Alignment3. Bottom Alignment4. Left Alignment5. Right AlignmentThe width and height Attributes: When an image is added to a Web page, it is not mandatory to specify width and height of the image. At the time of loading an image, a box will appear on the place where the image will be loaded.The border Attribute: You can set the border of an image that you want to use in your Web page. The border attribute of the <img> tag specifies the width of the border around an image. By default, an image has no border in HTML.

Related questions

Description : Define height and width attributes of tag. -Technology

Last Answer : The width and height attributes tell the dimension of an image to the browser. Both (height and width) attributes require integer values (dimension of the image in terms of either pixels or percentage of its actual size).

Description : The two common attributes of the and the tag are (a) src and height (b) height and width -Technology

Last Answer : (b) height and width are common attributes of the tag and the tag.

Description : border, frame, cellspacing, cellpadding, align are the attributes of (a) tag (b) tag -Technology

Last Answer : (c) border, frame, cellspacing, cellpadding, align are the attributes of tag.

Description : Write any two attributes for each tag: (a) (b) (c) -Technology

Last Answer : img tag-src, alt, height, widthtable tag - align, bgcolor, border, cellpadding, cellspacinga tag -href, name

Description : What is the purpose of tag ? Mention it’s any two attributes along with their purpose. -Technology

Last Answer : tag is used to insert images in any webpage.Its two main attributes are as follows:SRC : It specifies the URL of the image.ALT : It specifies an alternate text for an image.

Description : Which attribute is used to specify the location of an image file in the tag? Explain. -Technology

Last Answer : The attribute you need to get an image to display on a Web page is the src attribute.In the src attribute of the tag, you can specify the path of the image that you want to add to the ... image somewhere else on the same server, or an image stored on another server.The syntax for src attribute is

Description : Describe the use of alt attribute with tag. -Technology

Last Answer : The alt attribute is used to define alternate text' for an image. It tells the Website visitor, what he/she is missing on the page if the browser cannot load images. The browser will then ... include alt attribute for each image on a page to improve the appearance and usefulness of the document.

Description : Name the values that can be assigned to align attribute of tag. -Technology

Last Answer : The values that can be assigned to align attribute of tag are as follows:1. top2. bottom3. left4. right5. middle

Description : src attribute used with tag stands for (a) screen (b) screen resolution count (c) source -Technology

Last Answer : The correct answer is(c) source

Description : The alternate text of an image can be displayed by using attribute of the tag. (a) src (b) alt -Technology

Last Answer : (b) alt attribute of the tag is used to display the alternate text of an image.

Description : Which is not a valid value in the align attribute of tag? (a) top (b) center -Technology

Last Answer : (b) center is not a valid value in the align attribute of tag. To align in center, tag can be used.

Description : Why is it important to specify width and height attribute in tag? -Technology

Last Answer : (d) Helps the browser to load the Web page faster.

Description : The tag is an ………… tag, that means it has no closing tag. -Technology

Last Answer : The tag is an emptytag, that means it has no closing tag.

Description : tag is used for …………. images. -Technology

Last Answer : tag is used for displaying images.

Description : ……………. is an attribute of the tag which specifies the location or URL of the image to be displayed. -Technology

Last Answer : src is an attribute of the tag which specifies the location or URL of the image to be displayed.

Description : No value is specified with alt attribute of tag. -Technology

Last Answer : False alt attribute provides alternate text for an image if the image is not visible on Web page for any reason.

Description : The align attribute of the tag is used to specify the text that is to be displayed -Technology

Last Answer : False alt attribute is used to specify the text that is to be displayed in case the browser which does not support graphics.

Description : Background is an attribute of : (i) tag (ii) tag (iii) tag (iv) tag -Technology

Last Answer : Background is an attribute of tag

Description : Explain the topmargin and leftmargin attributes of tag. -Technology

Last Answer : topmarginSets a topmargin (distance between the top of the document and the top of the browser window) of your body element.Syntaxe.g. Topmargin LearCBSE is the best website for CBSE students. ... window) of your body element.Syntaxe.g. Leftmargin LearCBSE is the best website for CBSE students.

Description : What is the use of tag in HTML code? Write any two attributes used with this tag. -Technology

Last Answer : The tag encloses the main part of the document. It contains all the contents of a document. Various markup elements are allowed within the body to indicate headings, paragraphs, lists, hypertext links, images and so on. The tag uses various attributes such as background, bgcolor etc.

Description : What does tag in HTML contain? Write any two attributes used with this tag. -Technology

Last Answer : The tag encloses the main part of the document. It contains all the contents of a document. Various markup elements are allowed within the body to indicate headings, paragraphs, lists, hypertext links, images and so on. The tag uses various attributes such as background,bgcoloretc.

Description : What is the function of tag in HTML? Give any two attributes used with it. -Technology

Last Answer : tag is used to draw horizontal lines in the Web page. This horizontal line divides the screen horizontally. tag creates a shaded horizontal line between text. Attributes of tag are size, align and width.

Description : List any two attributes of tag. -Technology

Last Answer : tag is used to draw horizontal lines in the Web page. This horizontal line divides the screen horizontally. tag creates a shaded horizontal line between text. Attributes of tag are size, align and width.

Description : What is the …….. tag? Name any two attributes used with this tag. -Technology

Last Answer : ……… tag is used for the ordered list, i.e. a list of items to be displayed in a particular order. An ordered list is also a list of items. An ordered list starts with the tag. Each list item starts with the tag.e.g. A B Two attributes of tag are: start and type.

Description : What is a tag? Name any two attributes used with this tag. -Technology

Last Answer : tag specifies a default font size, color and face for the font, the browser will use to render normal document text, i.e. the text, for which no other font setting has been provided. It occurs only for one time in the document. The attributes of this tag are size and face.

Description : Name the attributes of tag which are used for internal linking in a Web page. -Technology

Last Answer : The attributes of tag which are used for internal linking in a Web page as follows:1. href used to specify the URL of the segment the link goes to.2. name gives the name to the segment.

Description : Name the attributes of tag which are used for specifying its dimensions in a Web page. -Technology

Last Answer : width and height attributes of the tag are used for specifying its dimensions in a Web page, width and height are specified in terms of pixels or percentage of the browser window.

Description : Which attributes can you use with < table > tag but not with tag? -Technology

Last Answer : summary, rules, frame,*, border, cellpadding, cellspacing, height, width and bordercolor are the attributes that you can use with tag but not with tag.

Description : The height and width attributes of < table > tag are specified in terms of………….. or percentage. -Technology

Last Answer : The height and width attributes of < table > tag are specified in terms of pixelor percentage.

Description : The align and valign are the attributes used with tag to set the alignment of data in a cell. -Technology

Last Answer : True The align and valign attributes are used to set alignment of the data.

Description : One of the attributes of XML tag is Type. -Technology

Last Answer : True type is a attribute of XML tag.

Description : Explain the various values associated with “scrolling” attribute of FRAME tag. -Technology

Last Answer : The scrolling attribute of FRAME tag can take 3 values:Yes will insert both the scrolls irrespective of the size of the sub-window.Auto will insert the scrolls only when the contents of the sub-window are not visible.No will not insert any scrolls even when all the contents are not visible.

Description : A webpage displays a picture. What tag was used to display that picture? a. picture b. image c. img d. src

Last Answer : c. img

Description : ............. tag is used to embed image in a webpage. A) B) C) D) None of the above

Last Answer : A)

Description : ............... is a standalone tag. A) B) C) D)

Last Answer : A)

Description : Write the full form of the following tags: 1. 2. -Technology

Last Answer : 1. -List item2. -Image

Description : The correct HTML code for inserting an image is (a) -Technology

Last Answer : (c)

Description : The general syntax for inline image is . -Technology

Last Answer : True At the place of the file name, the path of the image is specified. If the image is in the same folder as HTML file, it is not needed to specify the full path of an image.

Description : Write one basic difference between bgcolor and background attributes. -Technology

Last Answer : The bgcolor attribute is used for coloring the background of the document while background attribute specifies a background image for a document.

Description : What is the purpose of using HTML tags and attributes for Web designing? -Technology

Last Answer : HTML (HyperText Markup Language) is used to create Web pages. It designs the basic layout and formatting of Web pages by using tags and attributes.The tag’s name tells the tag’s purpose and the attributes that follow the tag name give the additional information of the Web browser.

Description : Why width and height attributes are used? -Technology

Last Answer : The width and height attributes are used, such that downloading of an image will be faster after knowing the dimensions of the images in the browser.

Description : Name two table attributes, which are used to set spacing in and between table cells. -Technology

Last Answer : The cell spacing and cellpadding are the attributes, which are used to set spacing in and between the table cells.

Description : Why rowspan and colspan attributes are used? -Technology

Last Answer : Sometimes, a table cell is bigger than the other. Its span is spread to more rows or columns. Such cells can be created with the help of rowspan and colspan attributes.

Description : Name the attributes that are used to do the following in HTML: 1. merge two or more rows. -Technology

Last Answer : 1. rowspan2. bgcolor3. valign4. colspan

Description : Name the attributes used for following: 1. setting the cell width. -Technology

Last Answer : 1. width2. background3. bgcolor4. rowspan and colspan

Description : Write names of two attributes each for the following tags: 1. 2. -Technology

Last Answer : TagAttributesalign, widthbgcolor, textsrc, altborder, ruleshref, name

Description : The………………. attributes is used to combine the cells vertically. -Technology

Last Answer : The rowspanattributes is used to combine the cells vertically.

Description : The values of the attributes are enclosed in double question marks. -Technology

Last Answer : False The values of the attributes are enclosed in double quotation marks.

Description : Pseudo attributes are the settings that appear in prologs. -Technology

Last Answer : True Pseudo attributes describe the overall document.

Description : Border, cellspacing, cellpadding, align are the attributes of -Technology

Last Answer : Border, cellspacing, cellpadding, align are the attributes of