The id of the html <body> tag.


Image Unavailable
Click to view in closer detail!


This selector is the id of the HTML <body> tag. The <body> tag contains every bit of page content on a page, and in normal application an HTML document has only one <body>. Therefore, while you can use #html-body to style the entire page with CSS, it has practically the same effects as styling the body type selector.


Body is good for changing the global background color/image or setting the font for the document. For instance, this particular page is currently using the Comic Sans MS font (or Times New Roman if you don't have that) with the following code:

    font-family: 'Comic Sans MS','Times New Roman';
    font-size: 13px;

Try It on the CSS Zone Sandbox!

Base CSS

Not defined in Base CSS.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License