首页
极刻
圈子
教程
开源
极客社区
写文章
发极刻
建圈子
发项目
登录 / 注册
返回教程:HTML 教程
TRY RUN / 在线示例
HTML 尝试一下: 旧版HTML来设置背景方式
HTML 尝试一下: 旧版HTML来设置背景方式
源代码
运行
<!DOCTYPE html> <html> <body bgcolor="yellow"> <h2>This is a heading</h2> <p>This is a paragraph.</p> <p>The old bgcolor attribute only works on the body element.</p> <p>For future proof HTML, use styles instead:</p> </body> </html>
运行结果