HTML Interview Questions
1 .
Can you create a multi-colored text on a web page?
Yes, we can create a multi-colored text on a web page.  To create a multicolor text, you can use <font color =”color”> </font> for the specific texts that you want to color.
2 .
What is the use of a span tag? Explain with example.
The span tag is used for following things:
 
For adding color on text
To add background on text
Highlight any color text

Example:
<span style="color:#ff00da;">
  This is sample testing text
</span>
 
3 .
How are active links different from normal links?
The default color for normal and active links is blue. Some browsers recognize an active link when the mouse cursor is placed over that link. Whereas, others recognize active links when the link has the focus. Those that don’t have a mouse cursor over that link is considered a normal link.
4 .
What are the different tags to separate sections of text?
The <br> tag is one way to separate the lines of text. There are other tags like the <p> tag and <blockquote> tag that are also used to separate sections of text.
5 .
What is the advantage of grouping several checkboxes together?
The checkboxes don’t affect one another. But, grouping these checkboxes together help to organize them. Checkbox buttons can have their name and do not need to belong to a group. A single web page can have many different groups of checkboxes.
6 .
What is the relationship between the border and rule attributes?
Default cell borders, with a thickness of 1 pixel, are automatically added between cells if the border attribute is set to a nonzero value. Similarly, If the border attribute is not included, a default 1-pixel border appears when the rules attribute is added to the <table> tag.
7 .
List the media types and formats supported by HTML.
HTML supports a wide range of media formats for sound, music, videos, movies, and animations. Some of the extensions supported by each media format are:
 
Images : png, jpg, jpeg, gif, apng, svg, bmp, BMP ico, png ico
Audio : MIDI, RealAudio, WMA, AAC, WAV, Ogg, MP3, MP4
Video : MPEG, AVI, WMV, QuickTime, RealVideo, Flash, Ogg, WebM, MPEG-4 or MP4
8 .
What are logical and physical tags in HTML?
Logical tags : Logical tags are used to tell the meaning of the enclosed text. The example of the logical tag is <strong> </strong> tag. When we enclose the text in the strong tag, it tells the browser that enclosed text is more important than other texts.
 
Physical tags : Physical tags are used to tell the browser how to display the text enclosed in the physical tag. Some of the examples of physical tags are <b>, <big>, <i>.
9 .
What is the primary function of these lists?
The primary function of these lists is to make use of different kinds of tags that could be set to compose.
10 .
Why, in some cases, the character entities do not display correctly on all systems?
In some cases, the browser running does not support the character, and thus the character is displayed as boxes. This is the condition in which the character entities do not display correctly on all the systems.