HTML learning (1) orchestration text format

Source: Internet
Author: User

I have been learning JavaScript over the past few days and I feel that I often need to use the HTML language. So I have learned a little about it. Here I will make a record for your reference.

 

1. Organize text

1.1 page title

<Title> the tag is embedded between the

<H1>-<H6> indicates the font size of the title.

1.2 text

<P> section label. <p align = "center"> center the section text, align left, and align right.

<Br> line feed label.

<Div> tag indicates dividing an HTML document into several parts.

2. format tags

2.1 Content-based formatting

<Cite> references used to identify the referenced identity, such as the title or magazine name.

<Code> ID equal widthCode, SuchProgramCode.

<Dfn> specify definitions, such as applications in online dictionaries.

<Em> add emphasis (italic) to the text ).

<KBD> identifies the text on the keyboard.

<SAMP> identifies the character sequence.

<Strong> add emphasis (BOLD) to the text ).

<Var> identifies the variable in the code.

2.2 physical Text Formatting

<B> specifies the text in bold.

<Big> increase the font size of the text.

<Blink> indicates the text that uses the flickering effect.

<I> indicates the text displayed in italic.

<S> specifies the text to be deleted.

<Small> reduce the font size of the text.

<Sub> indicates the text as the underlying object.

<Sup> indicates the text as the superscript.

<Tt> indicates the text displayed with a single and other width (all characters have the same width.

<U> specifies the underlined text.

3. List

3.1 unordered list

<Ul> the tag contains the unordered list.

<Li> Each Project ID tag.

3.2 sorting list

<Ol> A tag is used to create a sorting list.

3.3 definition list

<DL> used to create a list that contains its definition.

<DT> identification term.

<DD> definition of the identifier term.

4. Notes

<! -- And --> to identify comments.

References: Peking University Press <HTML and XML Web page programming 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.