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.
Related Posts:
  • Table basics in HTML It’s reasonably straightforward to create a simple table when hand-coding markup. Thebare essentials of a single table is an opening <table> tag, followed by at least one tablerow (a <tr>), followed by at least o… Read More
  • Divs and spans Divs and spans are two tags that, when used well, can help give your page a logical structureand some extra hooks to apply any CSS or DOM scripting that you might need later. Whenused badly, they can litter your document unn… Read More
  • id and class attributes The id attribute is used to identify elements and mark up specific functional areas of a website, and the class attribute is used to classify one or more elements. These important attributes help you target elements when it … Read More
  • HTML Extension HTM or HTML Extension? When you save an HTML file, you can use either the .htm or the .html extension. We use .htm in our examples. It is a habit from the past, when the software only allowed three letters in file extension… Read More
  • HTML Intro What is HTML?HTML is a language for describing web pages.    HTML stands for Hyper Text Markup Language    HTML is not a programming language, it is a markup language    A markup … Read More
  • HTML Headings Headings are defined with the <h1> to <h6> tags. <h1> defines the largest heading. <h6> defines the smallest heading. <h1>This is a heading</h1> <h2>This i… Read More
  • Character Entities  Character Entities The following table lists the defined standard and proposed character entities for HTML and XHTML, as well as several that are nonstandard but generally supported. Entity names, if defined… Read More
  • XHTML vs. HTML The question of whether to use XHTML or HTML will often not even come up in an averageweb project; most web designers these days will naturally gravitate toward XHTML, asit is perceived as being new, advanced, and the “X” ma… Read More
  • Multicolumn Layout Multicolumn text formatting is one of the most common features of desktop publishing. In addition to creating attractive pages in a variety of formats, multiple columns let you present your text using shorter, easier-to-… Read More
  • Anatomy of an XHTML document Finally, let’s look at how a strict XHTML 1.0 document is laid out:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtm… Read More
  • web development An important part of developing a successful web development strategy is deciding on how you're going to make money. Ordinary people are making extraordinary money working from home on th… Read More
  • HTML Examples HTML headings are defined with the <h1> to <h6> tags.<h1>This is a heading</h1><h2>This is a heading</h2><h3>This is a heading</h3>HTML ParagraphsHTML paragraphs are defined wi… Read More
  • HTML Paragraph HTML ParagraphParagraphs are defined with the <p> tag.<p>This is a paragraph</p><p>This is another paragraph</p>HTML '<p>' tag example<html><head><title>Example on the us… Read More
  • Layers Spacers and multiple columns are natural extensions to conventional HTML, existing within a document's normal flow. With version 4, Netscape took HTML into an entirely new dimension with layers. It transforms the single-… Read More
  • HTML Tags HTML stands for Hyper Text Markup LanguageHTML language, called tags, are words or acronyms surrounded by brackets. A typical HTML tag looks like this:<tag>  Example Of An HTML Tag </tag>There are four tags … Read More