HTML Language Basics
1.HTML editing software
Microsoft Virsual Studio.NET
2. Document type definition (DOC type DEFINITION,DTD)
Format <! DOCTYPE HTML Public "version name" "Ur1" >
(1) HTML refers to a document definition type
(2) Public refers to a DTD document that is publicly accessible to anyone, not a company's internal specification file.
(3) version name refers to the identity name of the HTML version.
(4) The URL refers to the location of the definition specification for the HTML language on the file Internel.
3. Comments and special characters
(1) <!--comments-add comments, not nested.
<body>
<!--
Auther Zhang San
电话 11111111
-
</body>
(2) Special characters
HTML encoding display or processing results
< <
> >
& &
": "
® R
© C Copyright Symbol
™ Tm
Space character
4. Format label
<nobr></nobr> Prevent long content wrapping
<marquee></marquee> move 1. Property drection Move Direction property value
2. Property behavior Specifies the movement behavior of the graphic text in which the Dircetor property value can be scroll,alternate side
5. (1) List <dl></dl><dt></dt><dd></dd>
<body>
<dl>
<dt> China Cities </dt>
<dd> Beijing </dd>
<dd> Shanghai </dd>
<dd> Guangzhou </dd>
<dt> American Cities </dt>
<dd> Washington </dd>
<dd> Chicago </dd>
<dd> New York </dd>
</dl>
</body>
(2) <ol></ol><ul></ul><li><li>
<body>
<ol>
<p> China Cities </p>
<li> Beijing </li>
<li> Shanghai </li>
<li> Guangzhou </li>
<p> American Cities </p>
<li> Washington </li>
<li> Chicago </li>
<li> New York </li>
</ol>
<ul>
<p> China Cities </p>
<li> Beijing </li>
<li> Shanghai </li>
<li> Guangzhou </li>
<p> American Cities </p>
<li> Washington </li>
<li> Chicago </li>
<li> New York </li>
</ul>
</body>
6.<pre></pre> text is pre-formatted, ignoring spaces and wrapping, and not using IMG to insert pictures, controls, or small programs.
7. Text Labels
<body>
<p><b> Bold text </b></p>
<p><i> Italic text </i></p>
<p><u> Add underlined text </u></p>
<p><tt> Printer-style text </tt></p>
<p><cite> Text of citation method </cite></p>
<p><em> emphasized text </p></em>
<p><strong> aggravated text </strong></P>
<p><font size= "+1" color= "Red" >size Take Value "+1", color value red text
</font></p>
</body>
HTML Language Basics