HTML5: An introduction to new

The world of the web, in terms of language, has for years been stranded on the old HTML 4, active since 1999, as Wikipedia reports. Finally something has made it more or less standardized modern browsers have begun to support the new HTML5 (first draft published by the W3C on 22 gennaro 2008 still lacks many parts). The latest document on the website whatwg.org.

What's new in this language? Mainly to cover some gaps "operational" with new tags aimed at usability and semantics. Beware, though: the HTML 5, as the W3C is still in draft stage (draft).


Compatible browsers

All new generation browser support HTML 5: Chrome, Firefox 3.5, Opera and Safari. Oops I forgot someone? No, IE does not support the HTML 5, evidently expecting that train is called de jure standards ...

For the record, I publicly browser usage statistics, updated in August 2009, source W3Schools:

HTML5


You can see that the family is the second IE to Firefox!


New tags
Let's start the show the new doctype, finally with a form that requires no memory and even reinforced the violent copy paste. In fact it is simple:



The new tags are divided into Layout, Multimedia, DHTML and other tags.



HTML 5 tag Layout

* Article: the basic content of the page
* Aside: the extra content
* Figures: additional content that needs a note
* Footer: the foot of the page
* Header: the top of the page
* Navigation: Section Navigation
* Section: definition of sections

The use of these layouts can then call them tags "name" in css. For example, if we just redefine the LI tags on the menu navigation program within
Enter a date: <input name="day" required="required" title="Use format yyyy-mm-dd" type="date" />


But not enough, also supports the validation expressions Regular Expression (reg exp): fantastic. See how valid U.S. zip code:


Enter a U.S. ZIP Code or Canadian Postal Code:

<input name="postcode" pattern="([0-9] (5) (- [0-9] (4 })?)|([ AZ] [0-9] [AZ] \ s + [0-9] [AZ] [0-9]) " required="required" title=" U.S.: 99999-1234; Canadian: A1B 2C3 " type=" text " />

Not bad right? But not everything is possible even to determine the min and max for a numeric field. But for reference, I refer you complete the definition of inputs, which are explained attributes autocomplete, list, required, patterns, min, max, step, placeholder, ...


SVG Support

SVG stands for Scalable Vector Graphics, a definition now old, never used, vector images for the web. Finally you can define a nice circle in this way:



Without necessarily using a GIF: Look what a beautiful kitten!


Canvas

We have already spoken before but it deserves some more line. The new tag can, via javascript, onfly geometric shapes to create and interact with them. For example to create a circle we can write:

