tags **** .. highlight:: html Anchor ====== Also see *links* below... :: This is the location of anchor one. CDATA ===== CDATA sections in XML In an XML document or external parsed entity, a CDATA section is a section of element content that is marked for the parser to interpret as only character data, not markup. A CDATA section starts with the following sequence:: All characters enclosed between these two sequences are interpreted as characters, not markup or entity references. For example, in a line like this:: John Smith the opening and closing "sender" tags are interpreted as markup. However, if written like this:: John Smith]]> then the code is interpreted the same as if it had been written like this:: <sender>John Smith</sender> Comment ======= http://www.webheadstart.org/xhtml/comments/:: ====== http://www.w3schools.com/tags/tag_base.asp The base element specifies a base URL for all the links in a page. Differences Between HTML and XHTML: - In HTML the ```` tag has no end tag. - In XHTML the ```` tag must be properly closed. **Note:** The ```` tag must go inside the head element. Example ------- Assume that the absolute address for an image is:: Now we insert the ```` tag, which specifies a base URL for all of the links in a page, in the head section of a page:: When inserting images on the page in the example above, we just have to specify the relative address, and the browser will look for that file using the full URL (http://www.w3schools.com/images/smile.gif):: ======= - http://www.devguru.com/Technologies/html/quickref/html_other_tags.html - http://www.webreference.com/js/column20/embed.html The easiest and "most supported" way to add video or sound to your web site is to include the special HTML tag called EMBED. This causes the browser itself to include controls for the multimedia. No ActiveX, Java, VBscript or JavaScript is needed for this method. Note: Not recognized by the W3C HTML version 4.01 standard. hr == Use this tag to display lines across the screen::
Note: the horizontal rule tag has no ending tag like the line break tag. img === :: Angry face The ``width`` and ``height`` attributes are optional but strongly recommended as they help the browser arrange the page more quickly:: input ===== The *input* tag defines the start of an input field where the user can enter data. In HTML the ``input`` tag has no end tag. In XHTML the ``input`` tag must be properly closed::
First name:


**Note**: Only form elements with a ``name`` attribute will have their values passed when submitting a form. hidden ------ :: label ===== :: Note: Using the ``for`` attribute will make your form more accessible to screen readers etc. For more information see: `Use the label element to make your HTML forms accessible`_. Links (URL) =========== Links_:: chapter two. To open the page in another tab, use the ``target`` attribute:: We are not open during English public holidays. Also see *anchor* above... a link defined in the file "``two.html``" in the same directory as "``one.html``" would refer to the anchor as follows:: anchor one. To ask that the browser download the file rather than open it:: Download email ----- :: me@server.com select ====== (drop down list box):: - the ``value`` attribute indicates what is sent to the server. - ``selected`` specifies that the option will be displayed first in the list. Note: If you don't give the ``select`` control a ``name``, then no value will be posted. Table ===== ::
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2
Note: Table headers are with the ``th`` tag e.g::
Header 1 Header 2
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2
Align ----- :: 100 Width ----- :: Text Area ========= Defines a text-area (a multi-line text input control):: .. _Links: http://www.w3.org/TR/html401/struct/links.html .. _`Use the label element to make your HTML forms accessible`: http://www.456bereastreet.com/archive/200711/use_the_label_element_to_make_your_html_forms_accessible/