Tài liệu HTML & CSS: The Complete Reference- P7 doc

50 431 0
Tài liệu HTML & CSS: The Complete Reference- P7 doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

276 P a r t I : C o r e M a r k u p 276 P a r t I : C o r e M a r k u p <img> (Image) This element indicates a media object to be included in an (X)HTML document. Usually, the object is a bitmap graphic image, but some implementations support movies, vector formats, and animations. Standard Syntax <img align="bottom | left | middle | right | top" (transitional only) alt="alternative text" border="pixels" (transitional only) class="class name(s)" dir="ltr | rtl" height="pixels" hspace="pixels" (transitional only) id="unique alphanumeric identifier" ismap="ismap" lang="language code" longdesc="URL of description file" name="unique alphanumeric identifier" style="style information" title="advisory text" usemap="URL of map file" vspace="pixels" (transitional only) width="pixels"> Other Common Attributes align="absbottom | absmiddle | baseline | texttop" lowsrc="URL of low-resolution image" tabindex="number" Attributes Introduced by HTML5 accesskey="spaced list of accelerator key(s)" contenteditable="true | false | inherit" contextmenu="id of menu" data-X="user-defined data" draggable="true | false | auto" hidden="hidden" itemid="microdata id in URL format" itemprop="microdata value" itemref="space-separated list of IDs that may contain microdata" itemscope="itemscope" itemtype="microdata type in URL format" spellcheck="true | false" tabindex="number" Attributes Defined by Internet Explorer accesskey="key" (5.5) datafld="name of column supplying bound data" (4) datasrc="id of data source object supplying data" (4) Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 277 C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 277 PART I dynsrc="URL of movie" (4) galleryimg="yes | no | true | false" (6) hidefocus="true | false" (5.5) language="javascript | jscript | vbs | vbscript" (4) loop="infinite | number" (4) start="fileopen | mouseover" (5) unselectable="on | off" (5.5) HTML 4 Event Attributes onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup HTML5 Event Attributes onabort, onblur, oncanplay, oncanplaythrough, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, onformchange, onforminput, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreadystatechange, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, onvolumechange, onwaiting Events Defined by Internet Explorer onabort, onactivate, onafterupdate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate, onbeforeeditfocus, onbeforepaste, onbeforeupdate, onblur, onclick, oncontextmenu, oncontrolselect, oncopy, oncut, ondblclick, ondeactivate, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerrorupdate, onfilterchange, onfocus, onfocusin, onfocusout, onhelp, onload, onlosecapture, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onmove, onmoveend, onmovestart, onpaste, onpropertychange, onreadystatechange, onresize, onresizeend, onresizestart, onselectstart, ontimeerror Element-Specific Attributes align This attribute controls the horizontal alignment of the image with respect to the page. The default value is left. Many browsers, such as Netscape and Internet Explorer implementations, support the absbottom, absmiddle, baseline, and texttop values. This attribute is deprecated under strict variants of (X)HTML as well as HTML5. alt This attribute contains a string to be displayed instead of the image for browsers that cannot display images. border This attribute indicates the width, in pixels, of the border surrounding the image. HTML5 suggests the element should not be used other than to set a value of 0, as CSS should be used instead. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 278 P a r t I : C o r e M a r k u p 278 P a r t I : C o r e M a r k u p dynsrc In the Microsoft implementation, this attribute indicates the URL of a movie file and is used instead of the src attribute. Common formats used here are .avi (Audio-Visual Interleaved), .mov (QuickTime), and .mpg and .mpeg (Motion Picture Experts Group). Be careful, because support of this attribute beyond Internet Explorer 6 is suspect and security settings may restrict it. galleryimg This Microsoft attribute is used to control whether the gallery image menu should appear when the mouse pointer hovers over an image. The default value is true or yes. A value of no or false suppresses the menu. A meta tag like <meta http-equiv="imagetoolbar" content="no"> can be used to suppress the image toolbar document-wide. This attribute is rendered obsolete in later versions of Internet Explorer (7+). ismap This attribute indicates that the image is a server-side image map. User mouse actions over the image are sent to the server for processing. longdesc This attribute specifies the URL of a document that contains a long description of the image. This attribute is used as a complement to the alt attribute. loop In the Microsoft implementation, this attribute is used with the dynsrc attribute to cause a movie to loop. Its value is either a numeric loop count or the keyword infinite. Later versions of Internet Explorer suggest using –1 to indicate infinite. Since it is related to dynsrc, the use of <img> to play movies does not work past Internet Explorer 6 unless security settings are modified. lowsrc This nonstandard attribute, supported in most browsers, contains the URL of an image to be initially loaded. Typically, the lowsrc image is a low-resolution or black-and- white image that provides a quick preview of the image to follow. Once the primary image is loaded, it replaces the lowsrc image. name This common attribute is used to bind a name to the image. Older browsers understand the name field, and, in conjunction with scripting languages, it is possible to manipulate images by their defined names to create effects such as “rollover” buttons. Under modern versions of HTML and XHTML, the id attribute should be used as an element identifier for scripting and style application. The name attribute can still be used for backward compatibility. src This attribute indicates the URL of an image file to be displayed. Most browsers will display .gif, .jpeg, and .png files directly. Older formats like .bmp, .xpm (X Bitmap), and .xpm (X Pixelmap) are also commonly supported, though their use is never recommended. Some modern browsers may support .svg (Scalable Vector Graphics) files as well with the img element. start In the Microsoft implementation, this attribute is used with the dynsrc attribute to indicate when a movie should play. The default value, if no value is specified, is to play the video as soon as it has finished loading. This can be explicitly set with a value of fileopen. Alternatively, a value of mouseover can be set to play the move once the user has moved their mouse over the video. This, like other dynsrc features, may not work past Internet Explorer 6 browsers because of security changes. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 279 C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 279 PART I usemap This attribute makes the image support client-side image mapping. Its argument is a URL specifying the map file, which associates image regions with hyperlinks. The URL is generally a fragment identifier that references a location in the current document rather than a remote resource. Examples <img src="graham.jpg" alt="Graham Allan" height="320" width="150"> <img src="olivia.jpg" lowsrc="loading.jpg" border="0" height="50%" width="50%" alt="Picture of Olivia" longdesc="olivia-bio.html"> <a href="home.html"><img src="homebutton.png" width="50" height="20" alt="Link to Home Page" /></a> <! xhtml style syntax > <img src="hugeimagemap.gif" usemap="#mainmap" border="0" height="200" width="200" alt="Image Map Here" /> Compatibility HTML 2, 3.2, 4, 4.01, 5 XHTML 1.0, 1.1, Basic Firefox 1+, Internet Explorer 2+, Netscape 1+, Opera 2.1+, Safari 1+ Notes • Typically, when you use the usemap attribute, the URL is a fragment, such as #map1, rather than a full URL. Some browsers do not support external client-side map files. HTML5 makes this statement more strongly than in other specifications. • Under the strict HTML and XHTML definitions, the <img> tag does not support align, border, height, hspace, vspace, and width. The functionality of these attributes should be possible using style sheet rules. • Whereas the HTML 4 specification reserves data-binding attributes such as datafld or datasrc for many elements, they are not specified for <img>; however, Internet Explorer provides support for these attributes. • As an empty element under XHTML or when using XML-style syntax for HTML5, a trailing slash is required for this element: <img />. • Under future versions of XHTML such as 2, <img> may be dropped in favor of <object>. • It should be noted that some core attributes for HTML5, most noticably spellcheck, make little sense within the meaning of this element. <input> (Input Form Control) This element specifies an input control for a form. The type of input is set by the type attribute and can be a variety of different types, including single-line text field, password field, hidden, check box, radio button, or push button. HTML5 extends the possibilities of this form greatly and adds a number of features for browser-based validation without using JavaScript. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 280 P a r t I : C o r e M a r k u p 280 P a r t I : C o r e M a r k u p Standard Syntax <input accept="MIME types" accesskey="character" align="bottom | left | middle | right | top" (transitional only) alt="text" checked="checked" class="class name(s)" dir="ltr | rtl" disabled="disabled" id="unique alphanumeric identifier" lang="language code" maxlength="maximum field size" name="field name" readonly="readonly" size="field size" style="style information" tabindex="number" title="advisory text" type="button | checkbox | file | hidden | image | password | radio | reset | submit | text" usemap="URL of map file" value="field value"> Attributes Introduced by HTML5 autocomplete="on | off" autofocus="autofocus" contenteditable="true | false | inherit" contextmenu="id of menu" data-X="user-defined data" draggable="true | false | auto" form="id of related form element" formaction="URL of form action" formenctype="MIME type of form encoding" formmethod="get | post | put | delete" formnovalidate="true | false" formtarget="name of target frame, region, or window" height="pixels" hidden="hidden" itemid="microdata id in URL format" itemprop="microdata value" itemref="space-separated list of IDs that may contain microdata" itemscope="itemscope" itemtype="microdata type in URL format" list="id of datalist element to get suggestions from" max="maximum value (number)" min="minimum value (number)" multiple="true | false" pattern="validation pattern as regular expression" placeholder="placeholder text" required="required" Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 281 C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 281 PART I spellcheck="true | false" step="float" type= older type values from above| color | date | datetime | datetime-local | email | list | number | month | range | tel | time | url | search | week width="pixels" Attributes Defined by Internet Explorer autocomplete="off | on" (5) (password, text types only) dynsrc="URL of movie" (3) (image type only) language="javascript | jscript | vbs | vbscript" (4) disabled="false | true" (4) (all types except for hidden) hidefocus="true | false" (5.5) height="pixels" (3) (image type only) hspace="pixels or percentage" (3) loop="number" (4) (image type only) lowsrc="URL of low-resolution image" (4) (image type only) unselectable="off | on" (5.5) vspace="pixels or percentage" (3) (image type only) width="pixels" (3) (image type only) Standard Event Attributes onchange, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect HTML5 Event Attributes onabort, onblur, oncanplay, oncanplaythrough, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, onformchange, onforminput, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreadystatechange, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, onvolumechange, onwaiting Events Defined by Internet Explorer onactivate, onafterupdate (checkbox, hidden, password, radio, text), onbeforeactivate (all types except hidden), onbeforecut (all types except hidden), onbeforedeactivate, onbeforeeditfocus, onbeforepaste (all types except hidden), onbeforeupdate (checkbox, hidden, password, radio, text), onblur (all types except hidden), oncontextmenu (all types except hidden), oncontrolselect, oncut (all types except hidden), ondeactivate, ondrag (all types except hidden), ondragend (all types except hidden), ondragenter (all types except hidden), ondragleave (all types except hidden), ondragover (all types except hidden), ondragstart (all types except hidden), ondrop (all types except hidden), onerrorupdate (checkbox, hidden, password, radio, text), onfilterchange (all types except hidden), onfocus, onfocusin (all types except hidden), onfocusout (all types except hidden), onhelp (all types except hidden), onlosecapture, onmouseenter (all types except hidden), onmouseleave (all types except hidden), onmousewheel (all types except hidden), onmove, onmoveend, onmovestart, onpaste (all types except hidden), Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 282 P a r t I : C o r e M a r k u p 282 P a r t I : C o r e M a r k u p onpropertychange, onreadystatechange, onresize (button, file, image, password, reset, submit, text), onresizeend, onresizestart, onselectstart (all types except hidden), ontimeerror Element-Specific Attributes accept This attribute is used to list the MIME types accepted for file uploads when using a file upload control (<input type="file">). align With image form controls (type="image"), this attribute aligns the image with respect to surrounding text. The HTML 4.01 transitional specification defines bottom, left, middle, right, and top as allowable values. Netscape and Microsoft browsers might also allow the use of attribute values such as absbottom or absmiddle. Like other presentation- specific aspects of HTML, the align attribute is dropped under the strict HTML 4.01 specification. alt This attribute is used to display an alternative description of image buttons for text- only browsers. The meaning of alt for forms of <input> beyond type="input" is not defined. autocomplete This Microsoft-specific attribute is used to indicate whether or not the form field should be automatically filled in. The default value is no. HTML5 also supports this attribute. autofocus This HTML5 Boolean attribute is used to indicate that the user agent should immediately focus this form item once its containing window object (usually the document) is made active. It only takes an attribute value of autofocus when using the XML-style syntax for HTML5. It is not defined for <input type="hidden">. checked The checked attribute should be used only for check box (type="checkbox") and radio (type="radio") form controls. The presence of this attribute indicates that the control should be displayed in its checked state. disabled This attribute is used to turn off a form control. Elements will not be submitted, nor will they receive any focus from the keyboard or mouse. Disabled form controls will not be part of the tabbing order. The browser also might gray out the form that is disabled, to indicate to the user that the form control is inactive. This attribute requires no value. dynsrc In the Microsoft implementation, this attribute indicates the URL of a movie file and is used instead of the src attribute for <input type="image">. form This HTML5 attribute should be set to a string that corresponds to the id of the form element that an interactive control such as a button is associated with. This allows form elements in one form to trigger actions in others. formaction This HTML5 attribute specifies a URL to target when the button is clicked, similar to the use of the action attribute on a form element. formenctype This attribute indicates how form data should be encoded before being sent to the server. The default is application/x-www-form-urlencoded. This encoding replaces Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 283 C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 283 PART I blank characters in the data with a plus character (+) and all other nonprinting characters with a percent sign ( %) followed by the character’s ASCII HEX representation. The multipart/form-data option does not perform character conversion and transfers the information as a compound MIME document. This must be used when using <input- type="file"> . It also might be possible to use another encoding, such as text/plain with a mailed form, but in general you should be cautious about changing the enctype. formmethod This HTML5 attribute indicates how form information should be transferred to the server using a particular HTTP method. A get value in the attribute indicates that form data should be appended to the URL specified by the action attribute thus creating a query string. This approach is quite simple but imposes a size limitation that is difficult to gauge (may be as low as 2 kilobytes in real situations). A value of post for this attribute transfers the data of the form in the message body using the HTTP POST method, which imposes no data size limitation. Browsers may allow for other HTTP methods like delete or put, as suggested by the HTML5 specification, but so far such usage is rare. The POST method must be used when file attachments are used in a form. formnovalidate This HTML5 Boolean attribute is used to indicate a form should not be validated during submission. It is false by default but may be controlled either on the button directly or on a containing or related form. Initially this was simply known as novalidate. formtarget This HTML5 attribute is set to the name of a window or frame that the button will target the result of action; in other words, where the result should appear. This action is similar to the target attribute on <a> and <form> tags. Initially, this attribute was simply target in early drafts of HTML5. height Defined under HTML5, though commonly supported in older browsers, this attribute is used to size an input element particularly when images are used as in <input type="image"> . CSS properties are preferred. hspace This Internet Explorer–specific attribute indicates the horizontal space, in pixels, between the image and surrounding text when using <input type="image">. list The HTML5 list attribute is used to set the id of a datalist element used to provide a predefined list of options suggested to the user for entry. loop In the Microsoft implementation, this attribute is used with <input type="image"> and the dynsrc attribute to cause a movie to loop. Its value is either a numeric loop count or the keyword infinite. Later versions of Internet Explorer suggest using –1 to indicate infinite. lowsrc This Microsoft-supported attribute contains the URL of an image to be initially loaded when using <input type="image">. Typically, the lowsrc image is a low- resolution or black-and-white image that provides a quick preview of the image to follow. Once the primary image is loaded, it replaces the lowsrc image. max This HTML5 attribute should be set to a numeric value that is the high range allowed in the form control. The min attribute sets the low range. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 284 P a r t I : C o r e M a r k u p 284 P a r t I : C o r e M a r k u p maxlength This attribute indicates the maximum content length that can be entered in a text form control (type="text"). The maximum number of characters allowed differs from the visible dimension of the form control, which is set with the size attribute. min This HTML5 attribute should be set to a numeric value that is the low range allowed in the form control. The max attribute sets the high range. multiple This HTML5 Boolean attribute, when set to true, indicates that multiple values are allowed for the field. name This attribute allows a form control to be assigned a name to set as the name/value pair value sent to the server. Traditionally, this value was also used for reference by a scripting language, but using the id value is more appropriate. However, given that browsers sometimes favor the older syntax, both may often be used and set to the same value, with some limitations, particularly with radio buttons. pattern This HTML5 attribute specifies a regular expression against which the field should be validated. The title attribute should be provided when this attribute is used, to give an indication of what is an acceptable pattern and what isn’t. placeholder This HTML5 attribute specifies a short bit of text that is used to help the user figure out what type of information to fill in for a form control. Likely, the text will be placed in the field and cleared upon focus. readonly This attribute prevents the form control’s value from being changed. Form controls with this attribute set might receive focus from the user but not permit the user to modify the value. Because it receives focus, a readonly form control will be part of the form’s tabbing order. The control’s value will be sent on form submission. This attribute can be used only with <input> when type is set to text or password. The attribute also is used with the textarea element. required The presence of this HTML5 Boolean attribute indicates that the form field must be set in order for form submission to proceed. User agents that understand this should set the CSS pseudo-class :invalid when the field goes into error. size This attribute indicates the visible dimension, in characters, of a text form control (type="text"). This differs from the maximum length of content, which can be entered in a form control set by the maxlength attribute. src This attribute is used with image form controls (type="image") to specify the URL of the image file to load. step This HTML5 attribute defines the step in which values can take; for example, by twos (2, 4, 6…) or tens (10, 20, 30…). It is generally used in range controls. tabindex This attribute takes a numeric value that indicates the position of the form control in the tabbing index for the form. Tabbing proceeds from the lowest positive tabindex value to the highest. Negative values for tabindex will leave the form control out of the tabbing order. When tabbing is not explicitly set, the browser tabs through items in the Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 285 C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e 285 PART I order they are encountered. Disabled form fields will not be part of the tabbing index, although read-only controls will be. type This attribute specifies the type of the form control. A value of button indicates a general-purpose button with no well-defined meaning. However, an action can be associated with the button by using an event handler attribute, such as onclick. A value of checkbox indicates a check box control. Check box form controls have a checked and unchecked setting, but even if these controls are grouped together, they allow a user to select multiple check boxes simultaneously. In contrast, a value of radio indicates a radio button control. When grouped, radio buttons allow only one of the many choices to be selected at a given time. A form control type of hidden indicates a field that is not visible to the viewer but is used to store information. A hidden form control often is used to preserve state information between pages. A value of file for the type attribute indicates a control that allows the viewer to upload a file to a server. The filename can be entered in a displayed field, or a user agent might provide a special browse button that allows the user to locate the file. A value of image indicates a graphic image form control that a user can click on to invoke an associated action. (Most browsers allow the use of img-associated attributes such as height, width, hspace, vspace, and alt when the type value is set to image.) A value of password for the type attribute indicates a password entry field. A password field will not display text entered as it is typed; it might instead show a series of dots. Note that password-entered data is not transferred to the server in any secure fashion. A value of reset for the type attribute is used to insert a button that resets all controls within a form to their default values. A value of submit inserts a special submission button that, when clicked, sends the contents of the form to the location indicated by the action attribute of the enclosing <form> tag. Lastly, a value of text (the default) for the type attribute indicates a single-line text input field. HTML5 expands greatly on this attribute’s possible values, specifying search, url, email, tel, datetime, date, month, week, time, datetime-local, number, range, and color as well. Likely there will be others. Many of these ideas derived from the Web Forms 2.0 specification, which Opera implements partially. WebKit also implements a select number of these form field types. Likely other browsers will quickly follow suit. usemap This HTML 4.0 attribute is used to indicate the map file to be associated with an image when the form control is set with type="image". The value of the attribute should be a URL of a map file but generally will be in the form of a URL fragment referencing a map file within the current file. value This attribute has two different uses, depending on the value for the type attribute. With data-entry controls (type="text" and type="password"), this attribute is used to set the default value for the control. When used with check box or radio button form controls, this attribute specifies the return value for the control. If it is not set for these fields, a default value of on will be submitted when the control is activated. vspace This Internet Explorer–specific attribute indicates the vertical space, in pixels, between the image and surrounding text when using <input type="image">. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. [...]... reference to the last document in a collection HTML5 license A reference to the legal or copyright information for the current document’s content Similar to the copyright value HTML5 next The link references the next document to visit in a linear collection of documents It can be used, for example, to “prefetch” the next page,... references a document that is a chapter in a site or collection of documents HTML 4 contents The link references a document that serves as a table of contents, most likely for the site, although it might be for the document HTML 4 copyright The link references a page that contains a copyright statement for the current document... help The link references a help document for the current document or site HTML 4, 5 icon A reference to an icon to represent the current resource as potentially for some bookmarking or saving routine HTML5 index The link references a page that provides an index for the current document HTML. .. href="frenchintro html" rel="alternate" lang="fr"> HTML 4, 5 appendix The link references a document that serves as an appendix for a document or site HTML 4 archives A reference to document(s) of historical interest HTML5 author A reference to information about the document’s author HTML5 chapter The. .. Chapter 3: HTML and XHTML Element Reference 287 Notes • The HTML 4.01 specification also reserves the use of the datafld, dataformatas, and datasrc data-binding attributes They were not included in the XHTML specification but are supported by Internet Explorer • Use of autocomplete may have security implications Use with caution • Under the strict HTML and XHTML specifications, the align attribute is... section The link references a document that is a section in a site or collection of documents HTML 4 sidebar Specifies a URL that should be displayed in a browser sidebar HTML5 start The link references the first document in a set of documents HTML 4 stylesheet The link references an... This is by far the most common use of and the most widely supported in browsers HTML 4, 5 subsection The link references a document that is a subsection in a collection of documents HTML 4 tag Gives a tag that applies to the document HTML5 up Provides a link to a document or section... Regardless of the prefetch method, be careful not to disrupt the load or use of a currently viewed page with preloading, and be mindful that you may be wasting bandwidth on requests that are never used rev The value of the rev attribute shows the relationship of the current document to the linked document, as defined by the href attribute The attribute thus defines the reverse relationship compared to the value... copyright statement for the current document HTML 4 first A reference to the first document in a collection HTML5 glossary The link references a document that provides a glossary of terms for the current document HTML 4 TABLE 3-22 Possible rel Values (continued) . for="username">Name</label></td> <td><input type="text" id="username"></td> </tr> </table> </form> Compatibility HTML. list="dogs"></label></p> <datalist id="dogs"> <option>Angus</option> < option>Tucker</option>

Ngày đăng: 21/01/2014, 09:20

Mục lục

  • 0071496297

  • Contents

  • Acknowledgments

  • Introduction

  • Part I: Core Markup

    • 1 Traditional HTML and XHTML

      • First Look at HTML and XHTML

      • Hello HTML and XHTML World

      • HTML and XHTML: Version History

      • HTML and XHTML DTDs: The Specifications Up Close

      • (X)HTML Document Structure

      • Browsers and (X)HTML

      • The Rules of (X)HTML

      • Major Themes of (X)HTML

      • The Future of Markup—Two Paths?

      • Summary

      • 2 Introducing HTML5

        • Hello HTML5

        • Loose Syntax Returns

        • XHTML5

        • HTML5: Embracing the Reality of Web Markup

        • Presentational Markup Removed and Redefined

        • HTML5 Document Structure Changes

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan