HTML 5 Interview Questions and Answers (188) - Page 7

Which attribute is used for opening a link in a NEW Browser Window?

NOTE: This is objective type question, Please click question title for correct answer.
Which attribute is used for opening a link in a SAME Browser Window?

NOTE: This is objective type question, Please click question title for correct answer.
Text/HTML is called which type of the page?

NOTE: This is objective type question, Please click question title for correct answer.
What is the correct HTML tag for adding a Background Color of Body element?

NOTE: This is objective type question, Please click question title for correct answer.
What is the use of Iframe in HTML?

NOTE: This is objective type question, Please click question title for correct answer.
Which statement is true about anchor tag?

NOTE: This is objective type question, Please click question title for correct answer.
What are the differences between div and span tag?

1). DIV considers as a container or area which generally is used for layout element or group of elements.
Whereas SPAN tags doesn't have own container or area,it is used just for formatting elements within SPAN block.
2). Div is a Container where we can place our data image, text or anything, and span is used for formatting.
3). Div tag is used as a paragraph break as it creates a logical division whereas Span tag does not.
What is the difference between width = "100" and width = "100%"?

1). Width = "100" takes only 100px whereas width = "100%" takes entire available space.
2). Width = "100" Browser consider this as 100px and the object uses only 100px space.
3). Width = "100%" Browser consider this as 100% and the object uses available space completely.
What are the new attributes available in HTML5 for <form> tag?

The new attributes available in HTML5 for <form> are:

a). autocomplete
b). novalidate
c). autofocus
d). <input> formtarget Attribute.
What do we mean by Meta Tags and why are they used in HTML?

1).Metadata is used for browsers and search engines keywords match by users at the time of search.
2).Metadata is information about data.The tag provides metadata about the HTML document.
3).Metadata will not be displayed on the page and are typically used to specify page description,keywords,author of the document,last modified,and other metadata.
How to create table format in HTML ?

To create a table format in html follow the below the code.In this we have mentioned <td>,<tr>,<th> and a table tag(<table>).These are the following things to create a table format in html.
For example:
<
table border="1" style="background-color:aqua;"   >

<tr>
<th>Student Name</th>
<th>Roll no</th>
<th>Percentage of the year</th>
</tr>
<tr>
<td>Ajay</td>
<td>0501</td>
<td>78%</td>
</tr>
<tr>
<td>Vivek</td>
<td>1242</td>
<td>82%</td>
</tr>
<tr>
<td>Anand</td>
<td>0524</td>
<td>65%</td>
</tr>
<tr>
<td>Anusha</td>
<td>0431</td>
<td>69%</td>
</tr>
<tr>
<td>Preethi</td>
<td>0432</td>
<td>73%</td>


</tr>


</table>

What is Class and What is ID?

A Class is style that can be applied to one or more HTML elements.Classes are defined in CSS using a period followed by the Class name.By Class selector are defined with the ".(dot)".
The following snippet shows a class defined,and then it being applied to an HTML div element.

Ex:
 .class1

{font-family:'Times New Roman';
background-color:red;
font-size:20px;
}

<div class="class1" ><p>dotnetfunda</p></div>


An ID selector is a name assigned to a specific style.It can be associated with one HTML element with the assign ID.By ID selector are defined with the "#" character followed by the selector name.

Ex:
#id1 {

background-color: blue;
}


<div id="id1">it funda</div>

Which tag is used to place Navigation's link on the page in HTML5?

NOTE: This is objective type question, Please click question title for correct answer.
To include a local style within an HTML tag,we use the attribute?

NOTE: This is objective type question, Please click question title for correct answer.
To include a external style within an HTML tag,we use the attribute?

NOTE: This is objective type question, Please click question title for correct answer.
What is the correct HTML syntax for referring to an external style sheet?

NOTE: This is objective type question, Please click question title for correct answer.
Which Modern Browser does not support the HTML5 tags?

NOTE: This is objective type question, Please click question title for correct answer.
Which HTML5 property allows to set some element that needs to be editable inside the Browser?

NOTE: This is objective type question, Please click question title for correct answer.
Graphics Images can be drawn on a Web Page by using which Element of HTML5?

NOTE: This is objective type question, Please click question title for correct answer.
Which tag is used to set a Horizontal Row or Line in CSS?

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories