HTML NOTES
HTML stands for Hyper Text Markup Language
HTML elements are the building blocks of HTML pages
HTML elements are represented by tags
HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
HTML Tags
HTML tags are element names surrounded by angle brackets:
<tagname>content goes here...</tagname>
HTML tags normally come in pairs like <p> and </p>
The first tag in a pair is the start tag, the second tag is the end tag
The end tag is written like the start tag, but with a forward slash inserted before the tag
name
Empty HTML Elements
HTML elements with no content are called empty elements.
<br> is an empty element without a closing tag (the <br> tag defines a line
break).
Use Lowercase Tags
HTML tags are not case sensitive: <P> means the same as <p>.
The <h1> element defines a heading.
<h1>My First Heading</h1>
The <p> element defines a paragraph.
<p>My first paragraph.</p>
The <body> element defines the document body.
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
The <html> element defines the whole document.
<html>
<body>
<h1>My First Heading</h1>
Common HTML Tags
<p>My first paragraph.</p>
</body>
</html>
Headings Are Important
<h1> headings should be used for main headings, followed by <h2> headings,
then the less important <h3>, and so on.
Bigger Headings
Each HTML heading has a default size. However, you can specify the size for any
heading with the style attribute, using the CSS font-sizeproperty:
<h1 style="font-size:60px;">Heading 1</h1>