
上QQ阅读APP看书,第一时间看更新
Working with the style sheet
The next thing we will do is include our style sheet:
- Open the style.css file and enter the following code:
body{
background:#000;
}
- Save this and reload; we'll not get a black background as the style sheet is not being read:

- In order for that style sheet to be seen, we'll enter the following code:
<!DOCTYPE html>
<html <? php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php bloginfo('name'); ?></title>
<link rel="stylesheet"
href="<?php bloginfo('stylesheet_url'); ?>">
The preceding code will get the style sheet from the correct location.
- Save this code and reload. We can now see a black background:

So whatever we put in our style sheet will now be registered.