HTML DOC
In this chapter we will show some basic HTML examples.
Don’t worry if we use tags you have not learned about yet.
HTML Basic
The HTML document itself begins with <html>
and ends with </html>
.
All HTML documents must start with a document type declaration: <!DOCTYPE html>
.
The visible part of the HTML document is between <body>
and </body>
.
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
HTML Sintaks <p>Hello</p>
The <!DOCTYPE>
declaration represents the document type, and helps browsers to display web pages correctly.
It must only appear once, at the top of the page (before any HTML tags).
The <!DOCTYPE>
declaration is not case sensitive.
The <!DOCTYPE>
declaration for HTML5 is:
<!DOCTYPE html>