Manual html

75
NCD HTML Design Guide Version 5.0 - PDF Edition Network Communication Design http://www.ncdesign.org/ [email protected]

description

Manual de HTML

Transcript of Manual html

Page 1: Manual html

NCD HTML Design Guide

Version 5.0 - PDF Edition

Network Communication Design

http://www.ncdesign.org/[email protected]

Page 2: Manual html

NCD HTML Design Guide - PDF Edition

License

Copyright ©1994-2000 by Network Communication DesignAll rights reserved,including the right of reproductionin whole or in part in any form.

This is SHAREWARE Document

If you find the NCD Html Design Guide useful and continue to use it,you should consider sending the shareware fees.

One copy of the html design guide is US $5.Please visit our web page for more details: http://www.ncdesign.org/pdfOn-line payment system is available.

Shareware fee helps Network Communication Design and support future quality guide.Thanks for your support!

Network Communication Design

URL: http://www.ncdesign.org/ EMail: [email protected]

Page 3: Manual html

NCD HTML Design Guide ContentsVersion 5.0 - PDF Edition

Page | Font | Text | Image | Form | Table | Frame | Objects | XMLHTML TAG LIST

Page Document StructuresDocument InformationLanguage Charset InformationDocument RefreshBackground and Text ColorPage MarginLinkTarget WindowsBase ElementHorizontal RulesStyle Sheet Elements

Font HeaderHeader AlignmentFont SizePhysical StyleLogical StyleFont ColorFont FaceBase Font SettingEntities

Text ParagraphQuotationLine BreakCenteringGrouping ElementsBasic ListingsCustomized ListingPreformatted TextCommentSpacerMulti-Column TextMarqueeText DirectionPronunciation

Image Image BasicImage aligned with TextFloating ImageImage SizeBorder LineClient Side Image Map

Page 4: Manual html

Form Basic StructureText & PasswordCheckbox & RadioImage coordinatesHidden ElementsFile SelectButtonSelectable MenuText AreaOld Input StyleButton StyleField StyleLabel

Table Table Basic TagsTable SpanTable SizeTable Text AlignmentFloating TableTable CaptionTable ColorGroups of RowsGroups of ColumnsFrame DisplayRules Display

Frames Frame BasicFrame SizeFrame Name & TargetFrame AppearanceFloating Frame

Objects EmbedAppletScriptObjectBackground SoundInline Video

XML Custom TagInline XMLLinking XML

Appendix A: Basic System FontsAppendix B: EntitiesAppendix C: Marquee attributes

HTML TAG LIST

Copyright & Publishing 1994-2000 Network Communication Design, [email protected]

Page 5: Manual html

NCDesign HTML Design Guide - PAGE TAGS 1

PAGE TAGSNCD HTML Design Guide v5.0

Document Structures

<html>...</html><head>...</head><body>...</body>

<HTML><HEAD> <title>, <base>, <link>, <isindex>, <meta></HEAD><BODY> Body of the document</BODY></HTML>

Document Information

<meta http-equiv="#1" content="#2">#1=Expires, Keywords, Reply-to, Author#2=Information about #1

<meta http-equiv="Keywords" content="travel, Japan, hotel">

<link rel=#1 href=#2>#1=Relationship to destination#2=URL

<link rel="Index" href="../index.htm"><link rel="Next" href="020font.htm">

Language Charset Information

<meta http-equiv="Content-Type" content="text/html;charset=#">

#= us-ascii, iso-8859-1, x-mac-roman, iso-8859-2, x-mac-ce, iso-2022-jp, x-sjis, x-euc-jp, euc-kr, iso-2022-kr, gb2312, gb_2312-80,

Page 6: Manual html

NCDesign HTML Design Guide - PAGE TAGS 2

x-euc-tw, x-cns11643-1, x-cns11643-2, big5

You can specify MIME charset information of your html source.It's good for people who swich some language encodings at option menu. If encoding is presented in html source, browser can swich them automaticaly. Especialy in the case you use some entities, it's better to specify your encoding (maybe iso-8859-1). Entities appearance will be changed in other encodings on someone's browser.

Document Refresh

<meta http-equiv="refresh" content="#1">#1=Refresh Time

<meta http-equiv="refresh" content="#1; URL=#2">#1=Refresh Time, #2=URL

Background and Text Color

Page Color <body bgcolor=# text=# link=# alink=# vlink=#>#= rrggbb Hex Number, or Name: Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime, Fuchsia, White, Green, Purple, Silver, Yellow, Aqua

! bgcolor --- background color ! text --- text color ! link --- link color ! alink --- active link color ! vlink --- visited link color

Background Image <body background="URL">

Non Scrolling Background <body background="URL" bgproperties=FIXED>

<meta http-equiv="refresh" content="5">

<meta http-equiv="refresh" content="5; URL=second.htm">

HTMLSample

HTMLSample

Page 7: Manual html

NCDesign HTML Design Guide - PAGE TAGS 3

Page Margin

<body leftmargin=# rightmargin=# topmargin=# bottommargin=#>#=margin amount

Link

Link Basic <a href="URL"> ... </a>

Jump to part of a page <a href="#name"> ... </a><a name="name"> ... </a>

Jump to part of an other page<a href="URL#name"> ... </a><a name="name"> ... </a>

Mail Link <a href="mailto:#"> ... </a>#=mail address

This is a <a href="url.htm">Link Test</a>. Try to push!

This is a Link Test. Try to push!

<a href="#jump-test">Jump to next "Link Target"</a>...<a name="jump-test">Link Target</a>

Jump to next "Link Target"

Link Target

Jump to<a href="url.htm#jump-test">Jump to next "Link Target"</a>in a Link Test document.

Jump to "Link Target"

in a Link Test document.

Send to:<a href="mailto:[email protected]"> [email protected]</a>

Send to: [email protected]

HTMLSample

HTMLSample

HTMLSample

HTMLSample

Page 8: Manual html

NCDesign HTML Design Guide - PAGE TAGS 4

Target Windows

<a href="URL" target="Window_Name"> ... </a>

Base Element

<base href="URL" TARGET="Window_Name">

<head><base href="http://www.ncdesign.org/html/index.htm"></head><body><a href="../sample/index.htm">SAMPLE PAGE</a></body>

SAMPLE PAGE will be resolved to "http://www.ncdesign.org/sample/index.htm"

Horizontal Rules

<hr>

<hr>

<hr size=#>

#=number of pixel

<hr size=10>

<hr width=#> #=number of pixel, % of available space

<hr width=50><hr width=50%>

<a href="url.htm" target="window_name">Open A Window!</a>

Open A Window! HTMLSample

Page 9: Manual html

NCDesign HTML Design Guide - PAGE TAGS 5

<hr align=#> #=left, center, right

<hr width=50% align=left><hr width=50% align=center><hr width=50% align=right>

<hr noshade>

<hr noshade>

<hr color=#>#= rrggbb Hex Number, or Name: Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime, Fuchsia, White, Green, Purple, Silver, Yellow, Aqua

<hr color="red">

Style Sheet Elements

<link rel="stylesheet" type="text/css" HREF=#>

Further Info: Style Sheet Guide "Linking Style Sheet"

<style type="text/css">

Further Info: Style Sheet Guide "Embedding Style Sheet"

Page 10: Manual html

NCDesign HTML Design Guide - FONT TAGS 1

FONT TAGSNCD HTML Design Guide v5.0

Header

<h#> ... </h#> #=1, 2, 3, 4, 5, 6

! <hn>---</hn> tag makes fonts bold. ! <hn>---</hn> tag inserts a blank line without <p> tag.

So it can't include differnt font sizes in one line.

Header Alignment

<h1 align=#> ... </h1> #=left, center, right

<h1 align=#> ... </h1> #=justify

<h3 align=#> Today is fine. </h3>

<h1>Today is fine!</h1>

Today is fine!<h2>Today is fine!</h2> Today is fine!

<h3>Today is fine!</h3> Today is fine!

<h4>Today is fine!</h4> Today is fine!

<h5>Today is fine!</h5> Today is fine!

<h6>Today is fine!</h6> Today is fine!

left center right justify

Today is fine.

Today is fine.

Today is fine.

Today is fine.

Page 11: Manual html

NCDesign HTML Design Guide - FONT TAGS 2

Font Size

