All HTML Interview Questions And Answers

What is HTML?
Hyper Text Markup Language,which allows an individual special code to
create web pages to be viewed on the Internet.It’s the default markup language used for displaying web pages.

What is a DOCTYPE?
<!DOCTYPE> is used to inform the browser as to which version of HTML the current web page is using.
The doctype declaration refers to a Document Type Definition (DTD) which specifies the rules for the markup language,


What are meta tags and why it is used?
The <meta> tag always goes inside the head element. They can be used by browsers, search engines or other web services.


What is SPAN?
The SPAN having notation as:<SPAN> </SPAN>is used for highlighting text
of any color desired for adding colored text for adding background image to text.
 SPAN does not cause a line break.

 What is the format for commenting in a HTML document?
 <!-- comment here -->
 It must be noted that comments are not displayed in the browser and is visible only if we view the code.

 How can you make images clickable?
 image tag by the “a tag”.
 <a href=”http://test.com”>
 <img src=”http://test.com/some-image.jpg” alt=”some text” />
  </a>

what is Hyperlinks?
<a href="http://www.kumquat.com/archive.html">
Kumquat Archive</a>
The anchor (<a>) tag is the HTML/XHTML feature
for defining both the source and the destination of a hyperlink

What is <hr> Tag?
The <hr> tag tells the browser to insert a horizontal rule across the display window.