Analyze the basic knowledge of HTML DIV
This article mainly introduces "analyzing HTML basic knowledge DIV". In daily operation, I believe many people have doubts about analyzing HTML basic knowledge DIV. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "analyzing HTML basic knowledge DIV". Next, please follow the editor to study!
1. HTML block elements
Most HTML elements are defined as block-level or inline elements
When an element is displayed in a browser, it usually starts and ends with a new line
Such as:
, etc. Label
II. HTML inline elements
Inline elements do not usually start with a new line when displayed
For example,
, wait for the label
III. Div element
Elements in HTML are block-level elements, which are containers that can be used to combine other HTML elements
-tags define a delimited block or a section of an area in an HTML document
Elements are often used with CSS to lay out web pages
4. The use of div without title document. All {width:500px; height:500px; margin:0 auto; background-color:#000;} .one {height:100px; background-color:#89E1BF;} .two {height:100px; background-color:#DEE099;} .three {height:100px Background-color:#D7A1CE;}
The demo effect is shown in the figure:
At this point, the study of "analyzing the basic knowledge of HTML DIV" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!