<font size=#> ... </font> #=1, 2, 3, 4, 5, 6, 7 or +#, -#<basefont size=#> #=1, 2, 3, 4, 5, 6, 7

Physical Style

Bold <b>

Italic <i>

Underline <u>

Teletype (Fixed Width) <tt>

<font size=7>Today is fine!</font>

Today is fine!

<font size=6>Today is fine!</font>

Today is fine! <font size=5>Today is fine!</font> Today is fine!

<font size=4>Today is fine!</font> Today is fine!

<font size=3>Today is fine!</font> Today is fine!

<font size=2>Today is fine!</font> Today is fine!

<font size=1>Today is fine!</font> Today is fine!

<b>Today is fine!</b> Today is fine!

<i>Today is fine!</i> Today is fine!

<u>Today is fine!</u> Today is fine!

<tt>Today is fine!</tt> Today is fine!

Page 12: Manual html

NCDesign HTML Design Guide - FONT TAGS 3

Superscript <sup>

Subscript <sub>

Strike through <s>

Strike through <strike>

blink <blink>

Logical Style

Emphasis <em>

Strong <strong>

Program Code <code>

<sup>Today is fine!</sup> Today is fine!

<sub>Today is fine!</sub>Today is fine!

<s>Today is fine!</s> Today is fine!

<strike>Today is fine!</strike> Today is fine!

<blink>Today is fine!</blink> Today is fine!

<em>Today is fine!</em> Today is fine!

<strong>Today is fine!</strong> Today is fine!

<code>Today is fine!</code> Today is fine!

Page 13: Manual html

NCDesign HTML Design Guide - FONT TAGS 4

Sample<samp>

Keybord<kbd>

Variable<var>

Defined<dfn>

Citation<cite>

Small <small>

Big <big>

Address <address>

Quotation <q>

<samp>Today is fine!</samp> Today is fine!

<kbd>Today is fine!</kbd> Today is fine!

<var>Today is fine!</var> Today is fine!

<dfn>Today is fine!</dfn> Today is fine!

<cite>Today is fine!</cite> Today is fine!

<small>Today is fine!</small> Today is fine!

<big>Today is fine!</big> Today is fine!

<address>Today is fine!</address> Today is fine!

<q>Today is fine!</q> Today is fine!

Page 14: Manual html

NCDesign HTML Design Guide - FONT TAGS 5

Inserted Text <ins datetime=#> #=insert date and time

Deleted Text<del datetime=#> #=delet date and time

Acronym <acronym title=#> #=original phrase

Font Color

<font color=#> ... </font>#= #rrggbb Hex Number, or Name: Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime, Fuchsia, White, Green, Purple, Silver, Yellow, Aqua

Font Face

<font face="#, #, ..., #"> ... </font>#=available font name on the client side

<ins datetime="1999-07-01T08:15:30+09:00">Today is fine!</ins>

Today is fine!

<del datetime="1999-07-01T08:15:30+09:00">Today is fine!</del>

Today is fine!

<acronym title="World Wide Web">WWW</acronym>

WWW

If the cursor is over "WWW", it will pop-up the title "World Wide Web".

<font color=#ff0000>RED</font> &<font color=red>RED</font>

RED & RED

<font face="Arial, Helvetica">Hellow World!</font>

Hellow World! AppendixFont Face

Page 15: Manual html

NCDesign HTML Design Guide - FONT TAGS 6

Base Font Setting

<basefont size="#" color="#" face="#">#=value is same as font tag.

Basefont can be used within BODY or HEAD.

Entities

&#; #=keyword or ascii code number

&amp;&lt;&gt;&quot;

& <>"

AppendixEntities

Page 16: Manual html

NCDesign HTML Design Guide - TEXT TAGS 1

TEXT TAGSNCD HTML Design Guide v5.0

Paragraph

Paragraph <p>

Paragraph Alignment <p align=#> #=left, center, right

<p align=#> #=justify

Quotation

<blockquote>...</blockquote>

<p>This is a first paragraph. <p>This is a second paragraph.

This is a first paragraph.

This is a second paragraph.

<p align=left>

This is a first paragraph. This is a great story, isn't it? It is exciting, gorgeous, thrilling, fantastic, and romantic!

<p align=center>

This is a first paragraph. This is a

great story, isn't it? It is exciting, gorgeous, thrilling, fantastic, and

romantic!

<p align=right>

This is a first paragraph. This is a

great story, isn't it? It is exciting, gorgeous,

thrilling, fantastic, and romantic!

<p align=justify>

This is a first paragraph. This is a great story, isn't it? It is exciting, gorgeous, thrilling, fantastic, and romantic!

Her Song:<blockquote>When I was young, I listened to the radio waiting for my favorite songs....</blockquote>

Her Song:

When I was young, I listened to the radio waiting for my favorite songs....

Page 17: Manual html

NCDesign HTML Design Guide - TEXT TAGS 2

Line Break

Break Line <br>

No Break <nobr>Soft Break <wbr>

<nobr> Close your browser window width, and find how this tag will work! This is a first paragraph. This is so exciting ... <wbr>and romantic!</nobr>

Close your browser window width, and find how this tag will work! This is a first paragraph. This so...and romantic!

Centering

<center>...</center>

<center>Hello</center>

Hello

Grouping Elements

Division (grouping for text block) <div> ... </div>

How are you?<br>I'm fine. How are you?I'm fine.

<div class="section"><H1>1. First Step</H1>In this section, you have to....

</div>

1. First StepIn this section, you have to....

The <div> and <span> don't impose presentational idioms. They are useful with style sheet.

Page 18: Manual html

NCDesign HTML Design Guide - TEXT TAGS 3

Division Alignment <div align=#> #=left, center, right

<div align=#> #=justify

Span (grouping for word) <span> ... </span>

Basic Listings

Unordered list <ul><li>...</ul>

Ordered lists <ol><li>...</ol>

<left>

This is a first paragraph. This is a great story, isn't it? It is exciting, gorgeous, thrilling, fantastic, and romantic!

<center>

This is a first paragraph. This is a

great story, isn't it? It is exciting, gorgeous, thrilling, fantastic, and

romantic!

<right>

This is a first paragraph. This is a

great story, isn't it? It is exciting, gorgeous,

thrilling, fantastic, and romantic!

<justify>

This is a first paragraph. This is a great story, isn't it? It is exciting, gorgeous, thrilling, fantastic, and romantic!

PHONE: <span class="phone">000-0000000</SPAN>

PHONE: 000-0000000

<ul><li>Today<li>Tommorow</ul>

! Today ! Tommorow

<ul><li>ONE <ul><li>TWO <ul><li>THREE</ul></ul></ul>

! ONE " TWO

# THREE

<ol><li>Today<li>Tommorow</ol>

1. Today 2. Tommorow

Page 19: Manual html

NCDesign HTML Design Guide - TEXT TAGS 4

Definition lists <dl><dt>...<dd>...</dl>

Directory lists <dir><li>...</dir>

Menu lists <menu><li>...</menu>

Customized listing

Mark Styles <ul type=#> or <li type=#>#=disk, circle, square

Capital Letters <ol type=#> or <li type=#>#=A, a, I, i, 1

<ol><li>ONE <ol><li>TWO <ol><li>THREE</ol></ol></ol>

1. ONE 1. TWO

1. THREE

<dl><dt>Today<dd>Today is yesterday.<dt>Tomorrow<dd>Tomorrow is today.</dl>

Today Today will be yesterday.

Tomorrow Tomorrow will be today.

<ol type="A"><li>ONE-ONE<li>ONE-TWO</ol>

A. ONE-ONE B. ONE-TWO

<dir><li>Today<li>Yesterday</dir>

! Today ! Yesterday

<menu><li>Today<li>Yesterday</menu>

! Today ! Yesterday

<ul><li type=disc>ONE<li type=circle>TWO<li type=square>THREE</ul>

! ONE " TWO # THREE

Page 20: Manual html

NCDesign HTML Design Guide - TEXT TAGS 5

List started number <ol start=#> #=number

Definition lists Compact <dl compact>

<ol type="a"><li>ONE-ONE<li>ONE-TWO</ol>

a. ONE-ONE b. ONE-TWO

<ol type="I"><li>ONE-ONE<li>ONE-TWO</ol>

I. ONE-ONE II. ONE-TWO

