Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What are the basic HTML tags?
What are the basic HTML tags?

HTML basic tags:

b tag: bold, double tags

i tag: italic, double tags

del tag: Strikethrough, double tags

p tag: paragraph tag, double tag, p tag has only one align attribute, which has four values: left, right, center, and justif, which are used to align text

Note: It is not recommended to use the align attribute. It is recommended to use the text-align style instead. CSS syntax: < p style="text-align:center;">Content

hr tag: Horizontal line label, a single label, its attributes include color (horizontal line color), noshade (set the color of the horizontal line to a solid color instead of a shaded color), size (horizontal line height, unit: pixels), width (horizontal line width, unit: pixels) or %) and align, whose attribute values ??include left, right and center

hn tag: title tag, double tag, n value is 1~6, among which < h1> < /h1> is defined The largest title; there is only one align attribute, and its value is the same as the align attribute of the p tag. However, it is not recommended to use this align attribute. It is recommended to use the text-align style instead. For its usage, see p tag

img tag: Image tag, a single tag, this tag has two required attributes: src attribute (image URL) and alt attribute (replacement text when the image does not exist), as well as some other attributes, commonly used ones are:

1.height and width: Set the height and width of the image in pixels or % (note: only one of the two can achieve proportional scaling, and using them at the same time may deform the image)

2. title: Set the information displayed when the mouse moves over the element, (note: any tag has a title attribute, which is not unique to the img tag)

a tag: The attribute has href for specifying the page to open. , target is used to specify in which window to open the page

ol tag: ordered list tag, double tag, with two attributes: type and start, type is used to specify the number type of the ol sub-tag li, default It can be a number, or it can be a letter, Arabic numeral or Roman numeral; start is used to specify the starting point of the ol sub-tag li serial number, the default is 1, and it must be an integer number.

ul tag: unordered list tag, double tag, with type attribute. This attribute is used to specify the number type of ul sub-tag li. The default is a solid circle, and its value can be disc (solid circle). circle (hollow circle), square (solid square)