An external style sheet is ideal when the style is applied to many pages. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section.




備注:每個引用外部樣式表的HTML文件都會通過一個<link>標簽指向該樣式表文件,該<link>標簽必須位于<head></head>內部
二、HTML中的內部樣式表(Internal Style Sheet):
An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section with the <style> tag.






備注:內部樣式表用于需要對單一HTML文件的樣式進行控制時,通過在<head></head>元素中插入<style></style>達到目的
三、HTML中的內嵌樣式表(Inline Styles):
An inline style should be used when a unique style is to be applied to a single occurrence of an element.To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property.



備注:內嵌樣式表用于需要對HTML文件中的某個元素外觀進行微調時,通過在該HTML元素中制定style屬性的值達到目的
-------------------------------------------------------------
生活就像打牌,不是要抓一手好牌,而是要盡力打好一手爛牌。