<ol type="i"><li>ONE-ONE<li>ONE-TWO</ol>

i. ONE-ONE ii. ONE-TWO

<ol type="1"><li>ONE-ONE<li>ONE-TWO</ol>

1. ONE-ONE 2. ONE-TWO

<ol start=5><li type=A>ONE-ONE<li>ONE-TWO <ol start=10> <li>TWO-ONE <li type=i>TWO-ONE </ol></ol>

E. ONE-ONE 6. ONE-TWO

10. TWO-ONE xi. TWO-TWO

<dl><dt>A1<dd>Hyper Text Markup Language<dt>A2<dd>World Wide Web</dl>

A1 Hyper Text Markup Language

World Wide WebA2

<dl compact><dt>A1<dd>Hyper Text Markup Language<dt>A2<dd>World Wide Web</dl>

A1 Hyper Text Markup Language World Wide WebA2

Page 21: Manual html

NCDesign HTML Design Guide - TEXT TAGS 6

Preformatted Text

<pre>...</pre>

<listing>...</listing>

<xmp>...</xmp>

Comment

<!-- ... -->

<comment>...</comment>

<pre>Please use your card.VISA Master<b>Here is an order form.</b><ul><li>Fax<li>Air Mail</ul></pre>

Please use your cardVISA MasterHere is an order form.

! Fax

! Air Mail

<listing>Please use your card.VISA Master<b>Here is an order form.</b><ul><li>Fax<li>Air Mail</ul></listing>

Please use your cardVISA MasterHere is an order form.

! Fax

! Air Mail

<xmp>Please use your card.VISA Master<b>Here is an order form.</b><ul><li>Fax<li>Air Mail</ul></xmp>

Please use your cardVISA Master<b>Here is an order form.</b><ul><li>Fax<li>Air Mail</ul>

CACE 1<!-- this is a test -->

CACE 1

CACE 1<comment>this is a test</comment>

CACE 1

Page 22: Manual html

NCDesign HTML Design Guide - TEXT TAGS 7

Spacer

<spacer type="horizontal" size=#> #=horizontal space<spacer type="vertical" size=#> #=vertical space

YESTERDAY <spacer type="horizontal" size=50> TODAY<spacer type="vertical" size=50> TOMORROW

<spacer type="block" width=# height=# align=-->#=space size (pixel)--=top, middle, bottom, left, right

<spacer type="block" width=150 height=50 align=left>YESTERDAY<br> TODAY<br> TOMORROW

Multi-Column Text

<multicol cols=#> ... </multicol> #=Column Number

<multicol cols=2>text text text...</multicol>

<multicol gutter=#> ... </multicol> #=Space between Columns (pixel)

<multicol cols=2 gutter=100>text text text...</multicol>

YESTERDAY TODAY

TOMORROW

Block space works as same as image object.

TODAYYESTERDAY

TOMORROW

text text text text text text text text text texttext text text text text text text text text texttext text text text text text text text text texttext text text text text text text text text texttext text text text text text text text text text

text text text text text text text text text texttext text text text text text text text text texttext text text text text text text text text texttext text text text text text text text

text text text text text text text text texttext text text text text text text text texttext text text text text text text text texttext text text text text text text

text text text text text text text text texttext text text text text text text text texttext text text text text text text text texttext text text text text text text text texttext text text text text text text text texttext text text text text text text text text

Page 23: Manual html

NCDesign HTML Design Guide - TEXT TAGS 8

<multicol width=#> ... </multicol> #=Column Width (pixel)

<multicol cols=2 width=400>text text text...</multicol>

Marquee (Scrolling text)

Marquee <marquee>...</marquee>

<marquee>Hi, Konnichiha!</marquee>

Text Direction

<bdo dir="#">...</bdo> #=ltr, rtl

Pronunciation

<RUBY> #1 <RT> #2 </RUBY> #1=Base text, #2=Pronunciation

Hi, Konnichiha!

<bdo dir="rtl">Today is fine! <BR>!enif si yadoT</bdo>

!enif si yadoT!Today is fine

<RUBY> <img src="samp/jp001.gif"> <RT>Network Communication Design</RUBY>

Network Communication Design

text text text text text texttext text text text text texttext text text text text texttext text text text text texttext text text text text texttext text text text text texttext text text text text texttext text text text text text

text text text text text texttext text text text text texttext text text text text texttext text text text text texttext text text text text texttext text text text text texttext text text text

AppendixMarquee

Page 24: Manual html

NCDesign HTML Design Guide - IMAGE TAGS 1

IMAGE TAGSNCD HTML Design Guide v5.0

Image Basic

<img src=#> #=Image URL

Alternate Text <img alt=#> #= Alternate Text for text browser or one doesn't load images.

<img src="f.gif" alt="MY FACE :-)">

Low Source <img lowsrc=#1 src=#2> #1=Low Source Image URL (to load fast)#2=Final Image URL

Image aligned with Text

<img align=#> #=top, middle, bottom,

<img src=face.gif align=top> My face! My Face!

<img src=face.gif align=middle> My face! My Face!

<img src=face.gif align=bottom> My face!

My Face!

Page 25: Manual html

NCDesign HTML Design Guide - IMAGE TAGS 2

<img align=#> #=texttop, absmiddle, absbottom, baseline

<img src=face.gif align=texttop> My face! My Face!

<img src=face.gif align=absmiddle> My face!

My Face!

<img src=face.gif align=absbottom> My face!

My Face!

<img src=face.gif align=baseline> My face!

My Face!

Difference between top and texttop

<img src=face.gif align=top> My face!<IMG SRC=heno01.gif> My Face!

<img src=face.gif align=texttop> My face!<IMG SRC=heno01.gif> My Face!

Floating Image

<img align=left>

<img src=URL align=left>My Face!<br>It is always<br>smiling.<br>Hahaha....<br>

My Face!It is alwayssmiling.Hahaha....

Page 26: Manual html

NCDesign HTML Design Guide - IMAGE TAGS 3

<img align=right>

My Face!It is alwayssmiling.Hahaha....

<br clear=#> #=left, right, all

<img src=URL align=left>My Face!<br>It is always<br clear=all>smiling.<br>Hahaha....<br>

60pixel

20

20

60pixel

My Face!It is always

smiling.Hahaha....

<img vspace=# hspace=#> #=number of pixel

<img src=URL align=left vspace=20 hspace=60>My Face!<br>It is always<br>smiling.<br>Hahaha....<br>

My Face!It is alwayssmiling.Hahaha....

Image Size

<img width=# height=#> #=number of pixel

<img src=URL.gif width=100 height=30>

Border Line

<img border=#> #=number of pixel

<a href="URL.htm"><img src=URL.gif border=15></a>

<img src=URL align=left>My Face!<br>It is always<br>smiling.<br>Hahaha....<br>

Page 27: Manual html

NCDesign HTML Design Guide - IMAGE TAGS 4

Client Side Image Map

<img src=img.gif usemap="MAP-Name">

<map name="MAP-Name"> <area shape="#" coords="#" href="url"> <area shape="#" coords="#" nohref></map>

#Rectangle Area shape="rect" coords="A,A',B,B'" (A,A')=Upper Left, (B,B')=Lower Right

#Circle Area shape="circle" coords="A,A',R" (A,A')=Center, (R)=Radius

#Polygon shape="poly" coords="A,A',B,B',C,C'..." (A,A')=First Corner, (B,B')=Second Corner, ...

mapimg.gif

Mapping Area

<img src="mapimg.gif" usemap="#Face">

<map name="Face">

<!--No link area--> <area shape="circle" nohref coords="80,100,20">

<!--Rectangle BUTTON--> <area shape="rect" href="page.html" coords="140,20,280,60">

<!--Triangle BUTTON--> <area shape="poly" href="image.html" coords="100,100,180,80,200,140">

<!--Circle BUTTON--> <area shape="circle" href="new.html" coords="80,100,60">

</map>

HTMLSample

Page 28: Manual html

NCDesign HTML Design Guide - FORM TAGS 1

FORM TAGSNCD HTML Design Guide v5.0

Basic Structure

Form Basic <form action="url" method=*> ... <input type=submit> <input type=reset> </form>

url=url of CGI script*=Form Submission method (GET, POST)

