HTML
HTML
KODNEST®
ABOVE DOMINO’S PIZZA, 2ND FLOOR OPP GANGOTRI RESTAURANT AND UCO BANK, 8TH CROSS RD,
MARUTI NAGAR, BTM 1ST STAGE, BENGALURU, KARNATAKA 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
1. What is HTML?
HTML is the abbreviation for Hypertext Markup Language. It is
the typical documents markup language for developing web
pages to display on the web browser.
The extensions used to save HTML pages are .html and .htm.
HTML Elements
The sections of the web page, such as a paragraph, an image, or a
link is an element, and an element has a certain way of execution.
For example, the link is used to be clicked, and the text boxes can
be used to input text.
HTML Tags
HTML elements communicate with the browser how to represent
the text and become HTML tags when enclosed within angular
brackets <>.
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
The HTML has a specific tag, i.e., the table tag to display data in
tabular form. Below is the list of the HTML tags used to display
data in tabular form in HTML:
Tag
Description
<table>
For defining a table.
<caption>
For mentioning a caption to the table.
<tr>
For defining a row in a table.
<td>
For defining a cell in a table.
<th>
For defining a header cell in a table.
<tbody>
For grouping the body’s content in a table.
<col>
For specifying the column properties for each column of the
table.
5. What are Attributes in HTML?
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.
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
For example:
You can define an attribute for the <input> tag, such as a text
field, checkbox, radio button, or many more ways.
6. What is an Anchor tag in HTML?
An anchor tag is used to link two sections, web pages, or website
templates in HTML.
Its format is:
<a href=”#” target=”link”></a>
Where ‘href’ is an attribute of the anchor tag used to identify the
sections in a document, the ‘link’ is defined in the target
attribute, which is to be linked.
7. What are Lists in HTML?
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:
• 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>)
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
Example:
<div id="HTML">
This is <span class="Web Dev">interview</span>
</div>
19. Is the <!DOCTYPE html> tag considered as a HTML tag?
No, the <!DOCTYPE html> declaration is not an HTML tag. There
are many type of HTML, such as, HTML 4.01 Strict, HTML 4.01
Transitional, HTML 4.01 Frameset, XHTML 1.0 Strict, XHTML 1.0
Transitional, XHTML 1.0 Frameset, XHTML 1.1 etc. So, <!DOCTYPE
html> is used to instruct the web browser about the HTML page.
<span style="color:#ffffff;">
In this page we use span.
</span>
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
Element
Description
name
<b> It is a physical tag used to bold the text between the tags.
<strong> It is a logical tag that tells the browser that text is important.
<i> It is a physical tag used to make italic text.
<u> This tag is used to underline the text that has been written between them.
<tt> Use this tag, a text may appear in a teletype. (Doesn’t support HTML5)
<sup> It displays the contents just slightly above the usual line.
<sub> It displays the contents just slightly below the usual line.
Using this tag will draw a strikethrough on a text line. (Don't support
<strike> HTML5)
<big> This tag is used with one conventional unit to increase font size.
<small> This tag is used to reduce font size by one unit from the base font size.
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068
HTML INTERVIEW QUESTIONS www.kodnest.com Phone No: 8095000123
30. What is the difference between bold and strong tag and
italics and emphasis tag?
• Bold tag vs strong tag
The text written under <b> tag makes the text bold
presentationally to draw attention. The main difference between
these two tags 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.
• Italics tag vs emphasis tag
The main difference between these two tags is that the <em> tag
semantically emphasizes on the important word or section of
words while <i> tag is just offset text conventionally styled in italic
to show alternative mood or voice.
Above Domino’s Pizza, 2nd floor opposite Gangotri Rest. 8th cross Rd, Maruti Nagar, BTM Layout 1,
Bengaluru, Karnataka – 560068