Upload
maovkh
View
276
Download
0
Embed Size (px)
Citation preview
Orjix
www.RongRean.com
หลั�กสู�ตร สูรางเว็�บด้ว็ย HTML: Session ที่�� 1 ตอนที่�� 3
การต�ด้คำ�าขึ้��นบรรที่�ด้ใหม่� <br><p>test testthis is some text<br> hellohtml is <br>fun. </p>
การต�ด้คำ�าขึ้��นย�อหนาใหม่� <p><p> this is 1 paragrapg<br>and the next one is…</p><p>this is 2 paragraph</p>
www.rongrean.com Orjix
จั�ด้ว็างต�าแหน�งขึ้อคำว็าม่ในย�อหนา<p align=“center”>center</p>
<p align=“right”>right</p>
จั�ด้ว็างต�าแหน�งใหอย��ก��งกลัางด้ว็ย <center><center>how to use<br>center tag.</center><center>
<p> nested with other tag</p></center>
www.rongrean.com Orjix
จั�ด้ร�ปแบบเอกสูารตาม่ที่��ก�าหนด้ <pre><pre>
hello thisis pre-tag.<pre>
สูรางเสูนคำ��นในแนว็นอน <hr><p>
this is upper-part<hr>
this is lower-part
</p>
www.rongrean.com Orjix
สูรางเสูนคำ��นในแนว็นอน <hr> : attribute ต่�างๆ ของ <hr> ได้�แก่�
Width : ก่�าหนด้ความยาวของ pixel ม�หน�วยเป็�น pixelex : ให� width เท่�าก่�บ 20px (width=“20px”)
Size : ก่�าหนด้ความหนาของเส้�นค��น ม�หน�วยเป็�น pixelex : ให� sizeเท่�าก่�บ 10px (size=“10px”)
Noshade : ก่�าหนด้ให�เป็�นเส้�นค��นส้�เด้�ยวท่��งเส้�นex : ก่�าหนด้ attribute noshadeให�ก่�บ <hr>(<hr noshade>)
Align : ก่�าหนด้ต่�าแหน�งของเส้�นค��น ค�าท่��เป็�นได้�ค อ center, left และ rightex : ให� width เท่�าก่�บ 20px (width=“20px”)
www.rongrean.com Orjix
left center right
เพิ่$�ม่หม่ายเหต%เต&อนคำว็าม่จั�า <!-- …text here… --><h1>header</h1><!-- this is header -->
<p>how are you?<!-- this is paragraph-->
</p>
www.rongrean.com Orjix
No text here!?
No text here!?