您现在的位置: 万盛学电脑网 >> 程序编程 >> 网页制作 >> Html5 >> 正文

htmlhr颜色怎么改变呢

作者:佚名    责任编辑:admin    更新时间:2022-06-22

我们为大家收集整理了关于htmlhr颜色,以方便大家参考。

一、定义与用法

标签可以插入水平线

二、在HTML和XHTML中的区别

在HTML中

标签不需要结束标签

在XHTML中

标签必须合理的关闭 实例:This

is some text This is some text

在HTML4.01中所有与hr有关的属性都不再被推荐使用

在XHTML1.0严密型DTD中不支持所有有关hr元素的属性

三、标准属性

id, class, title, style, dir, lang, xml:lang

四 事件属性

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove,

onmouseout, onkeypress, onkeydown, onkeyup

希望大家可以学会htmlhr颜色.想了解更多精彩内容,请关注我们的网站!

相关推荐:

排版所有html标记介绍