Tag of HTML

Source: Internet
Author: User

First, HTML tags

HTML tag tags are often referred to as HTML tags (html tag).

HTML tags are keywords surrounded by angle brackets, such as

HTML tags are usually paired, such as <b> and </b>

• The first label in the pair is the start tag, the second tag is the end tag

• Start and end tags are also known as open labels and closed labels

HTML Document Description Web page

HTML documents contain HTML tags and plain text

HTML documents are also known as Web pages

The purpose of a Web browser is to read HTML documents and display them as Web pages. Instead of displaying HTML tags, the browser uses tags to interpret the contents of the page.

Sum up. Web sites are made up of web pages that are made up of HTML (Web page) elements. HTML elements are described by HTML tags. HTML tags usually appear as pairs of children. Start element content ends.

Second, HTML element syntax

HTML element starting with start tag

HTML element terminated with end tag

• The content of the element is the content between the start tag and the end tag

• Some HTML elements have blank content (empty contents)

• Empty elements are closed in the start tag (ending with the end of the start tag)

Third, HTML framework tags

<body> Several properties: bgcolor background color background background picture text text color

Iv. Basic HTML tags

① format Label <font color="#663399" face= " Microsoft Jas Black " size=" 3 "> manipulating text </font>

<b> font Bold </b>
<i> Tilt </i>
<em> Tilt </em><!--easier to search --
<u> underline </u><br>
<strong> font bold, accent </strong>
<center> Center </center>
<br/> line Break
&nbsp; Spaces
<center> Center </center>
<!--I'm labeling--
② Content Tags

<p> paragraph Labels </p>
    <div> content container, page layout </div>

<span> content container, the difference in the default line with the Div, the default is how much space to occupy a large amount of space </span>
<ul> every item in the unordered list with <li></li>
<ol> every item in the ordered list with <li></li><br/>

③ Common Tags:
Hyperlink tag: <a href= "http://www.baidu.com" > This is a hyperlink </a>
Path problem: How to write a handwritten path
Based on the location of the page, if you find its parent folder with the . / If you find a child folder for it / until you find the picture

Properties of Taget in ④<a> tags:

_parent Open on parent page
_blank Open on new page
_self opens on its own page
_top Open on current page

Picture label
<!--height and width set one, because the picture is scaled, Alt is the text that appears when the picture fails to load, can also help search engines to find

Note: There are sequence and unordered lists
1, there are sequence table (display 1, 2, 3 、。。。 )
<ol type= "1" ><!--starting from 1, type can be filled with numbers, letters, write a few from a few start-up
<li> Fly </li><li> na mei </li> <li> mountain </li></ol>
2. Unordered list, non-sequential table (one black dot before each column)
<ul>  <li> Mountain </li>  <li> Road Fly </li>  <li> Usopp </li></ul>

Five, establish anchor point

1. Set the anchor point, add an a tag to the place where you want to set the anchor point <a name="md"></a>2. Set jump, add a tag where you want to jump <a href="#锚点名 "></a>

Tag of HTML

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.