Online Interview Questions

Prepare interviews on Anything, AnyWhere

PHPSCOTS,Blogger, Developer Views: 8178
Html interview questions

Top 30 Html interview questions and answers

1. What is HTML and what is it used for?

HTML is a widely used language that gives our webpage a structure. HTML stands for HYPERTEXT MARKUP LANGUAGE. HTML was created by Berners lee in 1991. A markup language is a set of markups tags. Every webpage is created in HTML. HTML documents are described in HTML tags.

2. What does HTML stand for?

HTML means Hypertext Markup Language.
This language is basically used for creating web applications and also for web pages as well. It is a standard markup language with cascading style sheets and JavaScript which form a triad for WWW i.e. worldwide Web.HTML came into existence in 1980 when a great computer professor Sir Tim Berners Lee (a contractor and author of HTML) proposed an idea in CERN, to basically sharing and using documents. So in this way, a great language came into existence.

3. In which year HTML was first proposed?

Basically, in 1980, A great physicist Sir Tim Berners -Lee who is a contractor at CERN proposed the way through which documents can be shared easily. So, he prototyped ENQUIRE (a system for CERN), which would help researchers to use and share documents.HTML Tags was basically the first publicly description of HTML which was first mentioned by Tim Berners Lee in late 1991. He is usually the professor of computer programming. He is the author of HTML which is treated to be as the foremost computer languages of all the times. His idea of writing this language brought a tycoon in the computer technology world and also nowadays it is also much popular and most trending.

4. Who is the author of HTML?

Sir Tim Berners-Lee, a great physicist who is a great personality is the author of HTML. He is also the director of the World Wide Web Consortium i.e. W3C. He is also the founder of WWWF i.e.World wide Web Foundation. Open Data Institute is founded by him and also he is director of this institute.H e is a director of the Web Science Research Initiative i.e. WSRI and a member of the advisory board of the MIT Center for Collective Intelligence. Sir Tim Berners is a great personality, as he is the professor of the computer department and also the founder of many institutes and Research initiatives. An idea struck into his mind, how can a computer be made helpful for using and sharing documents. So, he designed the most trending and tremendous language, through which it is very easy to make web pages and all. Also, it is most trending and still is in use rather like other outdated languages.

5. What is the meaning of markup in HTML?

The sequence of characters or other symbols which we usually use to insert at certain places in a word or text file in order to indicate how the file should look when it is displayed or printed or Basically to describe documents logical structure. The markup indicators are often known as tags. Elements and tags are two different words which we need to understand as there is a lot of confusion among public related to this fact. It must be noted that HTML documents contain tags, but do not contain the elements. It is a wide misconception that usually occurs in mind that both exist in HTML documents.elements are usually only generated after parsing step from these tags
20+ HTML5 Interview Questions for freshers

6. What is a physical tag and logical tag in HTML?

A Physical tag has physical text which is used to tell the browser how to display the text enclosed in the physical tag.

Example for the physical tags are: <big>, <b>, <i>

Logical tags are used to tell the meaning of the enclosed text in it. The example of the logical tag is <Important>….</Important> tag. When we enclose text in Important tag then it tell the browser that enclosed text is more important than other text.

7. What is a nest in HTML?

If you go and have a look at HTML markup for any webpage today, you will let to know that HTML elements are contained within other HTML elements. These elements which are inside of other are known as nested elements and they had become the essential part of building any web page nowadays. The most expertise way to know more about nesting is just to think about HTML tags in the form of boxes that hold your content which can be in form of text, images,etc.HTML tags are basically the boxes around the content.

8. What is the XHTML?

XHTML means Extensible Hypertext Markup Language, which is basically a part of Family of XML markup language. It usually extends the most popularly used HTML i.e. Hypertext Markup Language, the pages in which the web pages are formulated.

9. What isCell Spacing and Cell Padding?

Cell Spacing is referred to space/gap between the two cells of the same table.
Cell Padding is referred to the gap/space between the content of the cell and cell wall or Cell border.


<table border cellspacing=3>
<table border cellpadding=3>
<table border cellspacing=3 cellpadding=3>

10. What is the HTML tags?

People always confuse in understanding terms elements and tags. It must be noted that HTML documents contain tags, but do not contain the elements.It is a wide misconception that usually occurs in mind that both exist in HTML documents.elements are usually only generated after parsing step from these tags.

11. What is an element in HTML?

An HTML element is basically an individual component usually of HTML  web page or document.Once if this has been also parsed into the document object model.HTML nodes is the main part which composes HTML for example such as text nodes.HTML attributes can be specified from each node. Content, including other nodes and text, together build up a node. Semantics or meaning are mostly represented by many HTML nodes. Let us take an example of title node represents the title of the document.

12. How many types of lists are available in HTML?

In HTML, we have two types of lists unordered lists and ordered lists. Unordered list starts with <ul> tag and ends with </ul> tag. Ordered tag starts with <ol> and ends with </ol>. Each list item is written as <li></li>

13. How to create mailto link in HTML

Basically, when we usually start with a hyperlink that is Mailto rather than using HTTP or others, the browser should be able to compose an email in the visitor’s default email program on their computer. There are two ways to insert a mailto link into a HubSpot page or email, just by inserting a hyperlink into the rich editor or inputting into the source code. Option one is basically nothing just to insert a mailto link as a hyperlink, also highlight the text or click on the image as you apply on the mailto link to for your contacts or visitors to click on and finally click Add the link to finish. Option two is to Insert a mailto link into the source code and Click Save to finish then Publish or Update your page.

<a href="" target="_top">Send Mail</a>

14. What does DOCTYPE mean?

DOCTYPE or Document Type Declaration is a type of instruction which usually works in association with particular SGML or XML documents basically. Let us take an example to understand it more thoroughly, for example, A Web page with a document type definition i.e. DTD is the best to understand. In a well serialized and a proper form of the document, It manifests and also the contribution of it is a lot as a short string of markup that usually conforms to a particular syntax.

15. List the extensions supported by HTML ?

16. What are different typesof heading are supported by HTML?

17. What is “Semantic HTML?”

18. Who is Known as the father of World Wide Web (WWW)

19. What is the difference between a tag and an element in HTML?

20. What is grouping in HTML?

21. What is a Fieldset?

22. What is the difference between DIV and SPAN in HTML?

23. What is the use of SPAN tag in HTML?

24. What is the use of div tag in HTML?

25. What is a block element?

26. What is an empty tag?

27. What is an inline text?

28. What is the use of ID Attribute in HTML?

29. How can you make a bulleted list in HTML?

30. What is the head tag used for?

31. What is the HTML document?

32. What is the basic structure of an HTML document?

Leave a Reply

Your email address will not be published. Required fields are marked *