The text attribute tags are:
1. id, which means the unique identifier in the current page, used for css or js control.
2. Class, which means the class name, is used for CSS control.
3. Title means specifying the title.
4. Style means inserting inline styles.
Title tag Hx:
h1-h6, title tag, ***level 6, generally the first-level title H1 only appears once in a page, and the second-level title to level 6 A title can appear multiple times, and its weight decreases. The default is block elements, bold, with top and bottom margins.
Main attributes: align, specify the alignment. Three commonly used values ??are left (default), enter (center), and right (it is recommended not to use it, but control its alignment through css).
Paragraph tag P: Paragraph p, used for the entire paragraph of text, generally used for paragraphs in articles or an independent paragraph of text. Defaults to block elements. There are upper and lower margins (margin).
Main attributes: align, the usage is the same as Hx’s align. Here is the paragraph text, superscript and subscript Sup Sub.
Superscript and subscript, inline elements, are relatively rarely used in web page layout. Their main purpose is to output mathematical equations, such as: 2x22+3x2+1=9.
Emphasis on strong em.
strong (inline elements, bold), em (inline elements, italics).
Here is the content to be emphasized, which is bold by default.
This is also the content that needs to be emphasized, which is shown in italics by default.
Because these two elements have a certain emotional color (emphasis), they are particularly important in SEO code optimization. They should be applied to content that really needs to be emphasized, not to express bold or italics. If you just want to show bold or italics, but not really emphasize, then you can choose the following two tags.
Bold B:
B bold, inline elements. It is only formally expressed in bold and does not have the effect of emphasis.
Italic I:
I, italic, inline element. It is only formally expressed as italics without emphasis.
Line break BR:
br, line break, is a means of wrapping a piece of text into a new line. It is generally rarely used.
Horizontal line HR:
hr, creates a horizontal line, or dividing line, on the page. Defaults to block element, centered, 2 pixels, shadow, 100% wide.
Attribute:
align alignment, usage is the same as above.
noshade removes shadows (shows solid color).
size line thickness.
width line width.
color line color.
The colors used in HTML include the following:
English words, such as red, green, etc.
Hexadecimal values: such as #ff0000, #006699. Hexadecimal colors in html code cannot use abbreviations such as #f60 and must be written as #ff6600.
rgb value: such as rgb(255,255,0).
rgba: Such as rgba(255,255,0,.5).
Block quote blockquote:
blockquote, a reference element, if the article needs to quote the content of other articles, the default is the block element. There are margins on the top, bottom, left and right.
Several tags for controlling text:
Bold: Text (example: text).
Emphasis: Text (e.g.: text ).
Superscript: text (example: text).
Subscript: text (for example: text).
Italic: Text (e.g.: text).
Underline: text (example: text).
Border style:
The border-style attribute is used to set the style of all borders of an element, or to set the border style for each side individually. The border may appear only if this value is not none.