HTML เป็นตัวย่อมาจาก Hypertext Markup Language เป็นภาษาหลักที่ใช้ในการแสดงผลบนเว็บบราวเซอร์ในอินเตอร์เน็ท โดยสามารถนำเสนอข้อมูลตัวอักษร รวมทั้งเชื่อมต่อเพื่อ แสดงภาพ , เสียง และไฟล์ในรูปแบบอื่นๆ
ภาษา HTML จะแบ่งออกเป็น 2 ส่วน คือ
1. ส่วนของคำสั่ง (tag) เป็นส่วนที่กำหนดรูปแบบของข้อความที่แสดง
ซึ่งเราเรียกว่า Tag โดยจะอยู่ในเครื่องหมาย <...>
2. ส่วนของบทความทั่วๆไป เป็นส่วนของข้อความที่เราต้องการแสดงผลตัวอย่างการใช้งาน HTML
<html>
<head>
<title> This is title </title>
</head>
<body>
in body tag ^____^
</body>
</html>
Output
HTML Page Structure
<html>
<body>
</html>
<h1>This a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>HTML Tables
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
Output
HTML Hyperlinks (Links)
<a href="http://b4198.blogspot.com/" target="_blank">Visit my Blogger</a>
Output
Visit my Blogger
Reference
http://www.w3schools.com/html/default.asp
http://www.hellomyweb.com/index.php/main/tutorial/2/12
ไม่มีความคิดเห็น:
แสดงความคิดเห็น