First, what is HTML
HTML (Hyper Text mark-up Language), or Hypertext Markup Language, is the description language of WWW, presented by Tim Berners-lee. The purpose of the HTML language is to make it easy to connect text or graphics stored on one computer with text or graphics from another computer to form an organic whole, regardless of whether the specific information is on the current computer or on other computers in the network. This way, if you use your mouse to click an icon in a document, the Internet will immediately go to the content associated with that icon, which may be stored on another computer in your network.
HTML text is a descriptive text made up of HTML commands that describe text, graphics, animations, sounds, tables, links, and so on. The structure of HTML consists of two parts: Head (head), Body (body). The header describes the information required by the browser, and the subject contains the specific content to be described.
Second, the grammatical characteristics of HTML
1, the HTML file save format
There are mainly. html,. htm,. xhtml
2. Mark the basic format
single Mark : only the start tag, no end tag, such as <br>,
Double mark: Both the start tag and the closing tag, such as
Tagged Properties: The properties of the tag are used to control the display of the markup content. For example: <body bgcolor= "Red"></body>.
3 , HTML markup Language is case insensitive
4. Documentation Comments
<!--document Declaration--
5. Code format
1 <!DOCTYPE HTML>2 <HTMLLang= "en">3 <Head>4 <MetaCharSet= "UTF-8">5 <title>Document</title>6 </Head>7 <Body>8 9 </Body>Ten </HTML>
6. New features of HTML5
HTML5 is the newest standard for HTML, and it has the following new features:
1) Canvas Elements for painting
2) for media playback of video elements and audio elements
3) better support for local offline storage
4) New elements of special content, such as Header,footer
5) New form controls, such as Email,date
Introduction to HTML