Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: . How to specify the link in HTML and explain the target attribute?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: What is the difference between “display: none” and “visibility: hidden”, when used as attributes to the HTML element.
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: In how many ways you can display HTML elements?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: In how many ways can we position an HTML element? Or what are the permissible values of the position attribute?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: . Is it possible to change an inline element into a block level element?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: How can we club two or more rows or columns into a single row or column in an HTML table?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: How is Cell Padding different from Cell Spacing?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: . Are the HTML tags and elements the same thing?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: What is the significance of <head> and <body> tag in HTML?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: What is the difference between <strong>, <b> tags and <em>, <i> tags?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: What is the purpose of the alt attribute in <img>?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: What is the purpose of the <meta> tag?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: What is the difference between <section> and <div>?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: . How do you embed a video in HTML?
Interview Questions :: HTML DHTMLPosted By : nashiinformaticssolutions
:Q: What are void elements in HTML?
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: . How to specify the link in HTML and explain the target attribute?
A :: 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 as it was clicked. 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.
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: What is the difference between “display: none” and “visibility: hidden”, when used as attributes to the HTML element.
A :: When we use the attribute “visibility: hidden” for an HTML element then that element will be hidden from the webpage but still takes up space. Whereas, if we use the “display: none” attribute for an HTML element then the element will be hidden, and also it won’t take up any space on the webpage.
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: In how many ways you can display HTML elements?
A :: 1. inline: Using this we can display any block-level element as an inline element. The height and width attribute values of the element will not affect. 2. block: using this, we can display any inline element as a block-level element. 3. inline-block: This property is similar to inline, except by using the display as inline-block, we can actually format the element using height and width values. 4. flex: It displays the container and element as a flexible structure. It follows flexbox property. 5. inline-flex: It displays the flex container as an inline element while its content follows the flexbox properties. 6. grid: It displays the HTML elements as a grid container. 7. none: Using this property we can hide the HTML element. Below are some of the display types which are rarely used: 1. table 2. inline-table 3. table-cell 4. table-column 5. table-row 6. inline-grid 7. list-item 8. inherit 9. initial 10. table-caption
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: In how many ways can we position an HTML element? Or what are the permissible values of the position attribute?
A :: There are mainly 7 values of position attribute that can be used to position an HTML element: 1. static: Default value. Here the element is positioned according to the normal flow of the document. 2. absolute: Here the element is positioned relative to its parent element. The final position is determined by the values of left, right, top, bottom. 3. fixed: This is similar to absolute except here the elements are positioned relative to the <html> element. 4. relative: Here the element is positioned according to the normal flow of the document and positioned relative to its original/ normal position. 5. initial: This resets the property to its default value. 6. inherit: Here the element inherits or takes the property of its parent.
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: . Is it possible to change an inline element into a block level element?
A :: Yes, it is possible using the “display” property with its value as “block”, to change the inline element into a block-level element.
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: How can we club two or more rows or columns into a single row or column in an HTML table?
A :: HTML provides two table attributes “rowspan” and “colspan” to make a cell span to multiple rows and columns respectively.
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: How is Cell Padding different from Cell Spacing?
A :: Cell Spacing is the space or gap between two consecutive cells. Whereas, Cell Padding is the space or gap between the text/ content of the cell and the edge/ border of the cell. Please refer to the above figure example to find the difference.5
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: . Are the HTML tags and elements the same thing?
A :: No. HTML elements are defined by a starting tag, may contain some content and a closing tag.For example, <h1>Heading 1</h1> is a HTML element but just <h1> is a starting tag and </h1> is a closing tag.
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: What is the significance of <head> and <body> tag in HTML?
A :: <head> tag provides the information about the document. It should always be enclosed in the <html> tag. This tag contains the metadata about the webpage and the tags which are enclosed by head tag like <link>, <meta>, <style>, <script>, etc. are not displayed on the web page. Also, there can be only 1 <head> tag in the entire Html document and will always be before the <body> tag. <body> tag defines the body of the HTML document. It should always be enclosed in the <html> tag. All the contents which needs to be displayed on the web page like images, text, audio, video, contents, using elements like <p>, <img>, <audio>, <heading>, <video>, <div>, etc. will always be enclosed by the <body> tag. Also, there can be only 1 body element in an HTML document and will always be after the <head> tag.
Interview Questions :: HTML DHTML Posted By : nashiinformaticssolutions
:Q: What is the difference between <strong>, <b> tags and <em>, <i> tags?
A :: The tags , , and , have the same effect on a standard webpage. Bold and italic are indicated by the and tags. These two tags don't say anything about the text; they just apply font styling and the bold tag , which simply adds extra ink to the text. On the other hand, the and tags indicate that the text's span is more important or of strong importance than the remainder of the text, respectively. The meaning of these tags is semantic.
(This Month)
(This Month)
ALLInterview.com ... First of its kind encrypted with a motto to post as many interview questions as possible along with answers that were asked in various company interviews and expected questions which may be asked in job interviews, to help the needy young generation who are going to face interviews. This site will enlighten the nature and scope of interview questions that will be asked in various company interviews, keeping in view the present interviews scenario.
Many eminent personalities from all walks of life have contributed a lot in posting interview questions and answers relating to all categories viz., Software, Sciences, Engineering, Management, Accounting, Government & Private Sector and what not every branch has been covered in this site.
The viewers can also add questions and answers that they have faced in any job interviews, to share their interview experience and knowledge with the upcoming young generation.