Time for action – adding in basic HTML structure

The next step is to give our HTML file some basic structure:

  1. Immediately below the DOCTYPE declaration, add in the basic HTML markup structure required for any web page to work:
    <html dir="ltr" lang="en-US">
    <head>
    <meta charset="UTF-8" />
       <title> </title>
    </head>
    
    <body>
    
    </body>
    </html>
  2. Save your index.html file.

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

What just happened?

Our page now has the core HTML structure that all site pages need. It has defining html tags, head tags where meta and other defining and included information are placed, and most importantly, body tags. HTML body tags are where everything that's seen on a web page goes.

Now we'll add some more elements for our theme's content.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset