HTML Interview Questions
HTML Interview Questions
difference between
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.
HTML Interview Questions and Answers
Minify scripts - This reduces the overall file size of js and CSS files
Parallel downloads - Hosting assets in multiple subdomains can help to
bypass the download limit of 6 assets per domain of all modern browsers.
This can be configured but most general users never modify these settings.
Lazy Loading - Instead of loading all the assets at once, the non-critical
assets can be loaded on a need basis.
HTML5 also allows users to draw various shapes like rectangles, circles,
triangles, etc.
Included new Semantic tags and form control tags.
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.