【CSS】Beginner1:Applying CSS

本文介绍了CSS(层叠样式表)的三种应用方式:内联样式、内部/嵌入样式及外部样式。详细解释了每种方式的特点及适用场景,并强调了最佳实践建议避免使用内联样式,以保持HTML文档的独立性和易维护性。
CSS(Cascading Style Sheets)
 
1.Applying CSS
Three ways:
1.In-line
2.Internal
3.External
 
2.In-line
style attribute
The best-practice approach is that the HTML should be a stand-alone, presentation freedocument, and so in-line styles should be avoided wherever possible
 
3.Internal/Embedded
    Used for the whole page
    Inside  head element
    Style tag surround all of the styles for the pages
 
4.External
    Used for the whole multiple-page website
    inside head element
    

转载于:https://www.cnblogs.com/yzhen/p/3657376.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值