HTML Table tag is used to display the data in tabular form. <tr> is used to create rows and <td> to create cells inside rows. 

What is the HTML tag that is used to display the data in tabular form?

Explain the usage of ARIA attributes in HTML.

ARIA (Accessible Rich Internet Applications) allows developers to add attributes which can make web content accessible to disabled users.

What do you understand by inline and block elements?

Inline elements do not start on new line. Eg. <a>, <span>, <strong>, <input> Block elements start on a new line.Eg. <div>, <ul>, <h1> to <h6>

What is the difference between id and class attributes?

The id attribute is used to uniquely identify a specific element on a page & the class attribute is used to apply styles to multiple elements.

What does <!DOCTYPE HTML> do?

DOCTYPE Specifies the HTML or XHTML version used in the document & identifies parsing method and algorithm for the web browser.

Are you preparing for a frontend interview? Make sure you're ready with our comprehensive list of HTML interview questions.

Visit us at

Like & Subscribe!