參考網址:https://www.w3schools.com/html/html_attributes.asp
HTML的 < > _____ </ > 以及 < > 代表元素,
而在元素中間卻可以新增新的一個值,來替元素附加/新增其他資訊上去
這種附加內容便稱為 attribute 屬性
All HTML elements can have attributes
所有 HTML 元素都可以具有屬性
Attributes provide additional information about elements
屬性提供有關元素的其他資訊
Attributes are always specified in the start tag
屬性始終在開始標記中指定
Attributes usually come in name/value pairs like: name="value"
屬性通常以名稱/值對的形式出現,例如:name=“value”
以下是屬性需要注意的注意事項:
接下來介紹常用屬性
附加在<a>元素底下的,定義超連結的一種屬性,能夠定義後始連結轉接到指定地址。