如何在HTML文档中使用CSS文档内联的代码
我想使用HTML创建一个联系人页面(不允许使用CSS文档),然后我找到了我想要的内容,但是代码是在2个文档中编写的,HTML代码是用HTML文档编写的,样式在CSS中,文档。我正在寻找一种在HTML文档中使用CSS代码内联的方法。你能帮我吗?
I wanted to create a contact-us page with HTML(no CSS document is allowed to use), then I found what I wanted but the code is written in 2 documents, HTML code is written in HTML document and the styles are in the CSS document. I'm looking for a way to use the CSS codes inline in the HTML document. Could you help me, please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您将需要使用这样的样式标签:
< style> </style>
,内部将进入CSS。最好将CSS放在单独的文件中以使代码看起来更干净
You will want to use a style tag like this:
<style> </style>
and inside will go the CSS.It's good practice to keep your CSS in a seperate file to make the code look cleaner