在网页中使用链接样式文件“css_file.css”的正确语句是______。
- A<include rel=stylesheet type="text/css"href="css_file.css">
- B<link rel=stylesheet type="text/css"href="css_file.css">
- C<import rel=stylesheet type="text/css"href="css_file.css">
- D<use rel=stylesheet type="text/css"href="css_file.css">
参考答案
B
答案解析
本题考查级联样式表(CSS)的基础知识。CSS又称为“风格样式表(Style Sheet)”,它是用来进行网页风格设计的。通过设立样式表,可以统一地、有效地控制网页外观。有三种方法可以在站点网页上使用样式表:①外部样式:将网页链接到外部样式表。一般链接的语句形式为: ②内页样式:在网页上创建嵌入的样式表。③行内样式:应用内嵌样式到各个网页元素。