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

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.

主站蜘蛛池模板: 涞水县| 雅安市| 历史| 安化县| 崇仁县| 贡山| 博野县| 阳山县| 饶河县| 郧西县| 扎囊县| 黄浦区| 丹巴县| 房产| 瑞昌市| 静海县| 大方县| 河东区| 孝昌县| 呈贡县| 张北县| 余姚市| 丽水市| 临桂县| 丹凤县| 原阳县| 闵行区| 宁强县| 卢氏县| 木兰县| 保定市| 北宁市| 安化县| 高安市| 清河县| 凤城市| 神池县| 晋江市| 新沂市| 当涂县| 阳原县|