HTML interview Questions
(1) What is HTML?
Answer: HTML stands Hypertext Markup Language which is of www (World Wide Web) primary language. Html used to create a web page and it rendered content on the browser.
(2) What are tags?
Answer: Html tags composed are three things. Which is used to display content on the web page. following are three things -
- Opening tag,
- Content,
- Ending tag
(3) Do all HTML tags have an end tag?
Answer: No, Some of the HTML tags haven’t end tag. for example <hr>, <br>, <img>
(4) What is the formating tag in html?
Answer: following are the formating tags in HTML-
- Text underline: It is represented by <u>…</u> tag
- text italic: It is represented by <em>…</em> tag
- text bold: It is represented by <strong>…<strong> tag
(5) How many types of heading does an HTML contain?
Answer: There are 6 types of heading an Html which that <h1>…</h1> to <h6>…</h6>.
Following are 6 types of heading —
1. <h1>Heading one</h1>
2. <h2>Heading two</h2>
3. <h3>Heading three</h3>
4. <h4>Heading four</h4>
5. <h5>Heading five</h5>
6. <h6> Heading six</h6>
(6) How to create a hyperlink in Html?
Answer: If you want to create a hyperlink in Html, you have to apply a simple trick, just use the anchor tag, which provides Html. It creates a link to go from one page to another page. For example — <a href =”…”>…</a>
(7) Which Html tag is used to display data in tabular form?
Answer: Following Html tag is used to display data in tabular form —
- <table>…</table>
- <thead>…</thead>
- <tbody>…</tbody>
- <tr>…</tr>
- <td>…</td>
- <tfooter>…</tfooter>
(8) What are some common lists that are used when design a page?
Answer:
- <ul>..</ul>
- <ol>..<ol>
- dl, dt, dd
(9) How to insert a copyright symble on a browser page?
Answer: write just © or &169;
(10) What is an image map?
Answer: The image map is a wrapper of many single images with links. You can go to another page by clicking on a single image. It is represented by <map>…</map>
<img src="your image" alt=".." usemap="#imagemap">
<map name="imagemap">
<area shape="rect" coords="34,44,270,350" alt="image1" href="image1.htm"> <area shape="rect" coords="290,172,333,250" alt="image2" href="image2.htm"> <area shape="circle" coords="337,300,44" alt="image3" href="image3.htm">
</map>
(11) How to create a nested webpage in Html?
Answer: <iframe>…</iframe> tag used to create a nested webpage in html.
(12) Does a hyperlink only apply to text?
Answer: No, You can create a hyperlink apply to both text and image.
(13) Is it possible to change the color of the bullet?
Answer: Obviously, It is possible. To change the color of the bullet at first you have to change the color of the text.
(14) Explain the layout of Html?
Answer: Html layout is given below —
- <header>…</header>
- <nav>…</nav>
- <section>…</section>
- <article>…</article>
- <aside>…</aside>
- <footer>…<footer>
(15) What is marquee?
Answer: Marquee tag is used to create scrollable text, images within a page from either left to right, top to bottom. It represented by <marquee>text or image</marquee> .
(16) What are empty elements?
Answer: Html elements with no content are called empty tags. Example: <br> and <hr>
(17) What is the use of iframe?
Answer: Htm provides an iframe tag. It is used to create a nested web page on a web page. it is represented by <iframe></iframe>