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>ref: <ahref="http://stackoverflow.com/questions/183532/what-is-the-difference-between-html-tags-div-and-span">Stackoverflow: div vs span</a></p>
256
+
<p>ref: <ahref="">might add css question 18 in david shariff</a></p>
257
+
</div>
258
+
<divid="div_section_article">
259
+
<h2>11. only</h2>
260
+
<p><strong>Question:</strong> What is the use of only?</p>
261
+
<pre><code>
262
+
<style><br/> @media only screen and (max-width: 1024px) {<br/> margin: 0;<br/> }<br/></style><br/>
263
+
</code></pre>
264
+
<p><strong>Answer:</strong> Stops older browsers from parsing the remainder of the selector</p>
257
265
</div>
258
-
<!-- <div id="div_section_article">
259
-
<h2>11. div, section & article</h2>
260
-
<p><strong>Question:</strong> When should i prefer div over section and vice versa?</p>
261
-
<p><strong>Answer:</strong> <br><section> means that the content inside is grouped (i.e. relates to a single theme), and should appear as an entry in an outline of the page. A section normally has a heading (title) and maybe a footer too. It’s a chunk of related content, like a subsection of a long article, a major part of the page (eg the news section on the homepage), or a page in a webapp’s tabbed interface.</p>
262
-
<p><div>, on the other hand, does not convey any meaning, aside from any found in its class, lang and title attributes.</p>
263
-
<p><article>, represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.</p>
<p><strong>Extra:</strong> Authors are strongly encouraged to view the div element as an element of last resort, for when no other element is suitable. Use of more appropriate elements instead of the div element leads to better accessibility for readers and easier maintainability for authors.</p>
0 commit comments