+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

HTML Interview Questions and Answers

What is HTML?

HTML, or HyperText Markup Language, is a Universal language which allows an individual using special code to create web pages to be viewed on the Internet.

What is a tag?

In HTML, a tag tells the browser what to do. When you write an HTML page, you enter tags for many reasons -- to change the appearance of text, to show a graphic, or to make a link to another page.

What is the simplest HTML page?

HTML Code:
< HEAD >
< TITLE >This is my page title! < / TITLE>
< / HEAD >
< BODY >
This is my message to the world!
< / BODY >
< / HTML >

Browser Display:
This is my message to the world!

How can I include comments in HTML?

Technically, since HTML is an SGML application, HTML uses SGML comment syntax. However, the full syntax is complex, and browsers don't support it in its entirety anyway. Therefore, use the following simplified rule to create HTML comments that both have valid syntax and work in browsers:

An HTML comment begins with "", and does not contain "--" or ">" anywhere in the comment.
The following are examples of HTML comments:

  • < ! -- This is a comment. -- >
  • < ! -- This is another comment,
    and it continues onto a second line. -- >
  • < ! ---- >
  • Do not put comments inside tags (i.e., between "<" and ">") in HTML markup.

What is a Hypertext link?

A hypertext link is a special tag that links one page to another page or resource. If you click the link, the browser jumps to the link's destination.

Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.