Home  >  Article  >  Web Front-end  >  Html block-level elements and row-level elements_html/css_WEB-ITnose

Html block-level elements and row-level elements_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:46:211163browse

Reprinted: http://blog.csdn.net/yuyanqiao/article/details/8558118

Inline element (inline element)
* a - anchor
* abbr - abbreviation
* acronym - first character
* b - bold (not recommended)
* bdo - bidi override
* big - big font
* br - line break
* cite - citation
* code - computer code (required when citing source code)
* dfn - definition field
* em - emphasis
* font - font setting (not recommended)
* i - italic
* img - image
* input - input box
* kbd - define keyboard text
* label - table label
* q - short quote
* s - underscore (not recommended)
* samp - define sample computer code
* select - project selection
* small - small font text
* span - common inline container, definition text Inner block
* strike - center line
* strong - bold emphasis
* sub - subscript
* sup - superscript
* textarea - multi-line text input box
* tt - Teletype text
* u - Underline
* var - Define variable

block element (block element)
* address - address
* blockquote - block quote
* center - center alignment block
* dir - directory list
* div - commonly used block level is also the main tag of CSS layout
* dl - definition list
* fieldset - form control group
* form - interactive form
* h1 - headline
* h2 - subtitle
* h3 - level 3 title
* h4 - Level 4 heading
* h5 - Level 5 heading
* h6 - Level 6 heading
* hr - Horizontal separator line
* isindex - input prompt
* menu - Menu list
* noframes - frames optional content, (display this block content for browsers that do not support frames
* noscript -) optional script content (display this content for browsers that do not support script)
* ol - Sorted form
* p - Paragraph
* pre - Formatted text
* table - Table
* ul - Unsorted list

Commonly usedInline elements should be remembered: a, span, img, input, label, select, strong, textarea

Commonly used block-level elements should be remembered Live: div, h1~h6, dl, ul, ol

For example, in a title, there are titles, visits, and more, where the title is controlled by h4, More links are . If you want them to be in a row, you need to set h4's display:inline;