您的位置 首页 技术

html中表示内嵌css样式的标记是什么?

html中表示内嵌css样式的标记是什么? html中表示内嵌css样式的标记是<style type="text/css"></style&…

html中表示内嵌css样式的标记是什么?

html中表示内嵌css样式的标记是<style type="text/css"></style>

把css写入html文件内部,称为嵌入式Embedding(也叫内页样式),即在网页上创建嵌入的样式表。

内部样式表如下:

<head><style type="text/css">      body {background-color: red}      p {margin-left: 20px}</style>  </head>

当单个文件需要特别样式时,就可以使用内部样式表。可以在 head 部分通过 <style> 标签定义内部样式表。

推荐教程: 《HTML教程》

以上就是html中表示内嵌css样式的标记是什么?的详细内容,更多请关注24课堂在线网其它相关文章!

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/83420.html

为您推荐

返回顶部