The difference between css and div: 1. The div tag can define a partition or section in the document, which is used to define a separated block or a region in the HTML document; 2. CSS is a method used to express Computer languages for file formats such as HTML or XML.
(Recommended tutorial: css video tutorial)
div is an html tag## The
#CSS refers to Cascading Style Sheet
CSS is a computer language used to express the style of documents such as HTML or XML. CSS can not only statically modify web pages, but can also cooperate with various scripting languages to dynamically format various elements of web pages. CSS can perform pixel-level precise control over the layout of element positions in web pages, supports almost all font size styles, and has the ability to edit web page objects and model styles. div syntax:<div>内容</div>
.abc{设置CSS格局} #bbb{配置CSS花样}
<div class="abc">内容</div> <div id="bbb">内容</div>
<div>内容</div>
div{font-size:20px}
The above is the detailed content of What is the difference between css and div. For more information, please follow other related articles on the PHP Chinese website!