中心标签仍然有效吗? [英] Is the center tag still valid?
问题描述
我主要使用HTML < center>
标记来居中大多数对象。我只是想确认标签是否仍然有效?
I mostly use the HTML <center>
tag to center most of my objects. I just wanted to confirm if the tag is still valid or not?
推荐答案
虽然我同意其他答案,但我不同意同意w3schools是……很好的一个很好的来源。查找数据时,请查看规范本身:
While I agree with the other answers, I don't agree w3schools is a good source for...well, anything really. Look to the specification itself when looking for data:
CENTER元素与指定<一个带有
DIV 元素/www.w3.org/TR/html4/present/graphics.html#adef-align rel = noreferrer> align 属性设置为中心。 CENTER 元素是已弃用 。
The CENTER element is exactly equivalent to specifying the DIV element with the align attribute set to "center". The CENTER element is deprecated.
它仍然有效吗?不,(但是它起作用,这是一个不同的问题),自HTML4以来已被弃用-从语义上讲,它不与其他元素内联。
Is it still valid? Nope (but it works, that's a different question), it's been deprecated since HTML4 - semantically it's just not inline with other elements.
这篇关于中心标签仍然有效吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!