HTML interview Question/ Answers Set – 4

HTML interview Question/ Answers Set – 4

HTML provides two table attributes “rowspan” and “colspan” to make a cell span to multiple rows and columns respectively.
HTML provides a hyperlink - <a> tag to specify the links in a webpage. The ‘href’ attribute is used to specify the link and the ‘target’ attribute is used to specify, where do we want to open the linked document. The ‘target’ attribute can have the following values:
  1. _self: This is a default value. It opens the document in the same window or tab .
  2. _blank: It opens the document in a new window or tab.
  3. _parent: It opens the document in a parent frame.
  4. _top: It opens the document in a full-body window
The <figure> tag specifies the self-contained content, like diagrams, images, code snippets, etc. <figure> tag is used to semantically organize the contents of an image like image, image caption, etc., whereas the <img>tag is used to embed the picture in the HTML5 document
To specify we can use <meta> tag which is a void tag, i.e., it does not have a closing tag. Some of the attributes used with meta tags are name, content, http-equiv, etc. The below image tells how to specify the metadata.
Image Map lets a developer map/link different parts of images with the different web pages. It can be achieved by the map tag in HTML5, using which we can link images with clickable areas.
<img src="”image_url”" usemap="” #workspace”" />
<map name="”workspace”">
<area coords="”34," shape="”rect”" href="”xyz.html”" />
<area coords="”10," shape="”rect”" href="”xyz.html”" />
</map>

Post Your Comments & Reviews

Your email address will not be published. Required fields are marked *

*

*