0% found this document useful (0 votes)
67 views3 pages

HTML Interview Questions

Div and span are generic HTML elements that group related parts of a web page. Div is used for block-level organization and styling while span is used for inline organization and styling. Semantic elements like <form> and <article> clearly define content while non-semantic elements like <div> and <span> do not indicate the type of content. HTML5 supports audio and video while older HTML does not.

Uploaded by

zeynalovrahman3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views3 pages

HTML Interview Questions

Div and span are generic HTML elements that group related parts of a web page. Div is used for block-level organization and styling while span is used for inline organization and styling. Semantic elements like <form> and <article> clearly define content while non-semantic elements like <div> and <span> do not indicate the type of content. HTML5 supports audio and video while older HTML does not.

Uploaded by

zeynalovrahman3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

HTML INTERVIEW QUESTIONS

 What is <!Doctype html> in Html5?


The HTML document type declaration, also known as DOCTYPE , is the first line of
code required in every HTML or XHTML document. The DOCTYPE declaration is an
instruction to the web browser about what version of HTML the page is written in. This
ensures that the web page is parsed the same way by different web browsers.

 What is difference between div and span in Html?


Span and div are both generic HTML elements that group together related parts of a
web page. However, they serve different functions. A div element is used for block-level
organization and styling of page elements, whereas a span element is used for inline
organization and styling.

 What is semantic tags and non semantic tags in Html?


A semantic element clearly describes its meaning to both the browser and the
developer. Examples of non-semantic elements: <div> and <span> - Tells nothing
about its content. Examples of semantic elements: <form> , <table> , and <article> -
Clearly defines its content.

 What is difference between HTML and HTML 5?


Hypertext Markup Language (HTML) is the primary language for developing web
pages. HTML5 is a new version of HTML with new functionalities with markup
language with Internet technologies. HTML does not have support for video and
audio but, HTML5 supports both video and audio.

 What is Iframe tag in HTML5?


The <iframe> tag specifies an inline frame. An inline frame is used to embed another
document within the current HTML document. Tip: Use CSS to style the <iframe> (see
example below). Tip: It is a good practice to always include a title attribute for the
<iframe>.

 What are the formatting tags in HTML?


a. <b> - Bold text
b. <strong> - Important text
c. <i> - Italic text
d. <em> - Emphasized text
e. <mark> - Marked text
f. <small> - Smaller text
g. <del> - Deleted text
h. <ins> - Inserted text
i. <sub> - Subscript text
j. <sup> - Superscript text

 What is difference <b> and <Strong> in HTML?


Syntax: <b> Contents... </ b> The main difference between these two tag is that the
strong tag semantically emphasizes on the important word or section of words
while the bold tag is just offset text conventionally styled in bold. Below is the code
to show this difference.

 What is viewport attribute in HTML?


The browser's viewport is the area of the window in which web content can be seen.
This is often not the same size as the rendered page, in which case the browser
provides scrollbars for the user to scroll around and access all the content.

 What is attribute in HTML?

All HTML elements can have attributes

Attributes provide additional information about elements

Attributes are always specified in the start tag

Attributes usually come in name/value pairs like: name="value"

 What is block level element and inline element in HTML?


There are two display values: block and inline. A block-level element always starts on
a new line and takes up the full width available. An inline element does not start on a
new line and it only takes up as much width as necessary.

 What is difference between Html and HTML 5?


Hypertext Markup Language (HTML) is the primary language for developing web
pages. HTML5 is a new version of HTML with new functionalities with markup
language with Internet technologies. HTML does not have support for video and
audio but, HTML5 supports both video and audio.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy