Div, span, and center elements in CSS
And is used to specify a style for the content or bind a script. Although most HTML elements can use style attributes to set style information, many HTML elements have their own default styles, which may be mixed or even conflicted with styles defined by style, we don't want to see it. For example:I am strong!. Unlike other html elements,
And no default display style. You can use them to specify styles.
(1)
Pision is a block-level element that can contain paragraphs, titles, tables, and even chapters, summaries, and remarks. As a block-level element, a line break is inserted at the beginning and end of a paragraph.
...
Used to set the location of the content block. Available
To bind scripts or styles to any part of the document.
(2) and
Different, is a line element, does not cause line breaks. It is a logical embedded grouping element. The most common method is to use it to specify a style for several words or even a few characters in a text segment.
(3) Place the content to be centered
Center. And
Same role.
Example: use of elements.
In this sentence some of the text is important!