HTML Interview Questions
This page contains HTML interview questions and answers.
To create an email link we have to set the href attribute of an anchor tag to the desired email address as shown below.
<a href="mailto:email@example.com">Contact us</a>
HTML supports 6 types of heading from h1 to h6.
We create telephone links in HTML as follows.
<a href="tel:+910000000000">Contact Us: +91 00 000 00000</a>
For that we have to create a meta tag in the head of the page and set the following attributes.
<meta http-equiv="refresh" content="0; url=https://www.dyclassroom.com" />
iframes are the HTML elements that allows us to embed document within the current HTML page.
Both the GET and POST methods are used to send request to the server.
The GET method is mostly used to fetch data from the server.
The POST method is mostly used to send data to the server.
Following are the differences between GET and POST method form submission.
For this we can use the font tags.
In the following example we are changing the font size of a piece of text to 20 pixels using font element.
<p>The quick <font size="20">brown fox</font> jumps over the lazy dog.</p>
Block element always starts from a new line and takes up the entire width available.
Inline elements don't starts from a new line and takes up only necessary width.
Some of the block elements are listed below:
Some of the inline elements are listed below:
Have fun learning :-)
Copyright © 2014 - 2020 DYclassroom. All rights reserved.