官术网_书友最值得收藏!

Embedded style sheets

Instead of using the best type of style sheet, the external style sheet, we can also write our rule sets in the head of HTML documents. This is called an embedded style sheet. There are plenty of reasons for not doing it this way. The main two reasons are that it hampers the workflow, and it only controls a single page of the site. What we would do is simply create somewhere in the head tag, these open and close <style> tags:

<head>
<style> </style>
</head>

Anywhere inside this open <style> tag we can start adding our rule sets, which will only affect this one page:

<head>
<style> h2 { font-size: 50px;
} </style>
</head>

Again, this isn't the most preferred place to write your styles. Keeping them in an external style sheet will, 99 percent of the time, be the best place, but you do have the option of embedding styles in the head tag of your document.

主站蜘蛛池模板: 信阳市| 五峰| 内丘县| 法库县| 特克斯县| 迭部县| 沛县| 景东| 景东| 安丘市| 竹山县| 宁武县| 凯里市| 德兴市| 克拉玛依市| 津南区| 云阳县| 光泽县| 东光县| 鱼台县| 北辰区| 佛山市| 类乌齐县| 靖西县| 威宁| 鹤山市| 松原市| 封开县| 从江县| 石嘴山市| 古田县| 建水县| 庆元县| 汉源县| 碌曲县| 祁连县| 涡阳县| 互助| 伊宁县| 岱山县| 临安市|