When using Jquery's html (data) method to write data to Dom elements, the following problem occurs: when the data parameter contains a script block, html (data) the execution result of the method is inconsistent with the expectation. The HTML
Block-level element Classification (Original: http://kevinpeng.iteye.com/blog/743936)
Block-level elements include structured block elements, terminal block elements, and multi-object block elements.
1. Structured block elements
These
HtmlBlock elements, inline elementsClassification of block-level elementsBlock-level elements are divided into three types depending on their application to structure or content:Structured block elements, terminal block elements, multi-object block
Block elements and inline element parsing blocks elements (block element) in HTML Getting Started HTML are typically container elements of other elements, and block elements generally start from the new row, which can accommodate inline elements and
Classification of block-level elementsBlock-level elements are divided into three types of structure or content: structured block elements, terminal block elements, and multi-object block elements.I. Structured block elementsSuch elements are used
Block elements generally start from the new line, which can accommodate inline elements and other block elements, and the common block element is the paragraph label ' P '. The block element of "form" is special, and it can only be used to
When using Jquery's html (data) method to write data to Dom elements, the following problem occurs: when the data parameter contains a script block, html (data) the execution result of the method is not as expected. The Teddy's Knowledge Base2008-04-
The difference between block elements and inline elements.
Only one row can set the margin in the width, height, and vertical direction, and the margin and padding in the horizontal direction of padding.
Block Element: Yes, yes, yes
Inline element:
Only one row can set the margin in the width, height, and vertical direction, and the margin and padding in the horizontal direction of padding.
Block Element: Yes, yes, yes
Inline element: No, no
Question: Change the nine days of the next
I. Block-level elements and row-level elements
To understand the differences between display: inline, block, and inline-block, you must first understand the features of block-level and line-level elements in HTML. In-line elements are also called
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.