O'Reilly logo

Responsive Web Design by Example : Beginner's Guide - Second Edition by Thoriq Firdaus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – building the website's HTML structure

  1. Create a new HTML file named index.html. Then, open it in Sublime Text, our code editor of choice in this book.
  2. Let's add the basic HTML5 structure as follows:
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <title>Startup</title>
    </head>
    <body>
      
    </body>
    </html>
  3. Add the meta X-UA-Compatible variable with the content value IE=edge to allow Internet Explorer to use its latest cutting-edge rendering version:
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
  4. Not to forget the meta viewport tag required to make the website responsive; add it in <head> as follows:
    <meta name="viewport" content="width=device-width, initial-scale=1">
  5. Add the favicon, as well as the Apple icon, below the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required