HTML Language Basics

Source: Internet
Author: User

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

&lt; <

&gt; >

&amp; &

&quot: "

&reg; R

&copy; C Copyright Symbol

&trade; Tm

&nbsp; 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

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.