var canvas =
document.getElementById ("simpleCanvas");
if (canvas.getContext) (
var ctx = canvas.getContext ("2d");
ctx.beginPath () / / The Circle
ctx.fillStyle = "# ff0000";
ctx.arc (50, 50, 30, 0, 2 * Math.PI, true);
ctx.closePath ();
ctx.fill ();
ctx.save ();

Google HTML Converter

Hackudesign Recent Post

คุณสามารถเลือกอ่านบทความในการสอนทำ blogger จาก hackublog.com ได้ที่บทความนี้ และถ้าหากคุณชอบบทความในบล็อกนี้อยากให้ช่วยกันบอกต่อด้วยนะครับ ขอบคุณครับ




HTML ENCODER

วาง โค้ด AdSense หรือ HTML/ Java สคริปต์ที่นี่




คัดลอกโค้ดด้านล่างไปใช้งาน

CSS OTHER




   CSS :: Other Property :: Indexeslink

  display      ใช้กำหนดรูปแบบการจัดวางข้อมูล
  cursor       ใช้กำหนดรูปแบบของเมาส์ เมื่อเมาส์อยู่เหนือ element
  visibility   ใช้กำหนดว่าให้ซ่อนหรือแสดง element
  zoom        ใช้กำหนดการขยายหรือย่อ ขนาดของ element


   CSS :: other property :: displaylink

   property:display
   value:block, inline, list-item, none, run-in, compact, marker, table, inline-table,
   table-row-group, table-header-group, table-footer-group, table-column-group,
   table-row, table-column, table-cell, table-caption
   content:ใช้กำหนดรูปแบบการจัดวางข้อมูล
   example:{ display: block; }



  CSS :: other property :: cursorlink

property:cursor
value:default, auto, crosshair, pointer, move, text, wait, help, hand, n-resize,
ne-resize, e-resize, se-resize, s-resize, sw-resize, w-resize, nw-resize
content:ใช้กำหนดรูปแบบของเมาส์ เมื่อเมาส์อยู่เหนือ element
example:{ cursor: crosshair; }



  CSS :: other property :: visibilitylink

property:visibility
value:visible, hidden, collapse
content:ใช้กำหนดว่าให้ซ่อนหรือแสดง element
example:{ visibility: visible; }



  CSS :: other property :: zoomlink

property:zoom
value:normal, เปอร์เซ็นต์, เลขจำนวนจริง
content:ใช้กำหนดการขยายหรือย่อ ขนาดของ element
example:{ zoom: 150%; }

CSS FILTER

  ประเภทของ filters ประเภทของ filters ได้แก่ Visual Filters และ Pages Transitions

  filter ใช้กำหนดคุณสมบัติต่างๆของ filter
  Alpha ใช้กำหนดระดับความสว่างหรือความทึบ โดยวิธีการไล่สี
  Blur ใช้กำหนดความเบลอ
  Chroma ใช้กำหนดสีที่กำหนดให้เป็นสีโปร่งใส
  Shadow ใช้สร้างเงา
  DropShadow ใช้สร้างเงา
  Glow ใช้สร้างการกระจายของขอบวัตถุ
  Wave ใช้สร้างความบิดเบี้ยวในลักษณะคล้ายคลื่น
  FlipH ใช้สร้างภาพสะท้อนกระจกตามแนวตั้ง
  FlipV ใช้สร้างภาพสะท้อนกระจกตามแนวนอน
  Invert ใช้กำหนดให้ค่าสีเป็นสีที่ตรงกันข้ามกันทั้งหมด
  Gray ใช้กำหนดให้สีของวัตถุเป็นสีเทา
  Xray ใช้กำหนดให้วัตถุเป็นภาพขาวดำ
  Mask ใช้สร้างหน้ากากตัวอักษร คือส่วนที่เป็นตัวอักษรจะเป็นช่องว่าง สามารถมองทะลุไปถึงพื้นหลังได้
  RevealTrans ใช้กำหนดรูปแบบการแสดงผล เมื่อมีการเปลี่ยน web page จาก page หนึ่งไปยังอีก page หนึ่ง
  BlendTrans ใช้กำหนดให้วัตถุเลื่อนเข้าเลื่อนออก ( ต้องใช้ร่วมกับ javascript )


  CSS :: filter property :: ประเภทของ filterslink

  subject:ประเภทของ filters

  content:filter มี 2 ประเภท ได้แก่

  1. Visual Filters
  เป็น filter ที่แสดงพฤติกรรมของ web page ที่สร้างขึ้นมาในรูปแบบของการแสดงเทคนิคต่างๆ
  เช่น สร้างความเบลอ เป็นต้น ซึ่งคุณสมบัติเหล่านี้สามารถพบเห็นได้ในโปรแกรม graphic เช่น photoshop

  2. Pages Transitions
  เป็นเทคนิคการเปลี่ยนสถานะของ web page จากสถานะหนึ่งไปเป็นอีกสถานะหนึ่ง
  มี 2 ชนิดคือ Blend Transitions และ Reveal Transitions


  CSS :: filter property :: filterlink

property:filter
value:Alpha, Blur, Chroma, Shadow, DropShadow, Glow, Wave, FlipH, FlipV, Invert,
Gray, Xray, Mask, BlendTrans, RevealTrans
content:ใช้กำหนดคุณสมบัติต่างๆของ filter
example:{ filter: Glow( Color=red, Strength=5 ); }


  comment:ถ้าใช้กับ tag div หรือ tag span ต้องกำหนด width ด้วย


  CSS :: filter property :: Alphalink

value:Alpha( parameter=value )
content:ใช้กำหนดระดับความสว่างหรือความทึบ โดยวิธีการไล่สี
parameter:Opcacity กำหนดเปอร์เซ็นต์เริ่มต้นของความทึบแสง ( 0 - 100 ),
FinishOpacity กำหนดเปอร์เซ็นต์สิ้นสุดของความทึบแสง ( 0 - 100 ),
Style กำหนดรูปแบบของการไล่สี ( 0 - 3 ),
StartX, StartY กำหนดตำแหน่งเริ่มต้นในแกน x, y,
FinishX, FinishY กำหนดตำแหน่งสิ้นสุดในแกน x, y
example:{ filter: Alpha( Opacity=10, FinishOpacity=100, Style=2 ); }



  CSS :: filter property :: Blurlink

value:Blur ( parameter=value )
content:ใช้กำหนดความเบลอ
parameter:Add กำหนดให้เบลอหรือไม่ ( true, false ),
Direction กำหนดทิศทางการเบลอ ( 0, 45, 90, 135, 180, 225, 270, 315 ),
Strength กำหนดค่าความเบลอ ( หน่วย pixel )
example:{ filter: Blur ( Add=true, Direction=90, Strength=50 ); }



  CSS :: filter property :: Chromalink

value:Chroma
content:ใช้กำหนดสีที่กำหนดให้เป็นสีโปร่งใส
parameter:Color กำหนดสีที่ต้องการให้เป็นโปร่งใส ( ชื่อสี, #ค่าสี )
example:{ filter: Chroma( Color=black ); }



  CSS :: filter property :: Shadowlink

value:Shadow ( parameter=value )
content:ใช้สร้างเงา
parameter:Color กำหนดสีของเงา ( ชื่อสี, #ค่าสี ),
Direction กำหนดทิศทางของเงา ( 0, 45, 90, 135, 180, 225, 270, 315 )
example:{ filter: Shadow( Color=black, Direction=135 ); }



  CSS :: filter property :: DropShadowlink

value:DropShadow ( parameter=value )
content:ใช้สร้างเงา
parameter:Color กำหนดสีของเงา ( ชื่อสี, #ค่าสี ),
OffX กำหนดระยะห่างระหว่างเงากับวัตถุ ( หน่วย pixel ),
OffY กำหนดระยะห่างระหว่างเงากับวัตถุ ( หน่วย pixel ),
Positive กำหนดรูปแบบของเงา ( true หรือ positive, false หรือ nagative )
example:{ filter: DropShadow( Color=blue, OffX=20, OffY=20, Positive=true ); }



  CSS :: filter property :: Glowlink

value:Glow ( parameter=value )
content:ใช้สร้างการกระจายของขอบวัตถุ
parameter:Color กำหนดสีที่จะให้ฟุ้งกระจาย ( ชื่อสี, #ค่าสี ),
Strength กำหนดระยะทางของการกระจายออกมา ( 1-255 )
example:{ filter: Glow ( Color=red, Strength=30 ); }



  CSS :: filter property :: Wavelink

value:Wave ( parameter=value )
content:ใช้สร้างความบิดเบี้ยวในลักษณะคล้ายคลื่น
parameter:Add กำหนดว่าจะให้บิดเบี้ยวหรือไม่ ( true, false ),
Freq กำหนดจำนวนลูกคลื่น ยิ่งมากยิ่งบิดเบี้ยวมาก ( ตัวเลข ),
LightStrength กำหนดความกว้างของคลื่นแต่ละลูก ( 0-100 ),
Phase กำหนดตำแหน่งเริ่มต้นของลูกคลื่น ( 0-100 ),
Strength กำหนดค่าการบิดตัวของเกลียวคลื่น ( 0-255 )
example:{ filter: Wave( Add=true, Freq=3, LightStrength=10, Phase=50, Strength=5 ); }



  CSS :: filter property :: FlipHlink

value:FlipH ( parameter=value )
content:ใช้สร้างภาพสะท้อนกระจกตามแนวตั้ง
parameter:Enabled กำหนดว่าจะให้เป้นภาพสะท้อนหรือไม่ ( 0, 1 )
example:{ filter: FlipH ( Enabled=1) ; }



  CSS :: filter property :: FlipVlink

value:FlipV ( parameter=value )
content:ใช้สร้างภาพสะท้อนกระจกตามแนวนอน
parameter:Enabled กำหนดว่าจะให้เป็นภาพสะท้อนหรือไม่ ( 0, 1 )
example:{ filter: FlipV ( Enabled=1 ); }



  CSS :: filter property :: Invertlink

value:Invert ( parameter=value )
content:ใช้กำหนดให้ค่าสีเป็นสีที่ตรงกันข้ามกันทั้งหมด
parameter:Enabled กำหนดว่าจะให้เป็นสีที่ตรงกันข้ามหรือไม่ ( 0, 1 )
example:{ filter: Invert ( Enabled=1) ; }



  CSS :: filter property :: Graylink

value:Gray ( parameter=value )
content:ใช้กำหนดให้สีของวัตถุเป็นสีเทา
parameter:Enabled กำหนดว่าจะให้สีของวัตถุเป็นสีเทาหรือไม่ ( 0, 1 )
example:{ filter: Gray ( Enabled=1 ); }



  CSS :: filter property :: Xraylink

value:Xray ( parameter=value )
content:ใช้กำหนดให้วัตถุเป็นภาพขาวดำ
parameter:Enabled กำหนดว่าจะให้วัตถุเป็นภาพขาวดำหรือไม่ ( 0, 1 )
example:{ filter: Xray ( Enabled=1 ); }



  CSS :: filter property :: Masklink

value:Mask ( parameter=value )
content:ใช้สร้างหน้ากากตัวอักษร คือส่วนที่เป็นตัวอักษรจะเป็นช่องว่าง
สามารถมองทะลุไปถึงพื้นหลังได้
parameter:Color กำหนดสีของหน้ากากที่ล้อมรอบตัวอักษร ( ชื่อสี, #ค่าสี )
example:{ filter: Mask ( Color=black ); }



  CSS :: filter property :: RevealTranslink

value:RevealTrans ( parameter=value )
content:ใช้กำหนดรูปแบบการแสดงผล เมื่อมีการเปลี่ยน web page จาก page หนึ่งไปยังอีก page หนึ่ง
parameter:Duration กำหนดระยะเวลาในการแสดงผล ( หน่วยวินาที ),
Transition กำหนดรูปแบบการแสดงผล ( 0-23 ) ( 23 จะ random )
example:<meta content="RevealTrans ( Duration=3.0, Transition=0 ) " http-equiv="Page-Enter"></meta>



  CSS :: filter property :: BlendTranslink

value:BlendTrans ( parameter=value )
content:ใช้กำหนดให้วัตถุเลื่อนเข้าเลื่อนออก ( ต้องใช้ร่วมกับ javascript )
parameter:Duration กำหนดระยะเวลาในการแสดงผล
example:{ filter: BlendTrans ( Duration=10 ); }
object.style.filter = "blendTrans(duration=10)";
object.filters.blendTrans.Apply();
object.style.visibility = "visible";
object.filters.blendTrans.Play();

CSS POSITION

position ใช้กำหนดรูปแบบวิธีการจัดวางตำแหน่งของ element
top ใช้กำหนดระยะห่างระหว่าง ขอบด้านบน เมื่อเทียบกับ element
right ใช้กำหนดระยะห่างระหว่าง ขอบด้านขวา เมื่อเทียบกับ element
bottom ใช้กำหนดระยะห่างระหว่าง ขอบด้านล่าง เมื่อเทียบกับ element
left ใช้กำหนดระยะห่างระหว่าง ขอบด้านซ้าย เมื่อเทียบกับ element
float ใช้กำหนดตำแหน่งของ element ว่าให้ชิดขวาหรือชิดซ้าย
clear ใช้สิ้นสุดการจัดตำแหน่งของ element ด้วย property float
z-index ใช้กำหนดลำดับชั้น บน-ล่าง ในกรณีที่ element ซ้อนกัน

CSS TABLE

CSS :: Table Property :: Indexeslink

table-layout ใช้กำหนดรูปแบบความยืดหยุ่นของตาราง
caption-side ใช้กำหนดตำแหน่งของ caption
empty-cells ใช้กำหนดรูปแบบการแสดงผลเมื่อ cell ว่าง
border-collapse ใช้กำหนดเส้นขอบระหว่าง cell ว่าจะใช้ด้วยกันหรือไม่
border-spacing ใช้กำหนดระยะห่างระหว่าง cell
border-top-width ใช้กำหนดขนาดของเส้นขอบ ด้านบน
border-right-width ใช้กำหนดขนาดของเส้นขอบ ด้านขวา
border-bottom-width ใช้กำหนดขนาดของเส้นขอบ ด้านล่าง
border-left-width ใช้กำหนดขนาดของเส้นขอบ ด้านซ้าย
border-width ใช้กำหนดค่าของ property border width
border-top-style ใช้กำหนดลักษณะของเส้นขอบ ด้านบน
border-right-style ใช้กำหนดลักษณะของเส้นขอบ ด้านขวา
border-bottom-style ใช้กำหนดลักษณะของเส้นขอบ ด้านล่าง
border-left-style ใช้กำหนดลักษณะของเส้นขอบ ด้านซ้าย
border-style ใช้กำหนดค่าของ property border style
border-top-color ใช้กำหนดสีให้เส้นขอบ ด้านบน
border-right-color ใช้กำหนดสีให้เส้นขอบ ด้านขวา
border-bottom-color ใช้กำหนดสีให้เส้นขอบ ด้านล่าง
border-left-color ใช้กำหนดสีให้เส้นขอบ ด้านซ้าย
border-color ใช้กำหนดค่าของ property border color
border-top ใช้กำหนดค่าของ property border top
border-right ใช้กำหนดค่าของ property border right
border-bottom ใช้กำหนดค่าของ property border bottom
border-left ใช้กำหนดค่าของ property border left
border ใช้กำหนดค่าของ property border


CSS :: table property :: table-layoutlink

property:table-layout
value:auto คือตารางจะเปลี่ยนแปลงขนาดตามความเหมาะสม,
fixed คือตารางจะมีขนาดตายตัว
content:ใช้กำหนดรูปแบบความยืดหยุ่นของตาราง
example:{ table-layout: auto; }



CSS :: table property :: caption-sidelink

property:caption-side
value:top, bottom, left, right
content:ใช้กำหนดตำแหน่งของ caption
example:{ caption-side: right; }



CSS :: table property :: empty-cellslink

property:empty-cells
value:show, hidden
content:ใช้กำหนดรูปแบบการแสดงผลเมื่อ cell ว่าง
example:{ empty-cells: hidden; }



CSS :: table property :: border-collapselink

property:border-collapse
value:collapse, separate
content:ใช้กำหนดเส้นขอบระหว่าง cell ว่าจะใช้ด้วยกันหรือไม่
example:{ border-collapse: collapse; }


CSS :: table property :: border-spacinglink

property:border-spacing
value:cm, px, pt
content:ใช้กำหนดระยะห่างระหว่าง cell
โดยจะมีผลเมื่อ border-collapse เป็นแบบ separate เท่านั้น
example:{ border-spacing: 2px; }



CSS :: table property :: border-top-widthlink

property:border-top-width
value:thin, medium, thick, cm, px, pt
content:ใช้กำหนดขนาดของเส้นขอบ ด้านบน
example:{ border-top-width: 2px; }



CSS :: table property :: border-right-widthlink

property:border-right-width
value:thin, medium, thick, cm, px, pt
content:ใช้กำหนดขนาดของเส้นขอบ ด้านขวา
example:{ border-right-width: thin; }



CSS :: table property :: border-bottom-widthlink

property:border-bottom-width
value:thin, medium, thick, cm, px, pt
content:ใช้กำหนดขนาดของเส้นขอบ ด้านล่าง
example:{ border-bottom-width: medium; }



CSS :: table property :: border-left-widthlink

property:border-left-width
value:thin, medium, thick, cm, px, pt
content:ใช้กำหนดขนาดของเส้นขอบ ด้านซ้าย
example:{ border-left-width: thick; }



CSS :: table property :: border-widthlink

property:border-width
content:ใช้กำหนดค่าของ property border-top-width, border-right-width, border-bottom-width,
border-left-width ได้พร้อมกันตามลำดับ
example:{ border-width: 2px thin medium thick; }
comment:ถ้ากำหนดเพียงค่าข้อมูลเดียว จะหมายถึงกำหนดให้ทั้ง 4 ด้านเหมือนกัน



CSS :: table property :: border-top-stylelink

property:border-top-style
value:none, hidden, dotted, dashed, solid, groove, ridge, inset, outset, double
content:ใช้กำหนดลักษณะของเส้นขอบ ด้านบน
example:{ border-top-style: solid; }



CSS :: table property :: border-right-stylelink

property:border-right-style
value:none, hidden, dotted, dashed, solid, groove, ridge, inset, outset, double
content:ใช้กำหนดลักษณะของเส้นขอบ ด้านขวา
example:{ border-right-style: dotted; }



CSS :: table property :: border-bottom-stylelink

property:border-bottom-style
value:none, hidden, dotted, dashed, solid, groove, ridge, inset, outset, double
content:ใช้กำหนดลักษณะของเส้นขอบ ด้านล่าง
example:{ border-bottom-style: ridge; }



CSS :: table property :: border-left-stylelink

property:border-left-style
value:none, hidden, dotted, dashed, solid, groove, ridge, inset, outset, double
content:ใช้กำหนดลักษณะของเส้นขอบ ด้านซ้าย
example:{ border-left-style: outset; }



CSS :: table property :: border-stylelink

property:border-style
content:ใช้กำหนดค่าของ property border-top-style, border-right-style, border-bottom-style,
border-left-style ได้พร้อมกันตามลำดับ
example:{ border-style: solid double ridge outset; }
comment:ถ้ากำหนดเพียงค่าข้อมูลเดียว จะหมายถึงกำหนดให้ทั้ง 4 ด้านเหมือนกัน



CSS :: table property :: border-top-colorlink

property:border-top-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้เส้นขอบ ด้านบน
example:{ border-top-color: red; }



CSS :: table property :: border-right-colorlink

property:border-right-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้เส้นขอบ ด้านขวา
example:{ border-right-color: green; }



CSS :: table property :: border-bottom-colorlink

property:border-bottom-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้เส้นขอบ ด้านล่าง
example:{ border-bottom-color: blue; }



CSS :: table property :: border-left-colorlink

property:border-left-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้เส้นขอบ ด้านซ้าย
example:{ border-left-color: #c0c0c0; }



CSS :: table property :: border-colorlink

property:border-color
content:ใช้กำหนดค่าของ property border-top-color, border-right-color, border-bottom-color,
border-left-color ได้พรอ้มกันตามลำดับ
example:{ border-color: red green blue #c0c0c0; }


comment:ถ้ากำหนดเพียงค่าข้อมูลเดียว จะหมายถึงกำหนดให้ทั้ง 4 ด้านเหมือนกัน


CSS :: table property :: border-toplink

property:border-top
content:ใช้กำหนดค่าของ property border-top-width, border-top-style, border-top-color,
ได้พร้อมกันตามลำดับ
example:{ border-top: 2px solid red; }



CSS :: table property :: border-rightlink

property:border-right
content:ใช้กำหนดค่าของ property border-right-width, border-right-style, border-right-color,
ได้พร้อมกันตามลำดับ
example:{ border-right: thin double green; }



CSS :: table property :: border-bottomlink

property:border-bottom
content:ใช้กำหนดค่าของ property border-bottom-width, border-bottom-style, border-bottom-color,
ได้พร้อมกันตามลำดับ
example:{ border-bottom: medium ridge blue; }



CSS :: table property :: border-leftlink

property:border-left
content:ใช้กำหนดค่าของ property border-left-width, border-left-style, border-left-color,
ได้พร้อมกันตามลำดับ
example:{ border-left: thick outset #c0c0c0; }



CSS :: table property :: borderlink

property:border
content:ใช้กำหนดค่าของ property border-width, border-style, border-color
ได้พร้อมกันตามลำดับ
example:{ border: thin dotted #f0f0f0; }

CSS LIST

CSS :: List Property :: Indexeslink

list-style-type ใช้กำหนดสัญลักษณ์ต่างๆที่แสดงหน้ารายการย่อย
list-style-position ใช้กำหนดตำแหน่งย่อหน้าของบรรทัดต่อไป ในแต่ละรายการย่อย
list-style-image ใช้กำหนดรูปภาพที่จะแสดงตรงหน้ารายการย่อย
list-style ใช้กำหนดค่าต่างๆของ property list-style



CSS :: list property :: list-style-typelink

property:list-style-type
value:none, circle, disc, square, lower-roman, upper-roman, lower-alpha,
upper-alpha, decimal, decimal-leading-zero
content:ใช้กำหนดสัญลักษณ์ต่างๆที่แสดงหน้ารายการย่อย
example:{ list-style-type: square; }



CSS :: list property :: list-style-positionlink

property:list-style-position
value:inside คือย่อหน้าถัดไปจะตรงกับสัญลักษณ์หน้ารายการ,
outside คือย่อหน้าถัดไปจะไปตรงกับย่อหน้าของข้อความ
content:ใช้กำหนดตำแหน่งย่อหน้าของบรรทัดต่อไป ( ในแต่ละรายการย่อย )
ในกรณีที่รายการย่อยมีข้อความมากกว่า 1 บรรทัด
example:{ list-style-position: outside; }



CSS :: list property :: list-style-imagelink

property:list-style-image
value:none, url(ชื่อไฟล์.นามสกุล)
content:ใช้กำหนดรูปภาพที่จะแสดงตรงหน้ารายการย่อย
example:{ list-style-image: url( images/panda.gif ); }



CSS :: list property :: list-stylelink

property:list-style
content:ใช้กำหนดค่าของ property list-style-type, list-style-position, list-style-image
ได้พร้อมกันตามลำดับ
example:{ list-style: square outside url(images/panda.gif); }

CSS SCROLLBAR

CSS :: Scrollbar Property :: Indexeslink

scrollbar-arrow-color ใช้กำหนดสีของลูกศรของ scroll arrow
scrollbar-base-color ใช้กำหนดสีให้กับพื้นที่ของ scroll box และ track ยกเว้นขอบล่าง และขอบขวา
scrollbar-darkshadow-color ใช้กำหนดสีให้กับขอบขวาและขอบล่างของ scroll box
scrollbar-face-color ใช้กำหนดสีให้กับ scroll box และ track โดยที่สีของ scrollbar จะเข้มกว่าสีของ track
scrollbar-highlight-color ใช้กำหนดสีให้กับขอบซ้าย และขอบบน ของ scroll box
scrollbar-shadow-color ใช้กำหนดสีให้กับขอบขวา และขอบล่างของ scroll box และ scroll arrow
scrollbar-track-color ใช้กำหนดสีให้กับ track
scrollbar-3dlight-color ใช้กำหนดสีให้กับขอบซ้าย และขอบบน ของ scroll box และ scroll arrow


CSS :: scrollbar property :: scrollbar-arrow-colorlink

property:scrollbar-arrow-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีของลูกศรของ scroll arrow
example:{ scrollbar-arrow-color: olive; }



CSS :: scrollbar property :: scrollbar-base-colorlink

property:scrollbar-base-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้กับพื้นที่ของ scroll box และ track ยกเว้นขอบล่าง และขอบขวา
example:{ scrollbar-base-color: rgb( 100, 150, 200 ); }



CSS :: scrollbar property :: scrollbar-darkshadow-colorlink

property:scrollbar-darkshadow-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้กับขอบขวาและขอบล่างของ scroll box
example:{ scrollbar-darkshadow-color: #ff00cc; }



CSS :: scrollbar property :: scrollbar-face-colorlink

property:scrollbar-face-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้กับ scroll box และ track โดยที่สีของ scrollbar จะเข้มกว่าสีของ track
example:{ scrollbar-face-color: black; }



CSS :: scrollbar property :: scrollbar-highlight-colorlink

property:scrollbar-highlight-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้กับขอบซ้าย และขอบบน ของ scroll box
example:{ scrollbar-highlight-color: #c0c0c0; }



CSS :: scrollbar property :: scrollbar-shadow-colorlink

property:scrollbar-shadow-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้กับขอบขวา และขอบล่างของ scroll box และ scroll arrow
example:{ scrollbar-shadow-color: white; }



CSS :: scrollbar property :: scrollbar-track-colorlink

property:scrollbar-track-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้กับ track
example:{ scrollbar-track-color: green; }



CSS :: scrollbar property :: scrollbar-3dlight-colorlink

property:scrollbar-3dlight-color
value:ชื่อสี, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้กับขอบซ้าย และขอบบน ของ scroll box และ scroll arrow ( จึงทำให้ภาพเหมือน 3 มิติ )
example:{ scrollbar-3dlight-color: red; }

CSS LAYOUT

CSS :: Layout Property :: Indexeslink

margin-top ใช้กำหนดระยะห่างระหว่าง tag นั้นๆ กับ tag ที่อยู่ด้านบน
margin-right ใช้กำหนดระยะห่างระหว่าง tag นั้นๆ กับ tag ที่อยู่ด้านขวา
margin-bottom ใช้กำหนดระยะห่างระหว่าง tag นั้นๆ กับ tag ที่อยู่ด้านล่าง
margin-left ใช้กำหนดระยะห่างระหว่าง tag นั้นๆ กับ tag ที่อยู่ด้านซ้าย
margin ใช้กำหนดค่าต่างๆของ property margin
padding-top ใช้กำหนดระยะห่างระหว่างข้อความกับ tag ด้านบน
padding-right ใช้กำหนดระยะห่างระหว่างข้อความกับ tag ด้านขวา
padding-bottom ใช้กำหนดระยะห่างระหว่างข้อความกับ tag ด้านล่าง
padding-left ใช้กำหนดระยะห่างระหว่างข้อความกับ tag ด้านซ้าย
padding ใช้กำหนดค่าต่างๆของ property padding
width ใช้กำหนดค่าความกว้างของพื้นที่ให้ element
min-width ใช้กำหนดค่าความกว้างต่ำสุด ( อย่างน้อย ) ของพื้นที่ให้ element
max-width ใช้กำหนดค่าความกว้างสูงสุด ( อย่างมาก ) ของพื้นที่ให้ element
height ใช้กำหนดค่าความสูงของพื้นที่ให้ element
min-height ใช้กำหนดค่าความสูงต่ำสุด ( อย่างน้อย ) ของพื้นที่ให้ element
max-height ใช้กำหนดค่าความสูงสูงสุด ( อย่างมาก ) ของพื้นที่ให้ element


CSS :: layout property :: margin-toplink

property:margin-top
value:auto, cm, px, pt
content:ใช้กำหนดระยะห่างระหว่าง tag นั้นๆ กับ tag ที่อยู่ด้านบน
example:{ margin-top: 20px; }



CSS :: layout property :: margin-rightlink

property:margin-right
value:auto, cm, px, pt
content:ใช้กำหนดระยะห่างระหว่าง tag นั้นๆ กับ tag ที่อยู่ด้านขวา
example:{ margin-right: auto; }



CSS :: layout property :: margin-bottomlink

property:margin-bottom
value:auto, cm, px, pt
content:ใช้กำหนดระยะห่างระหว่าง tag นั้นๆ กับ tag ที่อยู่ด้านล่าง
example:{ margin-bottom: 10px; }



CSS :: layout property :: margin-leftlink

property:margin-left
value:auto, cm, px, pt
content:ใช้กำหนดระยะห่างระหว่าง tag นั้นๆ กับ tag ที่อยู่ด้านซ้าย
example:{ margin-left: 15px; }



CSS :: layout property :: marginlink

property:margin
content:ใช้กำหนดค่าของ property margin-top, margin-right, margin-bottom, margin-left
ได้พร้อมกันตามลำดับ
example:{ margin: 20px auto 10px 15px; }



CSS :: layout property :: padding-toplink

property:padding-top
value:auto, cm, px, pt
content:ใช้กำหนดระยะห่างระหว่างข้อความกับ tag ด้านบน
example:{ padding-top: 15px; }



CSS :: layout property :: padding-rightlink

property:padding-right
value:auto, cm, px, pt
content:ใช้กำหนดระยะห่างระหว่างข้อความกับ tag ด้านขวา
example:{ padding-right: 10px; }



CSS :: layout property :: padding-bottomlink

property:padding-bottom
value:auto, cm, px, pt
content:ใช้กำหนดระยะห่างระหว่างข้อความกับ tag ด้านล่าง
example:{ padding-bottom: auto; }



CSS :: layout property :: padding-leftlink

property:padding-left
value:auto, cm, px, pt
content:ใช้กำหนดระยะห่างระหว่างข้อความกับ tag ด้านซ้าย
example:{ padding-left: 20px; }



CSS :: layout property :: paddinglink

property:padding
content:ใช้กำหนดค่าของ property padding-top, padding-right, padding-bottom, padding-left
ได้พร้อมกันตามลำดับ
example:{ padding: 15px 10px auto 20px; }



CSS :: layout property :: widthlink

property:width
value:auto, cm, px, pt
content:ใช้กำหนดค่าความกว้างของพื้นที่ให้ element
example:{ width: 300px; }



CSS :: layout property :: min-widthlink

property:min-width
value:auto, cm, px, pt
content:ใช้กำหนดค่าความกว้างต่ำสุด ( อย่างน้อย ) ของพื้นที่ให้ element
example:{ min-width: 260px; }



CSS :: layout property :: max-widthlink

property:max-width
value:auto, cm, px, pt
content:ใช้กำหนดค่าความกว้างสูงสุด ( อย่างมาก ) ของพื้นที่ให้ element
example:{ max-width: 340px; }



CSS :: layout property :: heightlink

property:height
value:auto, cm, px, pt
content:ใช้กำหนดค่าความสูงของพื้นที่ให้ element
example:{ height: auto; }



CSS :: layout property :: min-heightlink

property:min-height
value:auto, cm, px, pt
content:ใช้กำหนดค่าความสูงต่ำสุด ( อย่างน้อย ) ของพื้นที่ให้ element
example:{ min-height: 150px; }



CSS :: layout property :: max-heightlink

property:max-height
value:auto, cm, px, pt
content:ใช้กำหนดค่าความสูงสูงสุด ( อย่างมาก ) ของพื้นที่ให้ element
example:{ max-height: 100px; }

CSS FONT

CSS :: Font Property :: Indexeslink

font-style ใช้กำหนดรูปแบบของตัวอักษร
font-variant ใช้กำหนดตัวอักษรให้เป็นแบบ small-caps
font-weight ใช้กำหนดขนาดความหนาของตัวอักษร
font-size ใช้กำหนดขนาดของตัวอักษร
font-family ใช้กำหนดชนิดของตัวอักษร
font ใช้กำหนดค่าต่างๆของ property font


CSS :: font property :: font-stylelink

property:font-style
value:normal, italic, oblique
content:ใช้กำหนดรูปแบบของตัวอักษร
example:{ font-style: italic; }



CSS :: font property :: font-variantlink

property:font-variant
value:normal, small-caps
content:ใช้กำหนดตัวอักษรให้เป็นแบบ small-caps
example:{ font-variant: smapp-caps; }



CSS :: font property :: font-weightlink

property:font-weight
value:normal, bold, bolder, lighter, ตัวเลข
content:ใช้กำหนดขนาดความหนาของตัวอักษร
example:{ font-weight: bolder; }



CSS :: font property :: font-sizelink

property:font-size
value:xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, ค่าเปอร์เซ็นต์, ค่า pt, ค่า px
content:ใช้กำหนดขนาดของตัวอักษร
example:{ font-size: 12px; }



CSS :: font property :: font-familylink

property:font-family
value:ชนิดของตัวอักษรต่างๆ
content:ใช้กำหนดชนิดของตัวอักษร ( สามารถกำหนดได้มากกว่า 1 ชนิด
เพื่อป้องกันในกรณีที่ผู้ใช้ไม่มีตัวอักษรที่กำหนดไว้ )
example:{ font-family: arial, courier; }



CSS :: font property :: fontlink

property:font
content:ใช้กำหนดค่าของ property font-style, font-variant, font-weight, font-size, font-family
ได้พร้อมกันตามลำดับ
example:{ font: italic small-caps bolder 15px arial; }

CSS BACKGROUND

background-color ใช้กำหนดสีให้กับพื้นหลัง
background-image ใช้กำหนดพื้นหลังเป็นรูปภาพ
background-repeat ใช้กำหนดให้แสดงรูปภาพแบบวนซ้ำหรือไม่
background-attachment ใช้กำหนดว่าให้รูปภาพพื้นหลัง อยู่กับที่ หรือ เลื่อนตาม เมื่อมีการเลื่อนแถบเลื่อน
background-positionY ใช้กำหนดตำแหน่งของพื้นหลัง เมื่อเทียบกับขอบด้านบน
background-positionX ใช้กำหนดตำแหน่งของพื้นหลัง เมื่อเทียบกับขอบด้านซ้าย
background-position ใช้กำหนดค่าของ property background-positionY และ background-positionX
background ใช้กำหนดค่าต่างๆของ property background


CSS :: background property :: background-colorlink

property:background-color
value:ชื่อสี, transparent, #ค่าสี, rgb( ตัวเลข, ตัวเลข, ตัวเลข )
content:ใช้กำหนดสีให้กับพื้นหลัง
example:{ background-color: rgb( 255, 0, 125); }



CSS :: background property :: background-imagelink

property:background-image
value:none, url(ชื่อไฟล์.นามสกุล)
content:ใช้กำหนดพื้นหลังเป็นรูปภาพ
example:{ background-image: url( image/panda.png ); }



CSS :: background property :: background-repeatlink

property:background-repeat
value:repeat-x, repeat-y, repeat, no-repeat
content:ใช้กำหนดให้แสดงรูปภาพแบบวนซ้ำหรือไม่
example:{ background-repeat: no-repeat; }



CSS :: background property :: background-attachmentlink

property:background-attachment
value:fixed, scroll
content:ใช้กำหนดว่าให้รูปภาพพื้นหลัง อยู่กับที่ หรือ เลื่อนตาม เมื่อมีการเลื่อนแถบเลื่อน
example:{ background-attachment: fixed; }



CSS :: background property :: background-positionYlink

property:background-positionY
value:top, center, bottom, ค่าเปอร์เซ็นต์, ค่า px
content:ใช้กำหนดตำแหน่งของพื้นหลัง เมื่อเทียบกับขอบด้านบน
example:{ background-positionY: 5px; }



CSS :: background property :: background-positionXlink

property:background-positionX
value:left, center, right, ค่าเปอร์เซ็นต์, ค่า px
content:ใช้กำหนดตำแหน่งของพื้นหลัง เมื่อเทียบกับขอบด้านซ้าย
example:{ background-positionX: 1%; }



CSS :: background property :: background-positionlink

property:background-position
content:ใช้กำหนดค่าของ property background-positionY และ background-positionX ได้พร้อมกันตามลำดับ
example:{ background-position: 5px 1%; }




CSS :: background property :: backgroundlink

property:background
content:ใช้กำหนดค่าของ property background-color, background-image, background-repeat,
background-attachment, background-position ได้พร้อมกันตามลำดับ
example:{ background: #ccff00 url(panda.gif) no-repeat fixed 5px 1%; }

INTRODUCTION CSS

CSS :: Introduce :: Propertylink

subject:property


content:คือ คุณสมบัติหรือรูปแบบต่างๆที่จะกำหนดให้ selector มีหลายประเภท ได้แก่
-> font ใช้กำหนดคุณสมบัติที่เกี่ยวกับตัวอักษรทั้งหมดใน web page
-> list ใช้กำหนดคุณสมบัติของ element ย่อยใน element หลัก
-> background ใช้กำหนดคุณสมบัติพื้นหลังของ web page
-> align ใช้กำหนดคุณสมบัติเกี่ยวกับการจัดวาง element ต่างๆ
-> margin ใช้กำหนดระยะห่างระหว่าง element ที่กำหนด และ element ที่ล้อมรอบ
-> color ใช้กำหนดคุณสมบัติที่เกี่ยวกับสีของ element
-> border ใช้กำหนดคุณสมบัติของเส้นขอบ
-> classification ใช้กำหนดคุณสมบัติพิเศษ และการแสดงผลของ element
-> dimension ใช้กำหนดและควบคุมความกว้างและความสูงของข้อมูล
-> list and marker ใช้กำหนดคุณสมบัติของ element ย่อยที่อยู่ภายในขอบเขตของ element หลัก
-> padding ใช้กำหนดระยะห่างระหว่าง element กับเนื้อหาใน element นั้น
-> position ใช้กำหนดรูปแบบการอ้างอิงตำแหน่ง
-> text ใช้กำหนดการแสดงผลของข้อความ
-> pseudo - classes ใช้กำหนดการตอบสนองต่อการกระทำบางอย่างกับ element