Input Basic <input type=* name=**> *=text, password, checkbox, radio, image, hidden, submit, reset**=Symbolic Name for CGI script. All input type (except submit and reset) need this attribute.

Text & Password

<input type=*><input type=* value=**>*=text, password **=initial value

<form action=/cgi-bin/post-query method=POST> Your Name: <input type=text name=name> <br> Your Home Page: <input type=text name=home value=http://><br> Password: <input type=password name=name> <br><input type=submit><input type=reset></form>

Your Name:

Your Home Page:

Password:

http://

Submit Reset

To use the Form function, you need the CGI program on your server that will receive and process the submitted data. At first, try to ask your ISP or server support CGI or not. And maybe your ISP provide the CGI program, or you can find many kind of programs on the net.

When the form is submitted, name & value pairs are sent to the invoked CGI program.

Page 29: Manual html

NCDesign HTML Design Guide - FORM TAGS 2

<input type=* size=**><input type=* maxlength=***>

<form action=/cgi-bin/post-query method=POST> <input type=text name=a01 size=40> <br> <input type=text name=a02 maxlength=5> <br><input type=submit><input type=reset></form>

Checkbox & Radio

<input type=checkbox><input type=checkbox checked><input type=checkbox value=**>

<form action=/cgi-bin/post-query method=POST> <input type=checkbox name=f01> Banana <input type=checkbox name=f02 checked> Apple <input type=checkbox name=f03 value=Orange> Orange <br><br><input type=submit><input type=reset></form>

Banana Apple Orange

<input type=radio><input type=radio checked><input type=radio value=**>

<form action=/cgi-bin/post-query method=POST> <input type=radio name=fruits> Banana <input type=radio name=fruits checked> Apple <input type=radio name=fruits value=Orange> Orange <br><br><input type=submit><input type=reset></form>

Banana Apple Orange

Submit Reset

Submit Reset

Submit Reset

**=box size in characters ***=max number of characters

**=the value to be returned to the server (default value is "on")

Multiple checkbox can be selected at one time.

A set of radio button should have the same name.And only one radio button in the set can be selected at one time.

**=the value to be returned to the server (default value is "on")

Page 30: Manual html

NCDesign HTML Design Guide - FORM TAGS 3

Image coordinates

<input type=image src=url.gif>

<form action=/cgi-bin/post-query method=POST> <input type=image name=face src=f.gif> <br><br> <input type=radio name=zoom value=2 checked>x2 <input type=radio name=zoom value=4>x4 <input type=radio name=zoom value=6>x6 <br><br><input type=reset></form> x2 x4 x6

Hidden Elements

<input type=hidden value=*>

<form action=/cgi-bin/post-query method=POST> <input type=hidden name=add [email protected]> Here is a hidden element. <br><br><input type=submit><input type=reset></form>

Here is a hidden element.

File input

<input type=file>

<form action="url to script" enctype="multipart/form-data" method=POST> <input type=file name=upload> </form>

Reset

Select

Submit Reset

The Image works as submit button. When the image is clicked, the coordinats of the clicked point and all other form data is sent to the server.

If you set <input type=image name="face">, submitted coordinates names would be "face.x" and "face.y". The coordinates values are in the pixel, upper left corner of the image is (0,0).

Attributes for <IMG> tag can be used in this image button. (ex. align=left)

User can send the file to the server.

Page 31: Manual html

NCDesign HTML Design Guide - FORM TAGS 4

Button

<input type=button value=* onClick=**>

*=symbolic name to be send to the server**=the value to be send to the server***=another value (if this specified, ** value would not send to the server)

*=number of options displayed

*=text displayed on the button**=script to execute when the user clicks the button

<form> <input type=button value="Open a new window!" onClick="window.open('new.htm')"></form>

Selectable Menu

Select tag's Basic Construction<select name=*> <option> ** <option value=***> ** <option selected> **</select>

<form action=/cgi-bin/post-query method=POST> <select name=fruits>

<option>Banana <option selected>Apple <option value=My_Favorite>Orange

</select><br><br><input type=submit><input type=reset></form>

Select Area Size <select size=**>

<form action=/cgi-bin/post-query method=POST> <select name=fruits size=3>

<option>Banana <option selected>Apple <option value=My_Favorite>Orange <option>Peach

</select><br><br><input type=submit><input type=reset></form>

Open a new window!

Apple

Banana Apple Orange

Submit Reset

Submit Reset

Page 32: Manual html

NCDesign HTML Design Guide - FORM TAGS 5

Multiple Selection <select size=* multiple>

<form action=/cgi-bin/post-query method=POST> <select name=fruits size=3 multiple>

<option selected>Banana <option selected>Apple <option value=My_Favorite>Orange <option selected>Peach

</select><br><br><input type=submit><input type=reset></form>

Text Area

<textarea name=* rows=** cols=***> ... </textarea>

*=simbolic name to be send to the server**=number of lines***=number of characters per line...=initial value

The rows and cols attributes determine the text area size.

off: disables word wrap.soft: causes word wrap, but the line breaks are not included in the submitted data. hard: causes word wrap, and the line breaks are included in the submitted data.

<form action=/cgi-bin/post-query method=POST> <textarea name=comment rows=5 cols=30> </textarea><br><br><input type=submit><input type=reset></form>

Banana Apple Orange

Word Wrapping <textarea wrap=*>

*=off, soft, hard

Submit Reset

Submit Reset

Page 33: Manual html

NCDesign HTML Design Guide - FORM TAGS 7

Button Style

<button type=*> ... </button>*=submit, reset ...=contents on the button

<form action=/cgi-bin/post-query method=POST>Your Name: <input type=text name=name><BR><BR> <button type="submit"> <IMG SRC="f.gif"><BR>SUBMIT </button> <button type="reset"> <IMG SRC="f.gif"><BR>RESET </button></form>

Your Name:

Field Style (Form Grouping)

<fieldset>...</fieldset>

<legend align=*> ** </legend>

...=form contents

*=top, bottom, left, center, right **=field title

<form action=/cgi-bin/post-query method=POST><fieldset> <legend>Personal Data</legend> Your Name: <input type=text name=name><br> E-Mail: <input type=text name=e-mail></fieldset><fieldset> <legend align=center>Payment Info</legend> Credit Card:<input type=radio name=card>VISA <input type=radio name=card>MASTER<br> Expiration: <input type=text name=exp></fieldset> <br> <input type=submit><input type=reset></form>

SUBMIT RESET

Your Name:

E-Mail:

Personal Data

Credit Card: VISA MASTER

Expiration:

Payment Info

Submit Reset

Page 34: Manual html

NCDesign HTML Design Guide - FORM TAGS 8

Label

<label for=*><input id=*>

*=label name

Please tell me your E-Mail Address! <-- Click this text, reach inputbox faster.

Submit Reset

Old Input Style

<isindex prompt=*>

<isindex prompt="Enter Search Keyword: ">

<form action=/cgi-bin/post-query method=POST> <label for="inputdata"> Please tell me your E-Mail Address! </label> <SMALL><-- Click this text, reach inputbox faster.</SMALL> <BR><BR> <input type=text name=e-mail id="inputdata"><input type=submit><input type=reset></form>

Enter Search Keyword:

This is a deprecated element and should be replaced by INPUT.

When user click the labeled text, jump to labeled input box.

HTMLSample

Page 35: Manual html

NCDesign HTML Design Guide - TABLE TAGS 1

TABLE TAGSNCD HTML Design Guide v5.0

Table Basic Tags

<table>...</table> - table<tr> - row difinition<th> - header cell<td> - data cell

Table Span

Column Span <th colspan=#>, <td colspan=#>#=number of columns the cell spans

#=number of rows the cell spansRow Span <th rowspan=#>, <td rowspan=#>

Food Drink Sweet

A B C

<table border><tr> <th>Food</th> <th>Drink</th> <th>Sweet</th><tr> <td>A</td> <td>B</td> <td>C</td></table>

Food Drink SweetA B C

<table><tr> <th>Food</th> <th>Drink</th> <th>Sweet</th><tr> <td>A</td> <td>B</td> <td>C</td></table>

Morning Menu

Food Drink Sweet

A B C

<table border><tr> <th colspan=3>Morning Menu</th><tr> <th>Food</th> <th>Drink</th> <th>Sweet</th><tr> <td>A</td> <td>B</td> <td>C</td></table>

Morning Menu

