style.css
. Make sure it's in the same directory as your index.php
file. index.html
file, and inside the <head>
tags, just under the <title>
tags, add the following link to your style.css
file:<link rel="stylesheet" type="text/css" media="all" href="style.css" />
We created a new stylesheet called style.css
and attached it to our index.html
file with a line of code inside the <head>
section of our HTML file.
For now our stylesheet is still empty, but we'll change that shortly.
Our theme is going to be responsive—its layout will adapt to the width of the device it's being viewed on. In order for this to work, and for mobile devices to display the site at the correct width, we need to add some more code to our <head>
section in our index.html
file.