<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">{Color:#F00;text-decoration:None; }</style> Second Type: You can introduce external CSS files. Recommended use. Mode 1: Use the link tag. Recommended use ... Format: <link href= "path to CSS file" rel= "stylesheet" > Example: <link href= "1.css" rel= "sty Lesheet "/> Mode 2: Use <style> ingest format: <style type = "Text/css" > @import URL ("path to CSS"); </style> Example: <style type= "Text/css" > @impo RT URL ("1.css"); </style> Third Way: Write directly in the HTML tag using the Style property. Can only be used in this label, the reusability is poor. It is not recommended. Example: <a style= "color: #0F0; Text-decoration:none "href=" # "> News title 1</a>--><style type=" Text/css ">/*HTML comments:<!--HTML comments---CSS/* CSS comments:*/ /* */</style><meta http-equiv= "Content-type" content= "text/html; charset=utf-8"/><title> Untitled Document </title>
How to write CSS code