Food A

Drink B

Sweet C

<table border><tr> <th rowspan=3>Morning Menu</th> <th>Food</th> <td>A</td><tr> <th>Drink</th> <td>B</td><tr> <th>Sweet</th> <td>C</td></table>

Page 36: Manual html

50%

250pixel

70pix

el

100pix

el

NCDesign HTML Design Guide - TABLE TAGS 2

Table Size

Border Width <table border=#>#=number of pixel

#=number of pixel

#=number of pixel

#=number of pixel, %

Table Size <table width=# height=#>Cell Size <th width=# height=#>, <td width=# height=#>

Space Between Cells <table cellspacing=#>

Space in Cells <table cellpadding=#>

Food Drink Sweet

A B C

<table border=10><tr> <th>Food</th> <th>Drink</th> <th>Sweet</th><tr> <td>A</td> <td>B</td> <td>C</td></table>

Food Drink Sweet

A B C

<table border width=250 height=100><tr> <th width=50% height=70>Food</th> <th>Drink</th> <th>Sweet</th><tr> <td>A</td> <td>B</td> <td>C</td></table>

Food Drink Sweet

A B C

<table border cellspacing=10><tr> <th>Food</th> <th>Drink</th> <th>Sweet</th><tr> <td>A</td> <td>B</td> <td>C</td></table>

Food Drink Sweet

A B C

<table border cellpadding=10><tr> <th>Food</th> <th>Drink</th> <th>Sweet</th><tr> <td>A</td> <td>B</td> <td>C</td></table>

Page 37: Manual html

NCDesign HTML Design Guide - TABLE TAGS 3

Table Text Alignment

Horizontal Alignment<tr align=#> , <th align=#>, <td align=#> #=left, center, right

Vertical Alignment<tr valign=#>, <th valign=#>, <td valign=#> #=top, middle, bottom, baseline

No Wrap<tr nowrap>, <th nowrap>, <td nowrap>

Text wrap does not occur.

Floating Table

<table align=left>

<table align="left" border><tr> <th>Food</th><th>Drink</th><th>Sweet</th><tr> <td>A</td><td>B</td><td>C</td></table> My favorites...<br> menu A, B, C.

My favorites...menu A, B, C.

Food Drink Sweet

A B C

<table border width=160><tr> <th>Food</th><th>Drink</th><th>Sweet</th><tr> <td align=left>A</td> <td align=center>B</td> <td align=right>C</td></table>

Food Drink Sweet Other

AB

C

D

<table border height=100><tr> <th>Food</th><th>Drink</th> <th>Sweet</th><th>Other</th><tr> <td valign=top>A</td> <td valign=middle>B</td> <td valign=bottom>C</td> <td valign=baseline>D</td></table>

Food Drink Sweet

A B C

Page 38: Manual html

NCDesign HTML Design Guide - TABLE TAGS 4

<table align=right>

<table vspace=# hspace=#> #=number of pixel These attributes are the same as <img vspace=# hspace=#>.

My favorites...menu A, B, C.

Table Caption

<caption align=#> ... </caption> #=left, center, right

<caption align=#> ... </caption> #=top, bottom

<caption valign=#> ... </caption> #=top, bottom

Food Drink Sweet

A B C

Lunch

Food Drink Sweet

A B C

<table border><caption align=right>Lunch</caption><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Food Drink Sweet

A B C

Lunch

<table border><caption align=bottom>Lunch</caption><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Food Drink Sweet

A B C

Lunch

<table border><caption valign=bottom>Lunch</caption><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

<table align="right" border><tr> <th>Food</th><th>Drink</th><th>Sweet</th><tr> <td>A</td><td>B</td><td>C</td></table> My favorites...<br> menu A, B, C.

My favorites...menu A, B, C.

Food Drink Sweet

A B C

<table align="left" border vspace=20 hspace=30><tr> <th>Food</th><th>Drink</th><th>Sweet</th><tr> <td>A</td><td>B</td><td>C</td></table> My favorites...<br> menu A, B, C.

Page 39: Manual html

NCDesign HTML Design Guide - TABLE TAGS 5

Table Color

Cell Background Color<tr bgcolor=#>, <th bgcolor=#>, <td bgcolor=#>

Cell Background Image<tr background="URL"><th background="URL">, <td background="URL">

#= #rrggbb Hex Number, or Name: Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime, Fuchsia, White, Green, Purple, Silver, Yellow, Aqua

Border Color<table bordercolor=#>

Light & Dark Border Color<table bordercolorlight=#><table bordercolordark=#>

Food DrinkSweet

A B

<table border><tr><th bgcolor=ffaa00>Food</th> <th bgcolor=Red>Drink</th> <th rowspan=2 background="image.gif">Sweet</th><tr><td>A</td><td>B</td></table>

Food Drink Sweet

A B C

<table cellspacing=5 border=5 bodercolor=#ffaa00><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Food Drink Sweet

A B C

<table cellspacing=5 border=5 bordercolorlight=White bordercolordark=Maroon><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Page 40: Manual html

Header

colgroup

50pixel 50pixel 100pixel

colgroup

Body

NCDesign HTML Design Guide - TABLE TAGS 6

Groups of Rows

Groups of Rows<thead> ... </thead> - Table Header <tbody> ... </tbody> - Table Body <tfoot> ... </tfoot> - Table Footer

Rows Alignment<thead align=#1 valign=#2> ... </thead>#1=left, center, right#2=top, middle, bottom, baseline These attributes can be used in thead, tbody, tfoot.

Groups of Columns

Groups of Columns<colgroup> ... </colgroup>

<colgroup span=#> #number of colmuns affected<colgroup align=#> #=left, right, center<colgroup valign=#> #=top, middle, bottom, baseline<colgroup width=#> #=width of one colmun

Food Drink Sweet

A B C

D E F

<table border><thead> <tr><th>Food</th><th>Drink</th><th>Sweet</th></thead><tbody align="right"> <tr><td>A</td><td>B</td><td>C</td> <tr><td>D</td><td>E</td><td>F</td></tbody></table>

Food Drink Sweet

A B C

D E F

<table border><colgroup span=2 align=center width=50></colgroup><colgroup align=right width=100></colgroup><thead> <tr><th>Food</th><th>Drink</th><th>Sweet</th></thead><tbody> <tr><td>A</td><td>B</td><td>C</td> <tr><td>D</td><td>E</td><td>F</td></tbody></table>

Page 41: Manual html

col

50pixel 50pixel 100pixel

col

colgroup

NCDesign HTML Design Guide - TABLE TAGS 7

Subdivided Groups of Columns<col>

<col span=#> #number of colmuns affected<col align=#> #=left, right, center<col valign=#> #=top, middle, bottom, baseline<col width=#> #=width of one colmun

Frame Display

All Four Sides of Frame <table frame=box>

All Four Sides of Frame <table frame=box>

Top Side of Frame <table frame=above>

Food Drink Sweet

A B C

D E F

<table border><colgroup align=center width=50> <col span=2> <col width=100></colgroup><thead> <tr><th>Food</th><th>Drink</th><th>Sweet</th></thead><tbody> <tr><td>A</td><td>B</td><td>C</td> <tr><td>D</td><td>E</td><td>F</td></tbody></table>

Food Drink Sweet

A B C

D E F

<table border frame=box><thead> <tr><th>Food</th><th>Drink</th><th>Sweet</th></thead><tbody> <tr><td>A</td><td>B</td><td>C</td> <tr><td>D</td><td>E</td><td>F</td></tbody></table>

Food Drink Sweet

A B C

D E F

Food Drink Sweet

A B C

D E F

Page 42: Manual html

NCDesign HTML Design Guide - TABLE TAGS 8

Bottom Side of Frame <table frame=below>

Top and Bottom Sides of Frame <table frame=hsides>

Left and Right Sides of Frame <table frame=vsides>

Left Hand Side of Frame <table frame=lhs>

Right Hand Side of Frame <table frame=rhs>

No Frame <table frame=void>

Food Drink Sweet

A B C

D E F

Food Drink Sweet

A B C

D E F

Food Drink Sweet

A B C

D E F

Food Drink Sweet

A B C

D E F

Food Drink Sweet

A B C

D E F

Food Drink Sweet

A B C

D E F

Page 43: Manual html

Header

Body

Body

colgroup colgroup

