Interview Q & A

These all are mostly asked interview questions in all companies for the Frontend Developer position. This all questions I personally faced from my Fresher level to up to my 4years experience level interviews, so I hope if you will go through all the topic-wise interview Q & A then definitely can clear the first mock-up round.

Here we are going to cover the topics of interview questions –

HTML Interview


HTML – which stands for Hyper Text Markup Language. The Markup Language is used to design the websites. It can help us to make the Layout of our website where we want to present our content.

The DOCTYPE in HTML is used to –

  • The Doctype will tell the current webpage page which version of HTML includes.
  • DOCTYPE defines the mode selection of the browser, that it will run in W3C standard mode not run in quirks (backward compatibility)
  • Syntax for standard Html5 – <!DOCTYPE html>

Semantic Tag which gives the meaning of the tag itself. In HTML5 the semantic tag is introduced. The semantic tags are –

  • <header>
  • <footer>
  • <nav>
  • <sidebar>
  • <main>
  • <aside>
  • <summary>
  • <figure>
  • <caption>
  • <details>
  • <article>

 The non-semantic tag which nothing tells about its contents like – <div>, <span>, <h1>, <p> etc. 

The tag which doesn’t have an end closing tag(</>), it closes within the tag with a ‘/’ symbol is called a self-closing tag. The self closing tags are – <br />, <hr />,<input />, <img />,<link />,<area />, <meta />, <col /> etc.

e.g – <img src=”1.jpg” alt=”logo” />

Accordion Content
Accordion Content
Accordion Content
Accordion Content