2. HTML хэл, түүний хэрэглэх дүрэм
Бичвэр бүтэцлэх элемент
Элемент ба шинж
2
3. <html>
<head> html
<title>
Гарчиг
body head
</title>
</head>
p title
<body>
<p>Бичвэр</p>
text text
</body> content content
</html>
HTML бол мод бүтэцтэй баримт
Bold and Italic Text illustrates the key principle of HTML, nesting. Arrows should not cross if they do then you have them incorrectly nested and the HTML will not be understood by the browser and the text will not be displayed as intended.
The basic HTML page begins with the tag <html> and ends with </html>. In between, the file has two sections - the header and the body. The header - enclosed by the <head> and </head> tags - contains information about a page that won't appear on the page itself, such as the title. The body - enclosed by <body> and </body> - is where the action is. Every thing that appears on the page is contained within these tags.