NCDesign HTML Design Guide - TABLE TAGS 9

Rules Display

All Rules <table rules=all>

Rules between Groups <table rules=groups>

Rules between All Rows <table rules=rows>

Rules between All Cols <table rules=cols>

None <table rules=none>

Food Drink Sweet

A B C

D E F

Total $-00.0

<table border rules=all><colgroup align=center span=2></colgroup><colgroup align=right></colgroup><thead> <tr><th>Food</th><th>Drink</th><th>Sweet</th></thead><tbody> <tr><td>A</td><td>B</td><td>C</td> <tr><td>D</td><td>E</td><td>F</td></tbody><tbody> <tr><td rowspan=3 align=right>Total $-00.0</td></tbody></table>

Food Drink Sweet

A B CD E F

Total $-00.0

Food Drink Sweet

A B C

D E F

Total $-00.0

Food Drink SweetA B CD E F

Total $-00.0

Food Drink SweetA B CD E F

Total $-00.0

Page 44: Manual html

HTMLSample

HTMLSample

NCDesign HTML Design Guide - FRAME TAGS 1

FRAME TAGSNCD HTML Design Guide v5.0

Frame Basic

<frameset> ... </frameset><frame src="url"> <noframes> ... </noframes>

<HTML><HEAD>...</HEAD><FRAMESET> <FRAME SRC="url"> <NOFRAMES> ...SRC for browsers does not support frame. </NOFRAMES></FRAMESET><HTML>

Frame Size

Column Width <frameset cols=#>#=number of pixel, %, * (assign all left space)

#=number of pixel, %, * (assign all left space)Row Height <frameset rows=#>

A B C

<frameset cols=30%,20%,50%><frame src="A.html"><frame src="B.html"><frame src="C.html"></frameset>

A

B

C

<frameset rows=25%,25%,50%><frame src="A.html"><frame src="B.html"><frame src="C.html"></frameset>

Page 45: Manual html

HTMLSample

HTMLSample

HTMLSample

NCDesign HTML Design Guide - FRAME TAGS 2

COLS & ROWS

No Resize <frame noresize>Default frame is resizable.If you set this attribute, user can't change frame size.

Links on A.html:

Frame Name & Target

<frame name=#><a href=url target=#> ... </a> #=frame name

Special Target <a href=url target=#>#=_blank, _self, _parent, _top

A

B

C

<frameset cols=20%,*><frame src="A.html"> <frameset rows=40%,*> <frame src="B.html"> <frame src="C.html"> </frameset></frameset>

A B

<frameset cols=50%,50%><frame src="A.html"><frame src="B.html" name="HELLO"></frameset>

<a href="C.html" target="HELLO"> Document C will be opened into B. </a> <a href="C.html"> Document C will be opened into A. </a>

Links with target:<a href="target01.html" target="_blank">Linked Page will be opened in a new blank window. </a>

<a href="target01.html" target="_self">Linked Page will be opened in the same window. </a>

<a href="A.html" target="_parent">Linked Page will be opened in the immediate FRAMESET parent of this document. </a>

<a href="A.html" target="_top">Linked Page will be opened in the full window. </a>

Page 46: Manual html

HTMLSample

HTMLSample

HTMLSample

NCDesign HTML Design Guide - FRAME TAGS 3

Frame Appearance

Border Width <frameset border=#>

Border Display <frameset frameborder=#>

Frame Spacing <frameset framespacing=#>#=Space Size

A

B C

<frameset rows=30%,* border=20> <frame src="Acol.html"><frameset cols=30%,*> <frame src="Bcol.html"> <frame src="Ccol.html"></frameset></frameset>

A

B C

<frameset rows=30%,*> <frame src="Acol.html" frameborder=yes><frameset cols=30%,*> <frame src="Bcol.html" frameborder=no> <frame src="Ccol.html" frameborder=0></frameset></frameset>

A

B C

<frameset rows=30%,* framespacing=100><frame src="Acol.html"><frameset cols=30%,*> <frame src="Bcol.html"> <frame src="Ccol.html"></frameset></frameset>

<frame frameborder=#>#=yes, no, 1, 0

Page 47: Manual html

HTMLSample

HTMLSample

NCDesign HTML Design Guide - FRAME TAGS 4

Border Color <frameset bordercolor=#>

#=rrggbb Hex Number, or Name:Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime, Fuchsia, White, Green, Purple, Silver, Yellow, Aqua

Margin <frame marginwidth=# marginheight=#>#=margin size in pixel

Scrollbar <frame scrolling=#>#=yes, no, auto

#=auto is default.

<frameset rows=30%,* bordercolor=red><frame src="Acol.html"><frameset cols=30%,*> <frame src="Bcol.html"> <frame src="Ccol.html"></frameset></frameset>

AAAA AAAA

<frameset cols=50%,50%><frame src="A.html"><frame src="A.html" marginwidth=50 marginheight=50></frameset>

A

B C

Page 48: Manual html

HTMLSample

NCDesign HTML Design Guide - FRAME TAGS 5

Floating Frame

<iframe src=# name=##> ... </iframe> #=URL##=Frame Name ... = src for browser doesn't supported iframe.

iframe can use the same attributes of frameset, frame and img:

border=#, frameborder=#, framespacing=# marginwidth=#, marginheight=# scrolling=yes, no, auto align=top, middle, bottom, absmiddle, absbottom, texttop, baseline, left, right width=#, height=# hspace=#, vspace=#

Load ALoad BLoad C

Display A.html

<iframe src="A.html" name="window"> Here is a Floating Frame</iframe> <br><br><a href="A.html" target="window">Load A</A> <BR><a href="B.html" target="window">Load B</A> <BR><a href="Ccol.html" target="window">Load C</A> <BR>

Page 49: Manual html

NCDesign HTML Design Guide - INLINE OBJECTS 1

INLINE OBJECTSNCD HTML Design Guide v5.0

EMBED

<embed src=#> #=URL

This tag is used for embedding alternative elements such as movie, sound, vrml and more. To work <embed> now, correct plugin must be installed. And embed attributes are different between each plugins.

Applet

<applet codebase=#1 code=#2><param name=X value=X> </applet>#1=URL, #2=filename of executable contentX=property name & value for executable content

Script

<script language=#>... script data ...</script>#=Script Language

Object

<object codebase=#1 code=#2><param name=X value=X> </object>#1=URL, #2=filename of executable contentX=property name & value for executable content

Page 50: Manual html

NCDesign HTML Design Guide - INLINE OBJECTS 2

Background Sound

<bgsound src=#> #=URL of wav file<bgsound loop=#> #=loop number

<bgsound src="sound.wav" loop=3>

Insert Video

<img src="url.gif" dynsrc="url.avi">

Start <img start=#> #=fileopen, mouseover

#=fileopen is a default.You can specify both as <img start=fileopen,mouseover>

Controls <img controls>

<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI">

<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" start=mouseover>

<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" controls>

Page 51: Manual html

NCDesign HTML Design Guide - INLINE OBJECTS 3

Loop <img loop=#>

<loop=infinite> will loop indefinitely.

Delay <img loopdelay=#> #=milliseconds

<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" loop=3>

<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" loop=3 loopdelay=250>

Page 52: Manual html

NCDesign HTML Design Guide - XML in HTML 1

XML in HTMLNCD HTML Design Guide v5.0

Custom Tag

Declaring a XML Namespace <html xmlns:#>...</html> #=namespace

Declaring a Tag name and Style <style> #\:TAG {Style-Declaration} </style> #=namespace, TAG=custom tag name

Use Custom Tag <#:TAG>...</#:TAG> #=namespace, TAG=custom tag name

<HTML XMLNS:TEST><HEAD><STYLE> TEST\:RED {color:red}</STYLE></HEAD><BODY><H1>Custom Tag Test</H1><TEST:RED>This text will be a red color.</TEST:RED></BODY></HTML>

Custom Tag TestCustom Tag TestCustom Tag TestCustom Tag TestThis text will be a red color.

Page 53: Manual html

NCDesign HTML Design Guide - XML in HTML 2

Inline XML

XML data can be included in an HTML document to script against it.Nothing will happen without scripting.

<xml ID=#> ..xml data.. </xml>

