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.

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>


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>.
Hello <BR>
This is a test <BR>


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.
<B> Show text in bold </B>


  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.
<I> display text in italics </I>


  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.
<U> add underline to text </U>


  underline text

Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.