Text layout (text STYLE) marker

Source: Internet
Author: User
Tags format end

Here we introduce several commonly used text layout tags:<p>, <BR>, <B>, <I>, <U>.

Define paragraph <P>...</P>
This tag is used to indicate the beginning and end of a text paragraph. This tag must use an end tag.
Format:<p>...</p>

Property:
ALIGN: Used to set the alignment of text. Its value has left (aligned), right (right-aligned), center (centered). The default value is left-aligned.
Example: <p align=center> Set paragraph alignment to center </P>

Effect:

Set paragraph alignment to center

Breaking the line <BR>
The <BR> tag enables the client browser to insert a newline character. The <BR> tag can be placed either behind the same text or on a single line, and the result is the same. Note that:<br> is different from <P>.
Format:<br>
Cases:
<P>
Hello <BR>
This is a test <BR>
</P>

Effect:

How are you doing
This is a test
  

Bold display text <B>...</B>
<B> tags enable browsers to display specific text in bold characters. This tag does not have any attributes.
Format:<b>...</b>
Cases:
<B> Show text in bold </B>

Effect:

  Display text in bold

Italic display text <I>...</I>
The text in the <I> tag will be displayed in italics. This tag does not have any attributes.
Format:<i>...</i>
Cases:
<I> display text in italics </I>

Effect:

  Display text in italics

Underlined text <U>...</U>
The <U> tag causes the browser to underline the text in the <U> tag. This tag does not have any attributes.
Format:<u>...</u>
Cases:
<U> add underline to text </U>

Effect:

  underline text



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.