Skip to content

Commit 30933b1

Browse files
committed
added only
1 parent 2e09a9c commit 30933b1

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

css.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -253,18 +253,16 @@ <h2>10. download resources</h2>
253253
</code></pre>
254254
<p><strong>Answer:</strong> No.</p>
255255
<p><strong>reason:</strong> .</p>
256-
<p>ref: <a href="http://stackoverflow.com/questions/183532/what-is-the-difference-between-html-tags-div-and-span">Stackoverflow: div vs span</a> </p>
256+
<p>ref: <a href="">might add css question 18 in david shariff</a> </p>
257+
</div>
258+
<div id="div_section_article">
259+
<h2>11. only</h2>
260+
<p><strong>Question:</strong> What is the use of only?</p>
261+
<pre><code>
262+
&lt;style&gt;<br/> @media only screen and (max-width: 1024px) {<br/> margin: 0;<br/> }<br/>&lt;/style&gt;<br/>
263+
</code></pre>
264+
<p><strong>Answer:</strong> Stops older browsers from parsing the remainder of the selector</p>
257265
</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>&lt;section&gt; 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>&lt;div&gt;, on the other hand, does not convey any meaning, aside from any found in its class, lang and title attributes.</p>
263-
<p>&lt;article&gt;, 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>
264-
<p><strong>Good Summary:</strong><a href="http://oli.jp/2009/html5-structure1/">div, section & article</a></p>
265-
<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>
266-
<p>ref: (copied from) <a href="http://dev.w3.org/html5/spec-author-view/the-section-element.html#the-section-element">W3C: section</a>, <a href="http://dev.w3.org/html5/spec-author-view/the-div-element.html#the-div-element">W3C: div</a>, <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-article-element">W3c: article</a> </p>
267-
</div> -->
268266
<!-- <div id="svg_canvas">
269267
<h2>12. svg vs canvas</h2>
270268
<p><strong>Question:</strong> What are the difference between svg and canvas?</p>

0 commit comments

Comments
 (0)