source: www/manuals/HTML_Reference/text_formatting/comm.htm@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 5.0 KB
Line 
1<HTML>
2<!-- This file is part of the HTML Reference Library ('HTMLib') -->
3<!-- It should not be used outside of the HTMLib package -->
4<!-- The HTMLib is © 1995-1998 Stephen Le Hunte -->
5<!-- htmlib@htmlib.demon.co.uk -->
6<HEAD>
7<LINK REL="stylesheet" HREF="../style.css" TYPE="text/css">
8<TITLE>&lt;COMMENT&gt;</TITLE>
9</HEAD>
10<BODY TOPMARGIN="0" BGCOLOR="#FFFFE0" TEXT="#000000">
11
12<CENTER>
13<SPAN CLASS="NSRtitle">&lt;COMMENT...&gt;</SPAN>
14</CENTER>
15
16<P>The <CODE>&lt;COMMENT&gt;</CODE> element can be used to 'comment' out text. As such, it is similar to the <CODE><A HREF="../Text_Formatting/comment.htm">&lt;!-- ... --&gt;</A></CODE> element.
17
18<P>Any text placed between the <CODE>&lt;COMMENT&gt;</CODE> and <CODE>&lt;/COMMENT&gt;</CODE> elements will not render on the screen, allowing comments to be placed in HTML documents.
19
20<SPAN CLASS="egcode">
21<BLOCKQUOTE>
22<CODE><STRONG>&lt;COMMENT&gt;</STRONG>This text won't render.<BR>
23 I can say what I like here, <BR>
24 it wont appear<STRONG>&lt;/COMMENT&gt;</STRONG><BR>
25</CODE>
26</BLOCKQUOTE>
27</SPAN>
28
29<P>Would not render on the screen.
30
31<P><STRONG><EM>NOTE : </EM></STRONG>This element is only supported by the <STRONG>Internet Explorer</STRONG> and <STRONG>Mosaic.</STRONG>
32
33<P><A NAME="TITLE"><SPAN CLASS="attr">TITLE</SPAN></A>="informational ToolTip"<BR>
34The <STRONG>Internet Explorer</STRONG> 4.0 (and above) specific <CODE>TITLE</CODE> attribute is used for informational purposes. For the <CODE>&lt;COMMENT&gt;</CODE> element, the <CODE>TITLE</CODE> attribute maybe useful for providing information to authors.
35
36<P><A NAME="LANG"><SPAN CLASS="attr">LANG</SPAN></A>="language setting"<BR>
37The <CODE>LANG</CODE> attribute can be used to specify what language the <CODE>&lt;COMMENT&gt;</CODE> element is using. It accepts any valid ISO standard language abbreviation (for example <CODE>"en"</CODE> for English, <CODE>"de"</CODE> for German etc.) For more details, see the <A HREF="../Document_Localisation/ov.htm" TITLE="View the HTML localisation topic">Document Localisation</A> section for more details.
38
39<P><A NAME="ID"><SPAN CLASS="attr">ID</SPAN></A>="Unique element identifier"<BR>
40The <CODE>ID</CODE> attribute can be used to either reference a unique style sheet identifier, or to provide a unique name for the <CODE>&lt;COMMENT&gt;</CODE> element for scripting purposes. Any <CODE>&lt;COMMENT&gt;</CODE> element with an <CODE>ID</CODE> attribute can be directly manipulated in script by referencing its <CODE>ID</CODE> attribute, rather than working through the <A HREF="../Scripting_Reference/allcol.htm" TITLE="View the All collection topic">All collection</A> to determine the element. See the <A HREF="../Scripting_Reference/ov.htm" TITLE="View the Scripting Introduction topic">Scripting introduction</A> topic for more information.
41
42<P><HR WIDTH="75%" ALIGN="center">
43
44<P><A NAME="SCRIPTING">Every</A> <CODE>&lt;COMMENT&gt;</CODE> element in a document is an object that can be manipulated through scripting. Note that scripting of the <CODE>&lt;COMMENT&gt;</CODE> element/object is only supported by <STRONG>Internet Explorer</STRONG> 4.0 in its <A HREF="../Dynamic_HTML/dhtml.htm" TITLE="View the Dynamic HTML Overview">Dynamic HTML</A> object model. <STRONG>Netscape</STRONG> does not support direct scripting of the <CODE>&lt;COMMENT&gt;</CODE> element at all.
45
46<P><A NAME="COMMENT_Properties" TITLE=""><STRONG><CODE>&lt;COMMENT...&gt;</CODE> Properties</STRONG></A><BR>
47The <CODE>&lt;COMMENT...&gt;</CODE> element/object supports some of the standard <A HREF="../Dynamic_HTML/dhtml.htm" TITLE="View the Dynamic HTML overview topic">Dynamic HTML</A> properties (i.e. <SPAN CLASS="attr">document</SPAN>, <SPAN CLASS="attr">id</SPAN>, <SPAN CLASS="attr">isTextEdit</SPAN>, <SPAN CLASS="attr">lang</SPAN>, <SPAN CLASS="attr">parentElement</SPAN>, <SPAN CLASS="attr">parentTextEdit</SPAN>, <SPAN CLASS="attr">sourceIndex</SPAN>, <SPAN CLASS="attr">tagName</SPAN> and <SPAN CLASS="attr">title</SPAN>). Details of these can be found in the <A HREF="../Dynamic_HTML/dhtmlp.htm" TITLE="View the standard Dynamic HTML Properties topic">standard Dynamic HTML properties</A> topics.
48
49<P><A NAME="COMMENT_Methods" TITLE=""><STRONG><CODE>&lt;COMMENT...&gt;</CODE> Methods</STRONG></A><BR>
50The <CODE>&lt;COMMENT...&gt;</CODE> element/object supports some of the standard <A HREF="../Dynamic_HTML/dhtml.htm" TITLE="View the Dynamic HTML overview topic">Dynamic HTML</A> methods (i.e. <SPAN CLASS="attr">click</SPAN>, <SPAN CLASS="attr">contains</SPAN>, <SPAN CLASS="attr">getAttribute</SPAN>, <SPAN CLASS="attr">removeAttribute</SPAN>, and <SPAN CLASS="attr">setAttribute</SPAN>). Details of these can be found in the <A HREF="../Dynamic_HTML/dhtmlm.htm" TITLE="View the standard Dynamic HTML Methods topic">standard Dynamic HTML Methods</A> topics.
51
52<P><A NAME="COMMENT_Events" TITLE=""><STRONG><CODE>&lt;COMMENT...&gt;</CODE> Events</STRONG></A><BR>
53The <CODE>&lt;COMMENT...&gt;</CODE> element/object supports no events.
54
55<P>
56
57<P ALIGN="right" CLASS="copyright">© 1995-1998, Stephen Le Hunte</P>
58</BODY>
59</HTML>
Note: See TracBrowser for help on using the repository browser.