+
+
+ Home
+ > HTML Questions
+ > Why do we need to put DOCTYPE tag at the begining of every HTML file?
+
+
+
+
+
+
+
+
+
+
+
Why do we need to put DOCTYPE tag at the begining of every HTML file?
+
+
+
+
+
+ Answer:
+
+ Every HTML page needs a DOCTYPE tag because it tells the browser which version of HTML the HTML file is written in. This helps the browser to render the file correctly.
+
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/ArcWhiz-q5.html b/answers/ArcWhiz-q5.html
new file mode 100644
index 0000000..1fcc875
--- /dev/null
+++ b/answers/ArcWhiz-q5.html
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > What is the difference between inline, block and inline-block elements?
+
+
+
+
+
+
+
+
+
+
+
What is the difference between inline, block and inline-block elements?
+
+
+
+
+
+ Answer:
+
+
+
+
Inline
+
These elements do not break the flow of the document. That means that they don't begin on a new line and they only take as much space as the elements inside them take. They don't have height and width properties.
+
+
+
Block
+
These elements do not sit inline but break past them (i.e. start on a new line). By default (without setting a width) they take up as much horizontal space as they can.
+
+
+
Inline-Block
+
These elements are very similar to inline elements in that it will set inline with the natural flow of text (on the "baseline"). The difference is that you are able to set a width and height which will be respected.
+
+
+
+
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/aditya-q21.html b/answers/aditya-q21.html
new file mode 100644
index 0000000..4d3676c
--- /dev/null
+++ b/answers/aditya-q21.html
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > Why do we need to put DOCTYPE tag at the begining of every HTML file?
+
+
+
+
+
+
+
+
+
+
+
28) Does a tag is a HTML tag?
+
+
+
+
+
+ Answer:
+
+ No, the declaration is not an HTML tag. There are many type of HTML e.g. 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, is used to instruct the web browser about the HTML page.
+
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/arunsridher-q7.html b/answers/arunsridher-q7.html
new file mode 100644
index 0000000..ad83d64
--- /dev/null
+++ b/answers/arunsridher-q7.html
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > Can you write a small code snippet to get directions from Google map?
+
+
+
+
+
+
+
+
+
+
+ Can you write a small code snippet to get directions from Google map?
+
+
+
+
+
+ Answer:
+
+ <form action=”http://maps.google.com/maps” method=”get” target=”_blank”>
+
+ <label for=”sadd”>Enter your location</label>
+
+ <input type=”text” name=”sadd” />
+
+ <input type=”hidden” name=”dadd” value=”350 5th Ave New York, NY 10018″/>
+
+ <input type=”submit” value=”Get directions” />
+
+ </form>
+
+
+
+ Home
+ > HTML Questions
+ >What is the difference between span and div?
+
+
+
+
+
+
+
+
+
+
+
+
What is the difference between span and div?
+
+
+
+
+
+
+ Answer:
+
+ The difference is that span gives the output with display: inline and div gives the output with display: block.
+
+span is used when we need our elements to be shown in a line, one after the other.
+
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/gopal-q21.html b/answers/gopal-q21.html
new file mode 100644
index 0000000..d0f2f00
--- /dev/null
+++ b/answers/gopal-q21.html
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > What is the use of <pre> tag in html?
+
+
+
+
+
+
+
+
+
+
+
What is the use of <pre> tag in html?
+
+
+
+
+
+ Answer:
+ The <pre> tag defines preformatted text.
+ Text in a <pre> element is displayed in a fixed-width font, and the text preserves both spaces and line breaks. The text will be displayed exactly as written in the HTML source code.
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/jabirmt-q16.html b/answers/jabirmt-q16.html
new file mode 100644
index 0000000..3903a05
--- /dev/null
+++ b/answers/jabirmt-q16.html
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > Which type of video formats are supported by HTML5?
+
+
+
+
+
+
+
+
+
+
Which type of video formats are supported by HTML5?
+
+
+
+
+
+ Answer:
+
HTML 5 supports three types of video formats:
+
+
+
mp4
+
WebM
+
Ogg
+
+
+
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/manishkaa-q18.html b/answers/manishkaa-q18.html
new file mode 100644
index 0000000..75492e6
--- /dev/null
+++ b/answers/manishkaa-q18.html
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > What is a physical tag and logical tag in HTML?
+
+
+
+
+
+
+
+
+
+
+
What is a physical tag and logical tag in HTML?
+
+
+
+
+
+ Answer:
+
+A Physical tag has physical text which is used to tell the browser how to display the text enclosed in the physical tag.
+
+Example for the physical tags are: , ,
+
+Logical tags are used to tell the meaning of the enclosed text in it. The example of the logical tag is …. tag.
+When we enclose text in Important tag then it tell the browser that enclosed text is more important than other text.
+
+ An URL is encoded to convert non-ASCII characters into a format that can be used over the Internet because
+ a URL is sent over the Internet by using the ASCII character-set only.
+ If a URL contains characters outside the ASCII set, the URL has to be converted.
+ The non-ASCII characters are replaced with a “%” followed by hexadecimal digits.
+
+ Microdata is a standardized way to provide additional semantics in your web pages.
+
+Microdata lets you define your own customized elements and start embedding custom properties in your web pages. At a high level, microdata consists of a group of name-value pairs.
+
+The groups are called items, and each name-value pair is a property. Items and properties are represented by regular elements.
+ The word Semantic means relating to meaning or logi in language. Semantic HTML is a way of writing HTML in a meaningful manner. For exmaple, in Semantic HTML,
+ instead of using <b> </b> for bold, <strong></strong> is preffered.
+
+
Similarly, Elements such as <header>, <nav>, <section>, <article>, <aside>, and <footer> act more or less like <div> elements. And used in while implementing semantic HTML practices
+
An example of semantic element layout by w3schools
+
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/puja-q20.html b/answers/puja-q20.html
new file mode 100644
index 0000000..283bdec
--- /dev/null
+++ b/answers/puja-q20.html
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > What is the difference between GET and POST methods?
+
+
+
+
+
+
+
+
+
+
+
What is the difference between GET and POST methods?
+
+
+
+
+
+ Answer:
+ GET and POST method is used to transfer data from client to server in HTTP protocol. GET carries request parameter appended in URL string while POST carries request parameter in message body which makes it more secure way of transferring data from client to server in http protocol.
+ Example of GET and POST methods
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/ravishankarsingh13-q17.html b/answers/ravishankarsingh13-q17.html
new file mode 100644
index 0000000..5afd543
--- /dev/null
+++ b/answers/ravishankarsingh13-q17.html
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > Difference between Padding and Margin in html and Css
+
+
+
+
+
+
+
+
+
+
+
Difference between Padding and Margin in html and Css?
+
+
+
+
+
+ Answer:
+ Margin is the outer space of an element, while padding is the inner space of an element. In other words, margin is the space outside of an element's border, while padding is the space inside of its border
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/ritvikbhatia-q12.html b/answers/ritvikbhatia-q12.html
new file mode 100644
index 0000000..2cccada
--- /dev/null
+++ b/answers/ritvikbhatia-q12.html
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > How to insert a copyright symbol on a browser page?
+
+
+
+
+
+
+
+
+
+
+
How to insert a copyright symbol on a browser page?
+
+
+
+
+
+ Answer:
+ You can insert a copyright symbol by using & copy; or & #169; in an HTML file.
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/rohit-kumar-q15.html b/answers/rohit-kumar-q15.html
new file mode 100644
index 0000000..2da1c7d
--- /dev/null
+++ b/answers/rohit-kumar-q15.html
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > What is the difference between <div> and <frame>?
+
+
+
+
+
+
+
+
+
+
+ What is the difference between <div> and <frame>?
+
+
+
+
+
+ Answer:
+ <div> tag is the division or section of the HTML document. You can define the specific format to the elements defined in the div tag in CSS so when you would like to apply the same style to that particular element then you just need to call that div tag.
+
+<frame> tag is specifically used with the HTML5. It has the particular frame/set to the frameset.
+
+<div> tag is just for the grouping in the styling while <frame> used to sub divide the page.
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/sunilBajpai-q13.html b/answers/sunilBajpai-q13.html
new file mode 100644
index 0000000..ffc5744
--- /dev/null
+++ b/answers/sunilBajpai-q13.html
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > What is the use of an iframe tag ?
+
+
+
+
+
+
+
+
+
+
+
What is the use of an iframe tag ?
+
+
+
+
+ Answer:
+ An iframe is used to display a web page within a web page.
+ Ex. for showing Google-maps api in webpage.
+
+ Syntax:
+
+
+ Example:
+
+
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/vipulchauhan07-q10.html b/answers/vipulchauhan07-q10.html
new file mode 100644
index 0000000..3fbc751
--- /dev/null
+++ b/answers/vipulchauhan07-q10.html
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Answer:
+ The <map> tag defines an image-map. An image-map is an image with clickable areas.
+ Image map lets the user link to many different web pages using a single image.
+ We can define shapes in pictures that we want to make part of an image mapping.
+ It is the process of establishing unique ways inside a photo and links it to different destinations.
+ For more details follow the link given below
+ Example for map tag
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/vipulchauhan07-q11.html b/answers/vipulchauhan07-q11.html
new file mode 100644
index 0000000..d5208bf
--- /dev/null
+++ b/answers/vipulchauhan07-q11.html
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > What are the limits of the text field size?
+
+
+
+
+
+
+
+
+
+
+
What are the limits of the text field size?
+
+
+
+
+
+ Answer:
+ The default size for a text field is around 13 characters. However, if you include the size attribute,
+ you can set the size value to be as low as 1. The maximum size value will be determined by the browser width .
+ If the size attribute is set to 0, the size will be set to the default size of 13 characters.
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/vipulchauhan07-q8.html b/answers/vipulchauhan07-q8.html
new file mode 100644
index 0000000..561bd37
--- /dev/null
+++ b/answers/vipulchauhan07-q8.html
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > What are new input form validations in HTML5?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Answer:
+ The new input types for form validation are email, URL, number, tel, and date.
+ With the help of the required attribute, it will work. Also if we want specific validation,
+ then we have to add input type "text" or "email" or "tel."
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/vipulchauhan07-q9.html b/answers/vipulchauhan07-q9.html
new file mode 100644
index 0000000..45fbed1
--- /dev/null
+++ b/answers/vipulchauhan07-q9.html
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home
+ > HTML Questions
+ > Explain the advantage of collapsing white space?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Answer:
+ White spaces are a new sequence of space characters, which is treated as a single space character in HTML.
+ Because the browser collapses multiple areas into a single space, we can indent lines of text without
+ worrying about various fields. It enables you to organize the HTML code into a more human readable format.
+
+
+
+
+
+
+
+ Similar Questions
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/answers/yaswantSinghi-q14.html b/answers/yaswantSinghi-q14.html
new file mode 100644
index 0000000..27d9cdc
--- /dev/null
+++ b/answers/yaswantSinghi-q14.html
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+ HTML | InterQues | Coding Ninjas
+
+
+
+
+
+
+
+
+
+
+