ex.<XML ID="SAMP"> <member> <name>Netwrok Communication Design</name> <email>[email protected]</email> </member></XML><INPUT TYPE=button VALUE="Member Name" onClick="alert(SAMP.XMLDocument.documentElement.childNodes.item(0).text)"><INPUT TYPE=button VALUE="E-Mail Address" onClick="alert(SAMP.XMLDocument.documentElement.childNodes.item(1).text)">

<script language="xml" ID=#>..xml data..</script>

ex.<SCRIPT LANGUAGE="xml" ID="SAMP1"> <member> <name>NCDESIGN</name> <email>Not Available</email> </member></SCRIPT><INPUT TYPE=button VALUE="Member Name" onClick="alert(SAMP1.XMLDocument.documentElement.childNodes.item(0).text)"><INPUT TYPE=button VALUE="E-Mail Address" onClick="alert(SAMP1.XMLDocument.documentElement.childNodes.item(1).text)">

Member Name E-Mail Address

Member Name E-Mail Address

HTMLSample

HTMLSample

Page 54: Manual html

NCDesign HTML Design Guide - XML in HTML 3

Linking XML

<xml ID=# src=#></xml>

ex.<XML ID="SAMP2" SRC="samp/sample.xml"></XML><INPUT TYPE=button VALUE="Member Name" onClick="alert(SAMP2.XMLDocument.documentElement.childNodes.item(0).text)"><INPUT TYPE=button VALUE="E-Mail Address" onClick="alert(SAMP2.XMLDocument.documentElement.childNodes.item(1).text)">

sample.xml:<?xml version="1.0"?><member> <name>Network Communication Design</name> <email>[email protected]</email></member>

Member Name E-Mail Address

Page 55: Manual html

NCDesign HTML Design Guide - Appendix A: Basic System Fonts 1

Basic System FontsAppendix A

Windows Fonts

* ... On the Macintosh system, these fonts will be installed with Microsoft Internet Explorer.

Macintosh Fonts

Arial *

Arial Black *

Comic Sans MS *

Courier

Courier New

Impact *

Times

Times New Roman

Verdana *

Webdings *

WingDings

Chicago

Courier

Courier New

Helvetica

Monaco

Palatino

Times

Times New Roman

Page 56: Manual html

NCDesign HTML Design Guide - Appendix B: Entities 1

ENTITIESAppendix B

Basic Entities

HTML2.0 Keyword Entities

HTML3.2 Keyword Entities

&quot; "&amp; &&lt; <&gt; >

&nbsp;&iexcl; ¡&cent; ¢&pound; £&curren; ¤&yen; ¥&brvbar; ¦&sect; §&uml; ¨&copy; ©&ordf; ª

&laquo; «&not; ¬&shy;&reg; ®&macr; ¯&deg; °&plusmn; ±&sup2; ²&sup3; ³&acute; ´&micro; µ

&para; ¶&middot; ·&cedil; ¸&sup1; ¹&ordm; º&raquo; »&frac14; ¼&frac12; ½&iquest; ¿

&trade; ™

Page 57: Manual html

NCDesign HTML Design Guide - Appendix B: Entities 2

ISO entitiy names

Following entities for ISO 8859 Latin-1 ignore when using other character sets. Anyway, you can specify charset of html source with meta tag.

Special Characters (new in HTML4.0)

&AElig; Æ&Aacute; Á&Acirc; Â&Agrave; À&Aring; Å&Atilde; Ã&Auml; Ä&Ccedil; Ç&ETH; Ð&Eacute; É&Ecirc; Ê&Egrave; È&Euml; Ë&Iacute; Í&Icirc; Î&Igrave; Ì&Iuml; Ï&Ntilde; Ñ&Oacute; Ó&Ocirc; Ô&Ograve; Ò&Oslash; Ø&Otilde; Õ&Ouml; Ö&THORN; Þ&Uacute; Ú&Ucirc; Û&Ugrave; Ù&Uuml; Ü&Yacute; Ý

&aacute; á&acirc; â&aelig; æ&agrave; à&aring; å&atilde; ã&auml; ä&ccedil; ç&eacute; é&ecirc; ê&egrave; è&eth; ð&euml; ë&iacute; í&icirc; î&igrave; ì&iuml; ï&ntilde; ñ&oacute; ó&ocirc; ô&ograve; ò&oslash; ø&otilde; õ&ouml; ö&szlig; ß&thorn; þ&uacute; ú&ucirc; û&ugrave; ù&uuml; ü&yacute; ý&yuml; ÿ

&#161; ¡&#162; ¢&#163; £&#165; ¥&#166; ¦&#167; §&#168; ¨&#169; ©&#170; ª&#171; «&#172; ¬&#173;&#174; ®&#175; ¯&#176; °&#177; ±&#178; ²&#179; ³&#180; ´&#181; µ&#182; ¶&#183; ·&#184; ¸&#185; ¹&#186; º&#187; »&#188; ¼&#189; ½&#190; ¾&#191; ¿&#215; ×&#222; Þ&#247; ÷

&OElig; Œ&oelig; œ&Scaron; Š&scaron; š&Yuml; Ÿ&circ; ˆ&tilde; ˜&ensp; �&emsp; �&thinsp; �

&zwnj; ‌&zwj; ‍&ndash; –&mdash; —&lsquo; ‘&rsquo; ’&sbquo; ‚&ldquo; “&rdquo; ”&bdquo; „

&dagger; †&Dagger; ‡&permil; ‰&lsaquo; ‹&rsaquo; ›&euro; €

Page 58: Manual html

NCDesign HTML Design Guide - Appendix C: MARQUEE ATTRIBUTES 1

Marquee AttributesAppendix C

Marquee Basic

Basic <marquee> ... </marquee>

<marquee>Hi, Konnichiha!</marquee>

Scroll Attributes

Direction <direction=#> #=left, right

<marquee direction=left>Hi, Konnichiha!</marquee> <P><marquee direction=right>Hi, Konnichiha!</marquee>

Behavior <bihavior=#> #=scroll, slide, alternate

<marquee behavior=scroll>Hi, Konnichiha!</marquee> <P><marquee behavior=slide>Hi, Konnichiha!</marquee> <P><marquee behavior=alternate>Hi, Konnichiha!</marquee>

Loop <loop=#> number=# or infinite

<marquee loop=3 width=50% behavior=scroll>Hi, Konnichiha!</marquee> <P><marquee loop=3 width=50% behavior=slide>Hi, Konnichiha!</marquee> <P><marquee loop=3 width=50% behavior=alternate>Hi, Konnichiha!</marquee>

Hi, Konnichiha!

Hi, Konnichiha!

Hi, Konnichiha!

nichiha!

Hi, Konnichiha!

Hi, Konnichiha!

nichiha!

Hi, Konnichiha!

Hi, Konnichiha!

Page 59: Manual html

NCDesign HTML Design Guide - Appendix C: MARQUEE ATTRIBUTES 2

Scroll Amount <scrollamount=#>

<marquee scrollamount=50>Hi, Konnichiha!</marquee>

Scroll Delay <scrolldelay=#>

<marquee scrolldelay=500 scrollamount=100>Hi, Konnichiha!</marquee>

Marquee Layout

Align <align=#> #=top, middle, bottom

<font size=6><marquee align=# width=200>Hi, Konnichiha!</marquee></font>I'm greeting from Japan.

I'm greeting from Japan.

I'm greeting from Japan.

I'm greeting from Japan.

Background Color <bgcolor=#> #=rrggbb or name

<marquee bgcolor=aaaaee>Hi, Konnichiha!</marquee>

Size <height=# width=#>

<marquee height=40 width=50% bgcolor=aaeeaa>Hi, Konnichiha!</marquee>

Hi, Konnichiha!Hi, Konnichiha!Hi, Konnichiha!

Hi, Konnichiha! Hi, Konnichiha! Hi, Konnichiha!

Hi, Konnichiha!

Hi, Konnichiha!

Hi, Konnichiha!

Hi, Konnichiha!

Hi, Konnichiha!

Page 60: Manual html

NCDesign HTML Design Guide - Appendix C: MARQUEE ATTRIBUTES 3

Margins <hspace=# vspace=#>

********************************************<br>Hi,<marquee hspace=20 vspace=20 width=150 bgcolor=ffaaaa align=middle>Konnichiha!</marquee>I'm greeting from Japan.<br>********************************************

********************************************

