Question 1:
What is the difference between Strok and fill in the canvas?
HTML5 divides the graph into two categories: the first is called a stroke, which is the outline, outline, or line. In short, the graph is composed of lines; the second class is called Fill, which is the filled area. There are two ways to draw a rectangle in the context object, which allows us to understand the difference between the two types: one is strokerect and the other is fillrect.
Question 2:
CSS in the Web page production generally have four ways of usage, specifically in the use of what should be used?
When there are more than one Web page to use CSS, the use of external CSS files, so that the code of the page can be greatly reduced, it is very convenient to modify the CSS used only in a single page, the way to embed the document header, and for only one page in one, two places to use the CSS, The inline insertion method should be used.
Reference: "HTML+CSS3 Web design and production case Class"
Seventh Week assignment