HTML Common Tags

Source: Internet
Author: User

The HTML document consists of 4 main tags, 4 of which are

<HTML> <Head>   <title>HTML page</title> </Head> <Body>   <b>To write HTML code by using Notepad</b> </Body></HTML>
1. Line break Markers

In the HTML language, line breaks are marked as <br>.

<HTML> <Head>   <title>HTML page</title> </Head> <Body>   <b>To write HTML code by using Notepad</b><BR>line Break<BR>Hi there!</Body></HTML>
2. Paragraph marks

The paragraph mark in HTML is also an important marker, with the paragraph mark beginning with the <p> tag and ending with the </p> mark. The paragraph mark adds a blank line before and after the paragraph, and the content defined in the paragraph mark is not affected by the tag.

3. Title Tag

Create different levels of headings in an HTML page that you can use to mark the headings in the HTML language. In the HTML markup, 6 caption tags are set,

4. Center Mark

The contents of the HTML page are laid out in a certain way, and the default layout is to sort from left to right. If you want content in your page to appear centered on the page, you can use the <center> tag in HTML. The <center> tag starts with a <center> tag, ending with a </center> tag. The contents of the tag are centered.

5. Text list marker

The HTML language provides a list of text tags, which can be sorted in a list by the text list tag. This form makes it easier for web visitors. The list markup in HTML has two main types: unordered and ordered.

5.1 Unordered List

An unordered list is a dot symbol that is added to the front of each list item. Symbols <ul> lets you create a set of unordered lists, each of which is represented by a list item <li>. The following example shows an application of an unordered list:

<HTML>   <Head>    <title>Unordered list Tags</title>   </Head>   <Body>There are several varieties of the programming Dictionary:<P>   <ul>      <Li>Java Programming Dictionaries<Li>VB Programming Dictionary<Li>. NET Programming Dictionaries<Li>C # Programming Dictionary</ul>   </P>   </Body></HTML>
5.2 Ordered List

The difference between an ordered list and an unordered list is that the list item can be automatic arranging by using a sequential listing tag. The sequence list is marked as <ol> <li> is used before each list item. There are sequential lists in which the item items are in a certain order. The following example uses a sequential list to sort the above examples:

<HTML>   <Head>    <title>Unordered list Tags</title>   </Head>   <Body>There are several varieties of the programming Dictionary:<P>   <ol>      <Li>Java Programming Dictionaries<Li>VB Programming Dictionary<Li>. NET Programming Dictionaries<Li>C # Programming Dictionary</ol>   </P>   </Body></HTML>

HTML Common Tags

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.