What is HTML
- HTML elements can have attributes
- Attributes provide additional information about the element
- Attributes come in name/value pairs like charset="utf-8"
HTML Document Structure
Below is a visualization of an HTML document (an HTML Page):
<html>
<head>
<title>Page title</title>
</head>
<body>
</body>
</html>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Note: Only the content inside the <body> section (the white area above) is displayed in a browser.
HTML Headings
HTML headings are defined with
<h1>
to <h6>
tags.<h1>
defines the most important heading. <h6>
defines the least important heading: Example
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
Comments
Post a Comment