"Easy Front trip" HTML block elements, inline elements, and empty elements

Source: Internet
Author: User

Blocks (block) element

Displayed as a piece, with a newline before and after. Block elements are commonly used in the main building blocks of Web pages. such as:<div>,<p>,

inline (inline) element (inline Element)

Displays the contents of the parent element in a row within the row. Inline elements are often used to mark small pieces of content. such as:<q>,<em>

Empty (void) element

No content, with a start tag. such as:<br>,

Entity character (character entity)

Used to define some special characters. such as: &LT Representative <, &GT representative >, &AMP Representative & number.

You can find characters by using the following URLs: http://www.unicode.org/charts/, but to display characters on Unicode, you need to install the appropriate font.

Tips

When designing a page, you typically use block elements to lay out the page, and then use inline elements to refine the pages.

We want to select the element that is closest to the content meaning to construct the page.

For many elements, in different browsers, rendering may not be the same way, when the use of CSS style to specify the performance of the elements.

<a>, can be an inline element, or a block element, and if <a> contains a block element, it is displayed as a block element.

Scan code attention, learn to program:

Love Travel--Hainan Wenchang Moon Bay

"Easy Front trip" HTML block elements, inline elements, and empty elements

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.