15-07-23 html--Label

Source: Internet
Author: User
Tags border color

Hypertext Markup Language: HTML

Web Consortium: Internet Alliance

Comment Syntax:<!--commented-out Content-

Label format: Double label element:< Tag Name property style= Style > Content </tag name >

Single-label element:< tag name/> or < tag name >

Basic Tags:

(a) Self-tagging

<body> subject tag, inside the page content

<title> Title of Web page

(b) Format label (example: Word toolbar)

1.<fount face= "" size= "" color= "" > Control font Properties

2.<b></b> Font Bold

3.<i></i> Font Tilt

4.<u></u> Underline

5.<br/> Line break

6.&nbsp; Represents a space

(iii) Content label (model: QQ News Page)

1.

2.<p></p> paragraph Labels

3.<ul></ul> unordered List

<li> content </li>

<ol></ol> ordered list

<li> content </li>

4.<div></div> Layer Label (default line)

<span></span> Layer Labels (how much space is the default size)

5. ". /"indicates the parent directory

"./" indicates the current directory

Second, commonly used labels

(a) Hyperlinks <a></a>

1. Hyperlink text---The middle of the content

2. Hyperlink-oriented address---href attribute

3.target Property---_blank property opens in a new Window/_self property opens in its own window

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

(ii) Picture

1. Path to the picture---src attribute

2. Size of picture---width property height property

3. Picture description Name---alt attribute

(iii) Picture hyperlinks <a> </a>

Third, the table label:

<table> Properties: Width: Table width, border: Border cellspacing: Cell spacing cellpadding: Cell padding bordercolor: Border color

<tr> rows, properties: bgcolor: Background color,

<td> Cells: Properties: Width: Widths, height: height, align: horizontal alignment valign: Vertical alignment rowspan= "3" merge column colspan= "2" merge rows

Anchor point: How to use it?

1. Set the anchor point, add an a tag where you want to set the anchor <a name= "MD" ></a>

2. Set jump, add a tag where you want to jump <a href= "#锚点名" ></a>

15-07-23 html--Label

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.