HTML Basic Learning

Source: Internet
Author: User

HTML (Hyper Text Markup Language): Hypertext Markup Language

Tag Learning

1. Title tag: There are six kinds of titles

<body>
</body>

2. List: (no sequence list; list of sequences; definition lists) <ul>, <ol>, <dl>

1 <Body>2     <ul>3         <Li>No sequence table 1</Li>4         <Li>No sequence table 2</Li>5         <Li>No sequence table 3</Li>6     </ul>7     <ol>8         <Li>With Sequence list 1</Li>9         <Li>With Sequence List 2</Li>Ten         <Li>With Sequence list 3</Li> One     </ol>  A     <DL> -         <DT>Html</DT> -         <DD>Hypertext Markup Language</DD> the     </DL> - </Body>              

3. Paragraph <p>

1 < Body > 2     < P > Fiction is composed of many passages </p>3</body >

4. Pre-formatted text (displayed in the browser according to the source file format) <pre>

1 < Body > 2     < Pre > 3      Today's date is:4                              August 13, 2016 5     </Pre  >6</body>

5. Partition block Text <div>

1 < Body > 2     < Div >< P > Use a section of text to display </p></div>  3</body>

6. Cross-character <span>

1 <Body>2 <!--the web is displayed in red, and the other fonts remain the same . -3     <P>Learn<spanColor= "Red">Web</span>Front</P>4 </Body>

7. Hyperlinks <a>

1 < Body > 2     <  href= "http://www.cnblogs.com"> Click I'll go to the blog home </a > 3 </ Body >

8. Graphics

1 < Body > 2 <!-- "src" Select Path  - 3     <  src= "bologs.jpg"  alt= "blog picture"></img  >4</body>

9. Forms <table>

1 <!--represents a 3*3 table >2<body>3 <table>4<tr>5<td>1</td>6 <td>2</td>7 <td>3</td>8 </tr>9 <tr>Ten <td>4</td> One <td>5</td> A <td>6</td> - </tr> - <tr> the<td>7</td> - <td>8</td> - <td>9</td> - </tr> +</table> - </body>

Forms Learning

1 <form>2     <label for= "Name">Name</label>3     <inputtype= "text"placeholder= "Enter user name"ID= "Name">    </input>4 <BR/>5     <label for= "Key">Password</label>6     <inputtype= "Password"ID= "Key"maxlength= "Ten"></input>7 <form>

HTML Basic Learning

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.