| BASIC ELEMENTS
|
|||
|---|---|---|---|
| Document type | <HTML></HTML> | (at the beginning and end of the file) | |
| Page title | <TITLE></TITLE> | (must be inside the head) | |
| Title | <HEAD></HEAD> | (descriptive information, such as the page title) | |
| Body | <BODY></BODY> | (the rest of the page) | |
| STRUCTURAL DEFINITIONS
|
|||
|---|---|---|---|
| Title | <H?></H?> | (six levels available) | |
| Heading alignment | <H? ALIGN=LEFT|CENTER|RIGHT></H?> | ||
| Division | <DIV></DIV> | ||
| Division settings | <DIV ALIGN=LEFT|RIGHT|CENTER></DIV> | ||
| Block quotation | <BLOCKQUOTE></BLOCKQUOTE> | (usually displayed indented) | |
| Emphasis | <EM></EM> | (usually displayed in italics) | |
| Strong emphasis | <STRONG></STRONG> | (usually displayed in bold) | |
| Reference | <CITE></CITE> | (usually displayed in italics) | |
| Code | <CODE></CODE> | (usually used for program output) | |
| Sample output | <SAMP></SAMP> | ||
| Keyboard input | <KBD></KBD> | ||
| Variable | <VAR></VAR> | ||
| Definition | <DFN></DFN> | (not widely used) | |
| Author address | <ADDRESS></ADDRESS> | ||
| Large font | <BIG></BIG> | ||
| Small font | <SMALL></SMALL> | ||
| PRESENTATION FORMATTING
|
|||
|---|---|---|---|
| Dark | <B></B> | ||
| Italic | <I></I> | ||
| N3.0b | Underlined | <U></U> | (not widely used) |
| Strikethrough | <STRIKE></STRIKE> | (not widely used) | |
| N3.0b | Strikethrough | <S></S> | (not widely used) |
| Subscript | <SUB></SUB> | ||
| Superscript | <SUP></SUP> | ||
| Typewriter | <TT></TT> | (monospaced text) | |
| Preformatted | <PRE></PRE> | (text is displayed as written) | |
| Width | <PRE WIDTH=?></PRE> | (in characters) | |
| Centering | <CENTER></CENTER> | (for text and graphics) | |
| N1.0 | Blinking | <BLINK></BLINK> | |
| Font size | <FONT SIZE=?></FONT> | (between 1 and 7) | |
| Change font size | <FONT SIZE=”+|-?”></FONT> | ||
| N1.0 | Base font size | <BASEFONT SIZE=?> | (between 1 and 7; default is 3) |
| Font colour | <FONT COLOR=”#$$$”></FONT> | ||
| N3.0b | Select font | <FONT FACE=”***”></FONT> | |
| N3.0b | Multi-column text | <MULTICOL COLS=?></MULTICOL> | |
| N3.0b | Column margin | <MULTICOL GUTTER=?></MULTICOL> | (default is 10 pixels) |
| N3.0b | Column width | <MULTICOL WIDTH=?></MULTICOL> | |
| N3.0b | Space | <SPACER> | |
| N3.0b | Space type | <SPACER TYPE=horizontal| vertical|block> | |
| N3.0b | Space size | <SPACER SIZE=?> | |
| N3.0b | Space depth | <SPACER WIDTH=? HEIGHT=?> | |
| N3.0b | Space settings | <SPACER ALIGN=left|right|center> | |
| LINKS AND GRAPHICS
|
|||
|---|---|---|---|
| Link to any destination | <A HREF=”URL”></A> | ||
| Link to a named target | <A HREF=”URL#***”></A> | (in another document) | |
| <A HREF=”#***”></A> | (in the same document) | ||
| N2.0 | Target frame | <A HREF=”URL” TARGET=”***| |_blank|_self|_parent|_top”></A> | |
| Define a target within the document | <A NAME=”***”></A> | ||
| Relationship | <A REL=”***”></A> | (not widely used) | |
| Reverse relationship | <A REV=”***”></A> | (not widely used) | |
| Display image | <IMG SRC=”URL”> | ||
| Settings | <IMG SRC=”URL” ALIGN=TOP|BOTTOM|MIDDLE|LEFT|RIGHT> | ||
| N1.0 | Settings | <IMG SRC=”URL” ALIGN=TEXTTOP| ABSMIDDLE|BASELINE|ABSBOTTOM> | |
| Alternative | <IMG SRC=”URL” ALT=”***”> | (if the image cannot be displayed) | |
| Imagemap | <IMG SRC=”URL” ISMAP> | (requires a program) | |
| Client-side image map | <IMG SRC=”URL” USEMAP=”URL”> | ||
| Map definition | <MAP NAME=”***”></MAP> | ||
| Map selection | <AREA SHAPE=”RECT” COORDS=”,,,” HREF=”URL”|NOHREF> | ||
| Size | <IMG SRC=”URL” WIDTH=? HEIGHT=?> | (in pixels) | |
| Border | <IMG SRC=”URL” BORDER=?> | (in pixels) | |
| Surrounding space | <IMG SRC=”URL” HSPACE=? VSPACE=?> | (in pixels) | |
| N1.0 | Low-resolution proxy | <IMG SRC=”URL” LOWSRC=”URL”> | |
| N1.1 | Client-side fetching | <META HTTP-EQUIV=”Refresh” CONTENT=”?; URL=URL”> | |
| N2.0 | Embedded object | <EMBED SRC=”URL”> | (the object is embedded in the page) |
| N2.0 | Object size | <EMBED SRC=”URL” WIDTH=? HEIGHT=?> | |
| SEPARATORS
|
|||
|---|---|---|---|
| Paragraph | <P></P> | (the closing tag is usually optional) | |
| Text alignment | <P ALIGN=LEFT|CENTER|RIGHT></P> | ||
| Line break | <BR> | (starts a new line) | |
| Clear Text Wrapping | <BR CLEAR=LEFT|RIGHT|ALL> | ||
| Horizontal rule | <HR> | ||
| Settings | <HR ALIGN=LEFT|RIGHT|CENTER> | ||
| Thickness | <HR SIZE=?> | (in pixels) | |
| Width | <HR WIDTH=?> | (in pixels) | |
| N1.0 | Width percentage | <HR WIDTH=”%”> | (percentage of page width) |
| Solid rule | <HR NOSHADE> | (not displayed in 3D) | |
| N1.0 | No line break | <NOBR></NOBR> | (prevents line breaks) |
| N1.0 | Word break | <WBR> | (where a line break is allowed) |
| LISTS
|
||||
|---|---|---|---|---|
| Unordered list | <UL><LI></UL> | (<LI> before each list item) | ||
| Compact | <UL COMPACT></UL> | |||
| Bullet type | <UL TYPE=DISC|CIRCLE|SQUARE> | (for the entire list) | ||
| <LI TYPE=DISC|CIRCLE|SQUARE> | ||||
| Ordered list | <OL><LI></OL> | (<LI> before each list item) | ||
| Compact | <OL COMPACT></OL> | |||
| Numbering type | <OL TYPE=A|a|I|i|1> | (for the entire list) | ||
| <LI TYPE=A|a|I|i|1> | ||||
| Starting number | <OL START=?> | (for all list items) | ||
| <LI VALUE=?> | ||||
| Definition list | <DL><DT><DD></DL> | (<DT> = term, <DD> = definition) | ||
| Compact | <DL COMPACT></DL> | |||
| Menu list | <MENU><LI></MENU> | (<LI> before each list item) | ||
| Compact | <MENU COMPACT></MENU> | |||
| Directory list | <DIR><LI></DIR> | (<LI> before each list item) | ||
| Compact | <DIR COMPACT></DIR> | |||
| BACKGROUND AND COLOURS
|
|||
|---|---|---|---|
| Background | <BODY BACKGROUND=”URL”> | ||
| Background colour | <BODY BGCOLOR=”#$$$”> | (red/green/blue order) | |
| Text colour | <BODY TEXT=”#$$$”> | ||
| Link colour | <BODY LINK=”#$$$”> | ||
| Visited link | <BODY VLINK=”#$$$”> | ||
| Active link | <BODY ALINK=”#$$$”> | ||
| SPECIAL CHARACTERS(all must be lowercase)
|
|||
|---|---|---|---|
| Special character | &#?; | (? is the ISO 8859-1 code) | |
| < | < | ||
| > | > | ||
| & | & | ||
| “ | “ | ||
| Registered trademark TM | ® | ||
| Copyright | © | ||
| Non-breaking space | |||
| TURKISH CHARACTERS
|
|||||
|---|---|---|---|---|---|
| ü | ü | ü | ü | Lowercase u with diaeresis | |
| Ü | Ü | Ü | Ü | Uppercase U with diaeresis | |
| ö | ö | ö | ö | Lowercase o with diaeresis | |
| Ö | Ö | ö | Ö | Uppercase O with diaeresis | |
| ğ | ð | ğ | Ð | Lowercase soft g | |
| ğ | Ð | ğ | Ð | Uppercase soft G | |
| ş | þ | ş | þ | Lowercase s with cedilla | |
| ş | Þ | ş | Þ | Uppercase S with cedilla | |
| ç | ç | ç | ç | Lowercase c with cedilla | |
| Ç | Ç | Ç | Ç | Uppercase C with cedilla | |
| ı | ý | ı | ý | Lowercase dotless i | |
| ı | Ý | ı | Ý | Uppercase dotted I | |
| FORMS
|
|||
|---|---|---|---|
| Form definition | <FORM ACTION=”URL” METHOD=GET|POST></FORM> | ||
| N2.0 | File upload | <FORM ENCTYPE=”multipart/form-data”></FORM> | |
| Input field | <INPUT TYPE=”TEXT|PASSWORD|CHECKBOX|RADIO| IMAGE|HIDDEN|SUBMIT|RESET”> | ||
| Field name | <INPUT NAME=”***”> | ||
| Field value | <INPUT VALUE=”***”> | ||
| Checked? | <INPUT CHECKED> | (checkbox and radio button) | |
| Field size | <INPUT SIZE=?> | (in characters) | |
| Maximum length | <INPUT MAXLENGTH=?> | (in characters) | |
| Selection list | <SELECT></SELECT> | ||
| List name | <SELECT NAME=”***”></SELECT> | ||
| Option number | <SELECT SIZE=?></SELECT> | ||
| Multiple selection | <SELECT MULTIPLE> | (more than one may be selected) | |
| Option | <OPTION> | (available options) | |
| Selected option | <OPTION SELECTED> | ||
| Input box size | <TEXTAREA ROWS=? COLS=?></TEXTAREA> | ||
| Box name | <TEXTAREA NAME=”***”></TEXTAREA> | ||
| N2.0 | Wrapping text | <TEXTAREA WRAP=OFF|VIRTUAL|PHYSICAL></TEXTAREA> | |
| TABLES
|
|||
|---|---|---|---|
| Table definition | <TABLE></TABLE> | ||
| Table border | <table border=?></TABLE> | ||
| Cell padding | <TABLE CELLSPACING=?> | ||
| Cell spacing | <TABLE CELLPADDING=?> | ||
| Desired width | <TABLE WIDTH=?> | (in pixels) | |
| Width percentage | <TABLE WIDTH=”%”> | (percentage of page width) | |
| Table row | <TR></TR> | ||
| Settings | <TR ALIGN=LEFT|RIGHT| CENTER|MIDDLE|BOTTOM> | ||
| Table cell | <TD></TD> | (must be inside a table row) | |
| Settings | <TD ALIGN=LEFT|RIGHT| CENTER|MIDDLE|BOTTOM> | ||
| No line break | <TD NOWRAP> | ||
| Number of columns spanned | <TD COLSPAN=?> | ||
| Number of rows spanned | <TD ROWSPAN=?> | ||
| N1.1 | Desired width | <TD WIDTH=?> | (in pixels) |
| N1.1 | Width percentage | <TD WIDTH=”%”> | (percentage of the table) |
| N3.0b | Cell colour | <TD BGCOLOR=”#$$$”> | |
| Table heading | <TH></TH> | (bold and centred) | |
| Settings | <TH ALIGN=LEFT|RIGHT| CENTER|MIDDLE|BOTTOM> | ||
| No line break | <TH NOWRAP> | ||
| Number of columns spanned | <TH COLSPAN=?> | ||
| Number of rows spanned | <TH ROWSPAN=?> | ||
| N1.1 | Desired width | <TH WIDTH=?> | (in pixels) |
| N1.1 | Width percentage | <TH WIDTH=”%”> | (table percentage) |
| N3.0b | Cell colour | <TH BGCOLOR=”#$$$”> | |
| Table Caption | <CAPTION></CAPTION> | ||
| Settings | <CAPTION ALIGN=TOP|BOTTOM> | (below/above the table) | |
| FRAMES
|
|||
|---|---|---|---|
| N2.0 | Frameset document | <FRAMESET></FRAMESET> | (instead of <BODY>) |
| N2.0 | Row height | <FRAMESET ROWS=,,,></FRAMESET> | (in pixels or percent) |
| N2.0 | Row height | <FRAMESET ROWS=*></FRAMESET> | (* = relative size) |
| N2.0 | Column width | <FRAMESET COLS=,,,></FRAMESET> | (pixels or percent) |
| N2.0 | Column width | <FRAMESET COLS=*></FRAMESET> | (* = relative size) |
| N3.0b | Border width | <FRAMESET BORDER=?> | |
| N3.0b | Borders | <FRAMESET FRAMEBORDER=”yes|no”> | |
| N3.0b | Border colour | <FRAMESET BORDERCOLOR=”#$$$”> | |
| N2.0 | Frame definition | <FRAME> | (content of a single frame) |
| N2.0 | Display document | <FRAME SRC=”URL”> | |
| N2.0 | Frame name | <FRAME NAME=”***”|_blank|_self| _parent|_top> | |
| N2.0 | Margin width | <FRAME MARGINWIDTH=?> | (left and right margins) |
| N2.0 | Margin height | <FRAME MARGINHEIGHT=?> | (top and bottom margins) |
| N2.0 | Scrollbar? | <FRAME SCROLLING=”YES|NO|AUTO”> | |
| N2.0 | Not resizable | <FRAME NORESIZE> | |
| N3.0b | Border | <FRAME FRAMEBORDER=”yes|no”> | |
| N3.0b | Border colour | <FRAME BORDERCOLOR=”#$$$”> | |
| N2.0 | Alternative content | <NOFRAMES></NOFRAMES> | (for browsers without frame support) |
| JAVA
|
|||
|---|---|---|---|
| Applet | <APPLET></APPLET> | ||
| Applet file name | <APPLET CODE=”***”> | ||
| Parameters | <APPLET PARAM NAME=”***”> | ||
| Applet location | <APPLET CODEBASE=”URL”> | ||
| Applet identifier | <APPLET NAME=”***”> | (for references from elsewhere on the page) | |
| Alternative text | <APPLET ALT=”***”> | (for browsers without Java support) | |
| Settings | <APPLET ALIGN=”LEFT|RIGHT|CENTER”> | ||
| Size | <APPLET WIDTH=? HEIGHT=?> | (in pixels) | |
| Spacing | <APPLET HSPACE=? VSPACE=?> | (in pixels) | |
| OTHER
|
|||
|---|---|---|---|
| Comment | (not displayed by the browser) | ||
| HTML 3.2 preamble | <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 3.2//EN”> | ||
| Searchability | <ISINDEX> | (defines a searchable index) | |
| Prompt | <ISINDEX PROMPT=”***”> | (provides text input) | |
| Start search | <A HREF=”URL?***”></a> | (uses a question mark) | |
| File URL | <BASE HREF=”URL”> | (must be inside the head) | |
| N2.0 | Base window name | <BASE TARGET=”***”> | (must be inside the head) |
| Relationship | <LINK REV=”***” REL=”***” HREF=”URL”> | (must be inside the head) | |
| Metadata | <META> | (must be inside the head) | |
| Style sheet | <STYLE></STYLE> | (not widely used) | |
| Scripts | <SCRIPT></SCRIPT> | (not widely used) | |


