0% found this document useful (0 votes)
12 views2 pages

HTML Notes

HTML (Hyper Text Markup Language) consists of elements represented by tags that structure web pages. Tags come in pairs, with a start tag and an end tag, and can be empty elements without content. Headings are defined using <h1> to <h6> tags, and their sizes can be customized with CSS.

Uploaded by

f9cy982v7r
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

HTML Notes

HTML (Hyper Text Markup Language) consists of elements represented by tags that structure web pages. Tags come in pairs, with a start tag and an end tag, and can be empty elements without content. Headings are defined using <h1> to <h6> tags, and their sizes can be customized with CSS.

Uploaded by

f9cy982v7r
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

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>

You might also like