diff --git a/answers/ArcWhiz-q1.html b/answers/ArcWhiz-q1.html new file mode 100644 index 0000000..6d5a705 --- /dev/null +++ b/answers/ArcWhiz-q1.html @@ -0,0 +1,69 @@ + + + + + + + + + HTML | InterQues | Coding Ninjas + + + + + + + + +
+ Coding Ninjas Logo +
+ +
+

+ + + 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 + + + + + + + + +
+ Coding Ninjas Logo +
+ +
+

+ + + 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: +

+

+ +

+
+
+ +
+ +
+
+ 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 + + + + + + + + +
+ Coding Ninjas Logo +
+ +
+

+ + + 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 + + + + + + + + +
+ Coding Ninjas Logo +
+ +
+

+ + + 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>
+                
+
+
+ +
+ +
+
+ Similar Questions +
+ +
+ + + diff --git a/answers/asyriac-q2.html b/answers/asyriac-q2.html new file mode 100644 index 0000000..4f0c21b --- /dev/null +++ b/answers/asyriac-q2.html @@ -0,0 +1,60 @@ + + + + + + + + HTML | InterQues | Coding Ninjas + + + + + + + +
+ Coding Ninjas Logo +
+ +
+

+ + Home + > HTML Questions + > What are empty elements? + +

+
+ +
+
+

+

What are empty elements?

+ +
+
+
+
+ Answer: +

HTML elements with no content are called empty elements. Empty elements do not have an end tag. Example: <br>, <hr>

+
+
+ +
+ +
+
+ Similar Questions +
+ +
+ + diff --git a/answers/gaurav-q4.html b/answers/gaurav-q4.html new file mode 100644 index 0000000..3ceb259 --- /dev/null +++ b/answers/gaurav-q4.html @@ -0,0 +1,72 @@ + + + + + + + + + HTML | InterQues | Coding Ninjas + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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 + + + + + + + + +
+ Coding Ninjas Logo +
+ +
+

+ + + 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: + +

+ +

+
+
+ +
+ +
+
+ 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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. +

+
+
+ +
+ +
+
+ Similar Questions +
+
    + +
+
+ + + + diff --git a/answers/piyush-zlatan-q6.html b/answers/piyush-zlatan-q6.html new file mode 100644 index 0000000..f46a4ae --- /dev/null +++ b/answers/piyush-zlatan-q6.html @@ -0,0 +1,70 @@ + + + + + + + + + HTML | InterQues | Coding Ninjas + + + + + + + + + Coding Ninjas Logo + +
+

+ + + Home + > HTML Questions + > Why is a URL encoded in HTML? + + + +

+
+ + + +
+

+

Why is a URL encoded in HTML?

+ +
+
+
+
+ Answer: +

+ 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. +

+
+
+ +
+ +
+
+ Similar Questions +
+
    + +
+
+ + + diff --git a/answers/prateek-q19.html b/answers/prateek-q19.html new file mode 100644 index 0000000..a5fca0a --- /dev/null +++ b/answers/prateek-q19.html @@ -0,0 +1,73 @@ + + + + + + + + + HTML | InterQues | Coding Ninjas + + + + + + + + + Coding Ninjas Logo + +
+

+ + + Home + > HTML Questions + > What is microdata? + + + + +

+
+ + + +
+

+ +

+
+
+
+
+ Answer: +

+ 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.

+ +
+
+ +
+ +
+
+ Similar Questions +
+
    + +
+
+ + + diff --git a/answers/provks-q3.html b/answers/provks-q3.html new file mode 100644 index 0000000..9e88025 --- /dev/null +++ b/answers/provks-q3.html @@ -0,0 +1,71 @@ + + + + + + + + + HTML | InterQues | Coding Ninjas + + + + + + + + + Coding Ninjas Logo + +
+

+ + + Home + > HTML Questions + > What is semantic HTML? + + + +

+
+ + + +
+

+

What is semantic HTML?

+ +
+
+
+
+ Answer: +

+ 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

+ semantic layout example 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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: + <iframe src="URL"></iframe> +  
+ Example:
+ <iframe src="demo_iframe.html" width="200px" height="200px"></iframe> + +
+
+ +
+ +
+
+ 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + Home + > HTML Questions + > What is an image map? + + +

+
+ + + +
+

+

+ +
+
+
+
+ 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + 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 + + + + + + + + + Coding Ninjas Logo + +
+

+ + + Home + > HTML Questions + > What is Breadcrumbs in html? + + + +

+
+ + + +
+

+

What is Breadcrumbs in html?

+ +
+
+
+
+ Answer: + Breadcrumbs is a secondary navigation system that shows a user's location in a site or web app. +
+
+ +
+ +
+
+ Similar Questions +
+
    + +
+
+ + + diff --git a/index.html b/index.html index 0b78cdb..6d9bee5 100644 --- a/index.html +++ b/index.html @@ -1,61 +1,232 @@ - - - - - - - - - InterQues | Coding Ninjas - - - - - - - - -
- Coding Ninjas Logo -
- -
-

- InterQues -

- -
- -
- -
- -
-

- List of contributors: -

- -
- - - \ No newline at end of file + + + + + + + + + HTML | InterQues | Coding Ninjas + + + + + + + + + + +
+ + Coding Ninjas Logo + +
+ +
+

+ + + Home + > HTML Questions + + +

+
+ +
+

+ HTML Questions +

+

+ + Below is a compiled list of HTML interview questions that + will help you conquer that upcoming interview of yours! + +

+
+ +
    + +
  1. + +

    + Why do we need to add the <!DOCTYPE html> tag at the top of every HTML file? +

    +
    +
  2. + +
  3. + +

    + What are empty elements? +

    +
    +
  4. + +
  5. + +

    + What is semantic HTML? +

    +
    +
  6. + +
  7. + +

    + What is the difference between span and div? +

    +
    +
  8. + +
  9. + +

    + What is the difference between inline, block and inline-block elements? +

    +
    +
  10. + +
  11. + +

    + Why is a URL encoded in HTML? +

    +
    +
  12. + +
  13. + +

    + Can you write a small code snippet to get directions from Google map? +

    +
    +
  14. + +
  15. + +

    + What are new input form validations in HTML5? +

    +
    +
  16. + +
  17. + +

    + Explain the advantage of collapsing white space? +

    +
    +
  18. + +
  19. + +

    + What is an image map? +

    +
    +
  20. + +
  21. + +

    + What are the limits of the text field size? +

    +
    +
  22. + +
  23. + +

    + How to insert a copyright symbol on a browser page? +

    +
    +
  24. + +
  25. + +

    + What is the use of an iframe tag? +

    +
    +
  26. + +
  27. + +

    + What is Breadcrumbs in html? +

    +
    +
  28. + +
  29. + +

    + What is the difference between <div> and <frame>? +

    +
    +
  30. + +
  31. + +

    + Which type of video formats are supported by HTML5? +

    +
    +
  32. + +
  33. + +

    + Difference between Padding and Margin in html and Css? +

    +
    +
  34. + +
  35. + +

    + What is a physical and logical tag in HTML? +

    +
    +
  36. + +
  37. + +

    + What is microdata? +

    +
    +
  38. + +
  39. + +

    + What is the difference between GET and POST methods? +

    +
    +
  40. + +
  41. + +

    + What is the use of <pre> tag in html? +

    +
    +
  42. +
  43. + +

    Does a tag is a HTML tag?

    +
  44. +
+ + +