Pages

Powered by Blogger.

Thursday, June 20, 2013

២. ទំរង់​ទូ​ទៅ​របស់ HTML

HTML មាន​ចែក​ជា​ពីរ​ផ្នែក​ធំ​ៗ គឺ tag Header និង tag Body ហើយ tag ទាំង​ពីរ​នេះ ត្រូវ​ស្ថិត​នៅ​ក្នុង tag HTML។


ខាង​ក្រោម​នេះ គឺ​ជា​ទំរង់​ទូទៅ​របស់ HTML៖
?
1
2
3
4
5
6
7
<html>
<head><title>Name of Page</title></head>
<body>
// any tag here
</body>
</html>
/pre
- <title> គឺជា tag ដែល​យើង​ប្រើ​សម្រាប់​កំណត់​ចំណង​ជើង​ឲ្យ​ទំព័រ​របស់​យើង ដែល​វា​នឹង​បង្ហាញ​នៅ​លើ title bar របស់​កម្ម​វិធី​រុករក (Browser)។​
- <html> គឺជា tag ដែល​យើង​ប្រើ​ដើម្បី​បើក​នៅ​ពេល​ដែល​ចាប់​ផ្តើម​ដំបូង​និង​នៅ​ពេល​បញ្ចប់​នៃ Page របស់​យើង​។
- <body> គឺ​ជា tag សម្រាប់​ឲ្យ​យើង​សរសេរ​កូដ​ផ្សេង​ដើម្បី​បង្ហាញ​នៅ​លើ​Page របស់​យើង ។
ឧទាហរណ៍
?
1
2
3
4
5
6
7
<html>
<head><title>Name of Page</title></head>
<body>
<h2>What is html?</h2>
<p>HTML is a make up language and it stand by Hypertext Make Up Language.</p>
</body>
</html>



២. ទំរង់​ទូ​ទៅ​របស់ HTML
ប្រភព http://learning.itkonkhmer.com/html/p=169

0 comments:

Post a Comment

 

Blogroll

About

no have

a