<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>HTML样式</title> </head> <body style="background-color:yellow"> <h1>Look! Styles and colors</h1> <p style="font-family:Verdana; color:red"> this text is in Verdana and rend</p> <p style="font-family:times; color:green"> this text is in Verdana and green</p> <p style="font-size:30px">This text is 30 pixels high</p> <h2 style="background-color:red">This is a heading</h2> <p style="background-color:green">This is a paragraph.</p> <p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p> <h1 style="text-align:center">This is a heading</h1> <p>The heading above is aligned to the center of this page.</p> </body> </html>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;&lt;