html2 - HTML2 BingLi 1 EmptyHTMLElements nocontentelements e.g.<br><hr> <br\/> 2 HTMLComment Syntax <!HTMLComment> ConditionalComment <[ifIE9]> <[endif]>

html2 - HTML2 BingLi 1 EmptyHTMLElements nocontentelements...

This preview shows page 1 - 8 out of 30 pages.

HTML 2 Bing Li 1
Empty HTML Elements no content elements e.g. <br> <hr> can be closed in opening tag <br /> HTML 5 does not require empty elements to be closed 2
HTML Comment Syntax <!‐‐ HTML Comment ‐‐> Conditional Comment <!‐‐[if IE 9]‐‐> ... <!‐‐[endif]‐‐> 3
HTML Attributes HTML elements can have attributes Provide Additional information In the start tag "name=value" HTML tags are not case sensitive e.g. <p> = <P> title = TITLE < p title =" Tooltip ">Attributes example</ p > Attributes example 4
Quotes in Attributes HTML 5 does not require Some time necessary < p title = Tooltip One >Attributes example</ p > Both single and double quotes 5
Some Attributes Attribute Description alt Specifies an alternative text for an image, when the image cannot be displayed disabled Specifies that an input element should be disabled href Specifies the URL (web address) for a link id Specifies a unique id for an element src Specifies the URL (web address) for an image style Specifies an inline CSS style for an element title Specifies extra information about an element (displayed as a tool tip) 6
HTML Links Syntax < a href = " url ">link text</ a > e.g.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture