Time for action – constructing the blog
Perform the following steps to build the blog:
- Open the
index.html
file that we have created in step 6 of the previous section Time for action – creating and organizing project directories and assets. Let's start by adding the most basic HTML5 structure as follows:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Blog</title> </head> <body> </body> </html>
Here, set
DOCTYPE
, which has been brought to the bare minimum form. TheDOCTYPE
format in HTML5 is now shorter and cleaner than theDOCTYPE
format of its HTML4 counterpart. Then, we set the language of our page, which in this case is set toen
(English). You may change it to your local language; find the code for your local language at ...
Get HTML5 and CSS3: Building Responsive Websites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.