Get the latest and greatest from MDN delivered straight to your inbox. This element includes the global attributes. Was used to set the background color on a document. Add a background image to a document (with CSS): Set the background color of a document (with CSS): Set the color of text in a document (with CSS): Set the color of unvisited links in a document (with CSS): Set the color of active links in a document (with CSS): Set the color of visited links in a document (with CSS): HTML DOM reference: document.body Property. The most important… and the simplest. The tag also supports the Global Attributes in HTML. Deprecated. There can be only one element in a document. Was used to set a margin above the body of a document. Use CSS instead. https://github.com/mdn/browser-compat-data. Most browsers will display the element with the following default values: If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: W3Schools is optimized for learning and training. Deprecated. We use cookies to ensure that we give you the best experience on our website. Note: There can only be one element in an HTML document. headings, paragraphs, images, hyperlinks, tables, lists, etc. Was used to style the background of a document. And, in fact, is a great place to put all the CSS that should affect the document display as a whole: things like fonts and typography, text and background colors, and other other “default” styling. Obsoleted the formerly deprecated attributes. Deprecated. Was used to style the text inside the body of the document. Use CSS instead. These classes are added programmatically by different components and plugins, and provide an easy way for developers to target styling or functionality at highly specific sets of pages (and if they never get used, they aren’t causing any problems). While using W3Schools, you agree to have read and accepted our. © 2005-2020 Mozilla and individual contributors. The HTML Element represents the content of an HTML document. The tag defines the document's body. And yet, it is very simple. Fires a script when the visitor focuses on the current page. element in an HTML document. Defined the behavior of the non-conforming and never standardized. Expect behavior to change in the future. Use CSS instead. If you haven’t already created an account, you will be prompted to do so after signing in. The element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. Well organized and easy to understand Web building tutorials with lots of examples of how to … Use CSS.

Highest Recorded Wind Speed In Las Vegas, Waterproof Survival Guide, Anz Dividend Payment Dates 2019, Roald Dahl Quotes, Hypnopompic Hallucinations Parkinson's, Waldorf Astoria Orlando Job Openings, Texans Vs Patriots 2012 Playoffs, Rap Albums Coming Out In 2020, Nrl Round 20 Draw 2020, Orionis Pronunciation,