0% found this document useful (0 votes)
60 views

15 Interview Questions About HTML

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

15 Interview Questions About HTML

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

15 interview questions about HTML

1. What is HTML and HTML5 ?


Ans. HTML stands for Hyper Text MarkUp Language . It is used for world wide . It is a standard
language that is used for creating webpage. On the otherhand, HTML5 is the fifth version of
the language HTML and it is the currently running version of HTML.

2. What are tags in HTML ?


Ans. Basically ,there are two parts in a web page . They are content and tags . In the web page
content is placed between the tags ,which are basically responsible for formatting the web
page. Tags are written between less than symbol (<) and greater than (>) symbol. For Example:
<h1>text</h1>.In the above example <h1> is the opening tag and </h1> is the closing tag.
3.Can you define HTML attributes ?
Ans. An additional attribute is given to each tag to alter the behavior of the tag.
Attributes are defined directly after the tag name, inside the angular brackets. They
appear in opening tags and can never appear in closing tags. For example, an input tag has
a type attribute, which allows you to specify whether the input field is a text field, checkbox,
or radio button among other options.

4.What is semantic HTML ?


Ans. Semantic HTML is one style of coding, where the tags convey the meaning of the text.
HTML uses semantics to reinforce the semantics or purpose of the content.For example, <b>
</b> and <i> </i> tags which are used to bold and italic statements in HTML are replaced with
<strong></strong> and <em></em> tags in semantic HTML. This is because they represent
formatting and provide no meaning or structure.

5.What is the use of comments in HTML ?


Ans. Comments are used in an HTML document to make important notes and help developer
to modify the code afterward. They are not displayed in the browser when the code is
executed. A comment is always written in between the ‘—‘ symbol at the beginning and end of
the angular brackets.
Syntex: <!—‘Comment’ !–>

6.What are lists in HTML ?


Ans. HTML lists are used to group a set of related items in lists. It is defined with an <li> tag.
Some commonly used HTML lists are ordered list (HTML tag: <ol>), unordered list (HTML tag:
<ul>), description list (HTML tag: <dl>), menu list (HTML tag: <menu>),
directory list (HTML tag: <dir>)
7. What are forms in HTML ?
Ans. Forms are used to collect the user information when they are filled, and details are
provided to save into the database.

8.What is a ‘Marquee’ tag in HTML ?


Ans. Marquee is used for scrolling text on a web page. It scrolls the image or text up, down,
left, or right automatically. To apply for a marquee, you have to use </marquee> tags.

9.Why is the Embed tag used in HTML ?


Ans. An Embed Tag is used for including a Video or Audio in an HTML Document. A source of
audio or video file to be displayed on the webpage is defined within an Embed tag as:
<EMBED> Source </EMBED>.

10.What is the use of iframe tag ?


Ans. The <iframe> tag is used to display a webpage within a web page. By using the <iframe>
tag, we can insert outside documents into the main HTML document easily. A common
example of the <iframe> tag is banner ads on websites from a third party platform.

11. What is meta tag?


Ans. The meta tag in HTML is used to define about metadata of the HTML page. Metadata is
also referred to as data about the data. Metadata will be placed in the head tag. Metadata is
used by the web browser, search engine, etc.

12. What do you mean by box model ?


Ans. Every Element on a Page is a Rectangular Box and may have Width, Height, Padding,
Borders, and Margins. Every section of the box model relates to a CSS property: width, height,
padding, border, and margin.

13. What is the key difference between HTML tags and elements?
Ans. HTML tags are an essential component and define the structure and formatting of
content. On the other hand, elements define a combination of a starting tag, some content
(if needed), and a closing tag.

14. Do all HTML tags require an end tag?


Ans. No, some HTML tags do not require a closing tag.For example,<img>,<br>,<hr> etc.

15. What does an anchor tag do in HTML?


Ans. Anchor tags are used to link two different sections, web pages, or website templates in
HTML.

You might also like