Hi, I'm greeting from Japan.********************************************

Konnichiha!

Page 61: Manual html

HTML TAG LIST

NCD HTML Design Guide v5.0

tag attribute valueSupportBrowser

HTMLSpecification

!-- *text

*custom

A

HREF

*url

#keyword

*url#keyword

mailto:*address

NAME *keyword

TARGET

*window-name

_blank

_self

_parent

_top

ACRONYM TITLE *original phrase

ADDRESS

APPLET CODEBASE *url

CODE *filename

AREA

SHAPE

rect

circle

poly

COORDS *amount

HREF *url

NOHREF

B

BASEHREF *url

TARGET *window name

Page 62: Manual html

BASEFONT

SIZE *1 - 7

COLOR *color

FACE *font

BDO DIRltr

rtl

BGSOUNDSRC *url

LOOP *amount

BIG

BLINK

BLOCKQUOTE

BODY

BGCOLOR *color

TEXT *color

LINK *color

ALINK *color

VLINK *color

BACKGROUND *image-url

BGPROPERTIES fixed

LEFTMARGIN *amount

RIGHTMARGIN *amount

TOPMARGIN *amount

BOTTOMMARGIN *amount

BR

CLEAR

left

right

all

BUTTON TYPEsubmit

reset

left

Page 63: Manual html

CAPTIONALIGN

center

right

top

bottom

VALIGNtop

bottom

CENTER

CITE

CODE

COL

SPAN *amount

ALIGN

left

center

right

VALIGN

top

middle

bottom

baseline

WIDTH *amount

COLGROUP

ALIGN

left

center

right

VALIGN

top

middle

bottom

baseline

WIDTH *amount

SPAN *amount

COMMENT

DD

Page 64: Manual html

DEL

datetime *date&time

DFN

DIR

DIV

ALIGN

left

center

right

justify

DL

COMPACT

DT

EM

EMBED SRC

*url

center

right

FIELDSET

ALIGN left

FONT

SIZE *1 - 7

COLOR *color

FACE *font

FORM

ACTION *url

METHOD GET

POST

FRAMSRC *url

NAME *keyword

BORDER *amount

FRAMEBORDER

yes

no

1

Page 65: Manual html

FRAME

0

FRAMESPACING *amount

BORDERCOLOR *color

MARGINWIDTH *amount

MARGINHEIGHT *amount

SCROLLING yes

no

NORESIZE

FRAMESET COLS *amount

ROWS *amount

H1

H1

ALIGN left

center

right

justify

H2

H3

H4

H5

H6

HEAD

HR

SIZE *amount

WIDTH *amount

ALIGN

left

center

right

NOSHADE

COLOR *color

Page 66: Manual html

HTMLXMLNS

I

IFRAME

SRC *url

NAME *keyword

BORDER *amount

FRAMEBORDER

yes

no

1

0

FRAMESPACING *amount

BORDERCOLOR *color

MARGINWIDTH *amount

MARGINHEIGHT *amount

SCROLLING yes

no

ALIGN

top

middle

bottom

absmiddle

absbottom

texttop

baseline

left

right

VSPACE *amount

HSPACE *amount

WIDTH *amount

HEIGHT *amount

SRC *url

ALT *text

Page 67: Manual html

IMG

ALIGN

top

middle

bottom

absmiddle

absbottom

texttop

baseline

left

right

VSPACE *amount

HSPACE *amount

BORDER *amount

WIDTH *amount

HEIGHT *amount

LOWSRC *url

USEMAP *map-name

IMG

SRC *url

DYNSRC *url

STARTfileopen

mouseover

CONTROLS

LOOP*amount

infinite

LOOPDELAY *amount

INPUTTYPE

text

password

checkbox

radio

image

hidden

Page 68: Manual html

submit

reset

NAME *keyword

INPUT

TYPE text

VALUE *text

SIZE *amount

MAXLENGTH *amount

INPUT

TYPE password

VALUE *text

SIZE *amount

MAXLENGTH *amount

INPUT

TYPE checkbox

CHECKED

VALUE *text

INPUT

TYPE radio

CHECKED

VALUE *text

INPUTTYPE image

SRC *url

INPUTTYPE hidden

VALUE *text

INPUT TYPE file

INPUTTYPE button

VALUE *text

INPUTTYPE submit

VALUE *text

INPUTTYPE reset

VALUE *text

INS

datetime *date&time

Page 69: Manual html

ISINDEX

PROMPT *text

KBD

LABEL FOR *target id

LEGEND

ALIGN

top

bottom

left

center

right

LI

TYPE

A

a

I

i

1

disk

circle

square

LINKREL *relationship to destination

HREF *url

LINK

REL stylesheet

TYPE text/css

HREF *url

LISTING

MAP NAME *map-name

DIRECTIONleft

right

scroll

Page 70: Manual html

MARQUEE

BIHAVIOR slide

alternate

LOOP*amount

infinite

SCROLLAMOUNT *amount

SCROLLDELAY *amount

ALIGN

top

middle

bottom

BGCOLOR *color

HEIGHT *amount

WIDTH *amount

HSPACE *amount

VSPACE *amount

MENU

METAHTTP-EQUIV

Expires

Keywords

Reply-to

IndexType

CONTENT *text

META

HTTP-EQUIV Content-Type

CONTENT

text/html;charset=us-ascii

text/html;charset=iso-8859-1

text/html;charset=x-max-roman

text/html;charset=iso-8859-2

text/html;charset=x-mac-ce

text/html;charset=iso-2022-jp

text/html;charset=x-sjis

text/html;charset=x-euc-jp

text/html;charset=euc-kr

Page 71: Manual html

text/html;charset=iso-2022-kr

text/html;charset=gb2312

text/html;charset=gb_2312-80

text/html;charset=x-euc-tw

text/html;charset=x-cns11643-1

text/html;charset=x-cns11643-2

text/html;charset=big5

META

HTTP-EQUIV refresh

CONTENT *amount

*amount; URL=*url

MULTICOL

COLS *amount

GUTTER *amount

WIDTH *amount

NOBR

NOFRAMES

OBJECT CODEBASE *url

CODE *filename

OL

START *number

OPTION

SELECTED

VALUE *text

P

ALIGN

left

center

right

justify

PRE

Q

RT

Page 72: Manual html

RUBY

S

SAMP

SCRIPTLANGUAGE

xml

*script language

ID

SELECT

NAME *keyword

SIZE *amount

MULTIPLE

SMALL

SPACER

TYPE

horizontal

vertical

block

SIZE *amount

WIDTH *amount

HEIGHT *amount

ALIGN

top

middle

bottom

left

right

SPAN

STRIKE

STRONG

STYLE TYPE text/css

SUB

SUP

TABLE

WIDTH *amount

HEIGHT *amount

Page 73: Manual html

TABLE BORDER *amount

CELLSPACING *amount

CELLPADDING *amount

TABLE

ALIGN left

right

VSPACE *amount

HSPACE *amount

TABLE BGCOLOR *color

BACKGROUND *url

TABLE

BORDERCOLOR *color

BORDERCOLORLIGHT *color

BORDERCOLORDARK *color

TABLE FRAME

box

above

below

hsides

vsides

lhs

rhs

void

TABLE RULES

all

groups

rows

cols

none

TBODY

TD

TDCOLSPAN *amount

ROWSPAN *amount

left

Page 74: Manual html

TD

ALIGN center

right

VALIGN

top

middle

bottom

baseline

NOWRAP

TEXTAREA

NAME *keyword

ROWS *amount

COLS *amount

WRAP

off

soft

hard

TFOOT

TH

THEAD

ALIGN

left

center

right

VALIGN

top

middle

bottom

baseline

TITLE

TR

TT

U

UL

VAR

WBR

Page 75: Manual html

XMLID

SRC *url

XMP

Support Browser

... Netscape Navigator 3.0

... Netscape Navigator 4.0

... Internet Explorer 3.0

... Internet Explorer 4.0

... Internet Explorer 5.0

... Not Supported

HTML Specification

... HTML2.0 (RFC1866)

... HTML3.2 (REC-html32)

... HTML4.01 (REC-html401-19991224)

... Not Specified

... Deprecated Elements (defined in HTML4.01)

Deprecated elements should not be used in the future, and would replaced by Style Sheet.More Details about Deprecated can be found in html4.0.