Basic HTML syntax

Source: Internet
Author: User

 

 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   --> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.