Skip to content

1 file uploaded #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions answers/ArcWhiz-q1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<html>
<head>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-157837769-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-157837769-1');
</script>

<title>
HTML | InterQues | Coding Ninjas
</title>

<link rel="shortcut icon" type="image/png" href="../../assets/favicon.png"/>

<meta name="description" content="Why do we need to put DOCTYPE tag at the begining of every HTML file?">
</head>
<body>

<div>
<img src="../../assets/CN_logo.png" height='72px' alt="Coding Ninjas Logo">
</div>

<div>
<p>
<small>

<a href="../../index.html">Home</a>
&gt; <a href="../index.html">HTML Questions</a>
&gt; Why do we need to put DOCTYPE tag at the begining of every HTML file?

</small>

</p>
</div>


<div>
<div>
<h4>
<h4>Why do we need to put DOCTYPE tag at the begining of every HTML file?</h4>
</h4>
</div>
<br>
<br>
<div>
<strong>Answer:</strong>
<p>
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.
</p>
</div>
</div>

<hr>

<div>
<h5>
Similar Questions
</h5>
<ul>

</ul>
</div>

</body>
</html>
83 changes: 83 additions & 0 deletions answers/ArcWhiz-q5.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<html>
<head>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-157837769-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-157837769-1');
</script>

<title>
HTML | InterQues | Coding Ninjas
</title>

<link rel="shortcut icon" type="image/png" href="../../assets/favicon.png"/>

<meta name="description" content="What is the difference between inline, block and inline-block elements?">
</head>
<body>

<div>
<img src="../../assets/CN_logo.png" height='72px' alt="Coding Ninjas Logo">
</div>

<div>
<p>
<small>

<a href="../../index.html">Home</a>
&gt; <a href="../index.html">HTML Questions</a>
&gt; What is the difference between inline, block and inline-block elements?

</small>

</p>
</div>


<div>
<div>
<h4>
<h4>What is the difference between inline, block and inline-block elements?</h4>
</h4>
</div>
<br>
<br>
<div>
<strong>Answer:</strong>
<p>
<ul>
<li>
<h6>Inline</h6>
<p>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.</p>
</li>
<li>
<h6>Block</h6>
<p>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.</p>
</li>
<li>
<h6>Inline-Block</h6>
<p>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.</p>
</li>
</ul>

</p>
</div>
</div>

<hr>

<div>
<h5>
Similar Questions
</h5>
<ul>

</ul>
</div>

</body>
</html>
69 changes: 69 additions & 0 deletions answers/aditya-q21.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<html>
<head>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-157837769-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-157837769-1');
</script>

<title>
HTML | InterQues | Coding Ninjas
</title>

<link rel="shortcut icon" type="image/png" href="../../assets/favicon.png"/>

<meta name="description" content="Why do we need to put DOCTYPE tag at the begining of every HTML file?">
</head>
<body>

<div>
<img src="../../assets/CN_logo.png" height='72px' alt="Coding Ninjas Logo">
</div>

<div>
<p>
<small>

<a href="../../index.html">Home</a>
&gt; <a href="../index.html">HTML Questions</a>
&gt; Why do we need to put DOCTYPE tag at the begining of every HTML file?

</small>

</p>
</div>


<div>
<div>
<h4>
<h4>28) Does a <!DOCTYPE html> tag is a HTML tag?</h4>
</h4>
</div>
<br>
<br>
<div>
<strong>Answer:</strong>
<p>
No, the <!DOCTYPE html> 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, <!DOCTYPE html> is used to instruct the web browser about the HTML page.
</p>
</div>
</div>

<hr>

<div>
<h5>
Similar Questions
</h5>
<ul>

</ul>
</div>

</body>
</html>
79 changes: 79 additions & 0 deletions answers/arunsridher-q7.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<html>
<head>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-157837769-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-157837769-1');
</script>

<title>
HTML | InterQues | Coding Ninjas
</title>

<link rel="shortcut icon" type="image/png" href="../../assets/favicon.png"/>

<meta name="description" content="Can you write a small code snippet to get directions from Google map?">
</head>
<body>

<div>
<img src="../../assets/CN_logo.png" height='72px' alt="Coding Ninjas Logo">
</div>

<div>
<p>
<small>

<a href="../../index.html">Home</a>
&gt; <a href="../index.html">HTML Questions</a>
&gt; Can you write a small code snippet to get directions from Google map?

</small>

</p>
</div>


<div>
<div>
<h4>
Can you write a small code snippet to get directions from Google map?
</h4>
</div>
<br>
<br>
<div>
<strong>Answer:</strong>
<pre>
&lt;form action=”http://maps.google.com/maps” method=”get” target=”_blank”&gt;

&lt;label for=”sadd”>Enter your location&lt;/label&gt;

&lt;input type=”text” name=”sadd” /&gt;

&lt;input type=”hidden” name=”dadd” value=”350 5th Ave New York, NY 10018″/&gt;

&lt;input type=”submit” value=”Get directions” /&gt;

&lt;/form&gt;
</pre>
</div>
</div>

<hr>

<div>
<h5>
Similar Questions
</h5>
<ul>

</ul>
</div>

</body>
</html>
60 changes: 60 additions & 0 deletions answers/asyriac-q2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-157837769-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-157837769-1");
</script>

<title>
HTML | InterQues | Coding Ninjas
</title>

<link rel="shortcut icon" type="image/png" href="../../assets/favicon.png" />

<meta name="description" content="What are empty elements?" />
</head>
<body>
<div>
<img src="../../assets/CN_logo.png" height="72px" alt="Coding Ninjas Logo" />
</div>

<div>
<p>
<small>
<a href="../../index.html">Home</a>
&gt; <a href="../index.html">HTML Questions</a>
&gt; What are empty elements?
</small>
</p>
</div>

<div>
<div>
<h4>
<h4>What are empty elements?</h4>
</h4>
</div>
<br />
<br />
<div>
<strong>Answer:</strong>
<p>HTML elements with no content are called empty elements. Empty elements do not have an end tag. <strong>Example:</strong> &lt;br&gt;, &lt;hr&gt;</p>
</div>
</div>

<hr />

<div>
<h5>
Similar Questions
</h5>
<ul></ul>
</div>
</body>
</html>
Loading