1 <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > 2 < Html Xmlns = "Http://www.w3.org/1999/xhtml" > 3 <! -- The namespace attribute is represented by xmls to define the URL that identifies the page tag. --> 4 5 < Head > <! -- Elements used by the page header --> 6 7 < Meta HTTP-equiv = "Content-Type" Content = "Text/html; charset = gb2312" /> 8 < Title > Untitled document </ Title > 9 10 </ Head > 11 12 < Body Bgcolor = "# Ffcc" > <! -- The content to be displayed on the page. attributes are defined for the body. --> 13 14 15 </ Body > 16 </ Html > 17 18 19 20 21 <! -- 22 Elements constitute the foundation of HTML 23 1. elements that can contain content 24 <Element name>... </element name> 25 2. self-enclosed Elements 26 <Element name/> 27 It cannot contain content 28 29 30 31 Element attribute writing format 32 33 <Element name attribute = "attribute value"> ...... </element name> 34 Double quotation marks must be added to all attributes, whether they are numbers or anything. 35 36 Special characters must be encoded. For example, use & amp space or special characters 37 38 --> 39 40 41 42 <! -- 43 44 Namespace: identifies tags on a page by pointing to a URL. 45 Xmlns is used in XHTML. 46 47 48 -->