什么是 HTML 标签“div”的缩写?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1350133/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 00:44:55  来源:igfitidea点击:

What is the HTML tag "div" short for?

html

提问by cdmckay

What is the div in the <div>tag short for? Is it "division"? I've looked around Google and SO and haven't found an answer.

<div>标签中的 div 是什么 缩写?是“分”吗?我环顾了谷歌和 SO 并没有找到答案。

回答by jrista

Division. The DIV tag is is designed to allow you to define "divisions"of a page (or to "dividea page into logical containers").

分配。DIV 标签旨在允许您定义页面的“划分”(或“页面划分为逻辑容器”)。

回答by jrista

Bear in mind that the definition of div is completely different in HTML5.

请记住,div 的定义在 HTML5 中完全不同。

The div element has no special meaning at all. It represents its children.

div 元素根本没有特殊意义。它代表它的孩子。

http://www.w3.org/TR/html5/grouping-content.html#the-div-element

http://www.w3.org/TR/html5/grouping-content.html#the-div-element