How to format an XHTML page. For this example we will use the xhtmlSinFormato.html file. To start copy the code we will paste it in a Notepad (or the program you used to create your Web pages) and rename it as xhtmlConFormato.html. To give format is necessary to use CSS. Let’s start with the CSS: more importantly from my point of view is always commenting on what you will do, maybe at the beginning do not give much importance because you only have a couple of layers but if you generate a website with more than 200 layers would be good to know that says every thing. This format is used to comment on css.
/ * whatever you want comment * / Apartir of here pasteo the code to be used with our Web page. / * CSS Document * by Ignacio Santos for Space website if you want to copy this content please read the Copyleft license in. * / body font-family: Arial, Helvetica, sans-serif; font-size: 10px; background-color: #99CCFF; margin-left: 75px; margin-bottom: 150px; / * generate space for a photo * / #foto margin-top: 50px; margin-bottom: 100px; border-top-color: #000000; border-top-style: OS lid; border-top-width: thin; border-left-color: #00000 0; border-left-style: solid; border-left-width: thin; b order-right-color: #000000; border-right-style: solid; border-right-width: thin; border-bottom-color: # 00 0000; border-bottom-style: solid; border-bottom-width: t hin; width: 250px; height: 100px; / * links * / .to color: #663333; We began the explanation, I am not going to explain the attributes one is preferable to visit, is a site recommended by the W3C to learn CSS. What if we are going to explain is what it is. Let’s start with body font-family: Arial, Helvetica, sans-serif; font-size: 10px; background-color: #99CCFF; margin-left: 75px; margin-bottom: 150px; Here we are modifying what body (body) page, without modifying the attributes that give the W3C. Font-family: we put an Arial font, if that wasn’t in the system of the usariamos visitors a Helvetica and if the same thing happens a sans-serif.