HTML
HTML
Contents
Page 1
HTML Interview Questions
Introduction
Before starting with the interview questions on HTML Language, let’s first go through
HTML, what is HTML, the career opportunities it provides, etc.
HTML stands for HyperText Markup language. It is a standard text formatting
language used for developing web pages released in 1993. HTML is a language that is
interpreted by the browser and it tells the browser what to display and how to
display.
HTML is an important language to learn if anyone wants to work in the web
development domain [Web designers, Web Developers]. HTML alone is not sufficient
for a web developer because HTML only defines the structure of the data that will be
rendered on the browser in a webpage, to make it visually appealing and to make it
functional, we will need to use CSS and Javascript respectively.
The latest version of HTML is HTML5. There are two main components in HTML
language, Tags and Attributes. The below image shows some basic HTML tags and
attributes.
Page 5
HTML Interview Questions
Page 6
HTML Interview Questions
(non-
breaking Eg.
 
space) Eg. <p>10  PM</p>
10 PM
Page 7
HTML Interview Questions
Page 8
HTML Interview Questions
Page 9
HTML Interview Questions
14. Please explain how to indicate the character set being used
by a document in HTML?
The character set is defined in <meta> tag inside <head> element.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
...
...
</head>
...
</html>
31. What are some of the advantages of HTML5 over its previous
versions?
Some advantages of HTML5 are:-
It has Multimedia Support.
It has the capabilities to store offline data using SQL databases and application
cache.
Javascript can be run in the background.
HTML5 also allows users to draw various shapes like rectangles, circles, triangles,
etc.
Included new Semantic tags and form control tags.
Inline Block
Page 11
HTML Interview Questions
The <figure> tag specifies the self-contained content, like diagrams, images, code
snippets, etc. <figure> tag is used to semantically organize the contents of an image
like image, image caption, etc., whereas the <img> tag is used to embed the picture
in the HTML5 document.
Page 12
HTML Interview Questions
36. Is the
Page 13