You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><strong>Question:</strong>What are optional closing tag? and why would u use it?</p>
171
-
<p><strong>Answer:</strong> p, li, td, tr, th, html, body, etc. you dont have to provide end tag. whenever browser hits a new tag it automatically ends the previous tag. However, you have to be careful to escape it</p>
170
+
<p><strong>Question:</strong>What are optional closing tag? and why would u use it?</p>
171
+
<p><strong>Answer:</strong> p, li, td, tr, th, html, body, etc. you dont have to provide end tag. whenever browser hits a new tag it automatically ends the previous tag. However, you have to be careful to escape it.</p>
172
172
<p><strong>reason:</strong> you can save some byte and reduce bytes needs to be downloaded in a html file.</p>
173
173
<pre><code>
174
174
<p>Some text<br/><p>Some more text<br/><ul><br/> <li>A list item<br/> <li>Another list item<br/></ul>
175
175
</code></pre>
176
-
<p> the above html will be parsed as the following blocks</p>
176
+
<p> the above html will be parsed as the following blocks.</p>
177
177
<pre><code>
178
178
<p>Some text</p><br/><p>Some more text</p><br/><ul><br/> <li>A list item</li><br/> <li>Another list item</li><br/></ul>
<p><strong>Question:</strong> Difference between standard mode and quirks mode</p>
213
+
<p><strong>Question:</strong> Difference between standard mode and quirks mode?</p>
214
214
<p><strong>Answer:</strong> quriks mode in browser allows u to render page for as old browsers. This is for backward compatibility.</p>
215
215
</div>
216
216
<divid="semantic_html">
217
217
<h2>15. semantic</h2>
218
218
<p><strong>Question:</strong> What is semantic HTML?</p>
219
-
<p><strong>Answer:</strong>Semantic HTML, or "semantically-correct HTML", is HTML where the tags used to structure content are selected and applied appropriately to the meaning of the content.</p>
219
+
<p><strong>Answer:</strong>Semantic HTML, or "semantically-correct HTML", is HTML where the tags used to structure content are selected and applied appropriately to the meaning of the content.</p>
220
220
<p>for example, <b></b> (for bold), and <i></i> (for italic) should never be used, because they’re to do with formatting, not with the meaning or structure of the content. Instead, use the replacements <strong></strong> and <em></em> (meaning emphasis), which by default will turn text bold and italic (but don’t have to do so in all browsers), while adding meaning to the structure of the content.</p>
0 commit comments