HTML5 Boilerplate-give the page a good start
I. What is HTML5 Boilerplate? What problems have been solved? For the first time I heard of this person, I must have this question! I read it online and found that many people think this is the same as Bootstrap. This is a big mistake. In fact, HTML5 Boilerplate is just a simple HTML template. What? HTML template? Why? I have to mention all the problems that front-end development will encounter. How do you do it every time you have to create a new page? The doctype, html, head, body, and meta tags are annoying. You can also copy from a previous project, or copy a Bootstrap recommendation template. But when doing these things, have you ever thought about whether your writing is the best? Or is there a uniform recommendation from the industry? The answer is yes. HTML5 Boilerplate solves such a problem. It provides a perfect HTML template. It seems that all pages should comply with this rule. If we are so excited, we have to check whether it is the right thing. Download it from the official website. The most important thing is an index.html file, which is not big. Let's take a look at its source code. <! DOCTYPE html> <! -- [If lt IE 7]>