The document discusses HTML elements and tags that are used to structure an HTML page, including the <!DOCTYPE html> declaration, <html>, <body>, and <h1>-<h6> heading tags. It provides examples of how to define different levels of headings in HTML using tags like <h1> for the most important heading and <h6> for the least important.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
27 views
Learn About Coding
The document discusses HTML elements and tags that are used to structure an HTML page, including the <!DOCTYPE html> declaration, <html>, <body>, and <h1>-<h6> heading tags. It provides examples of how to define different levels of headings in HTML using tags like <h1> for the most important heading and <h6> for the least important.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
Learn About Coding
Discovering HTML & Tags
HTML elements are the building blocks of HTML pages.
The <!DOCTYPE html> declaration defines this document to be HTML5
The <html> element is the root element of an HTML page The lang attribute defines the language of the document The <meta> element contains meta information about the document The charset attribute defines the character set used in the document The <title> element specifies a title for the document The <body> element contains the visible page content The <h1> element defines a large heading The <p> element defines a paragraph
All HTML documents must start with a document type declaration: <!DOCTYPE
html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
HTML headings are defined with <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important
heading
- HTML Headings
EX: <!DOCTYPE html> <html> <body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html>
Hasil:
This is heading 1 This is heading 2 This is heading 3