New Final HTML Note
New Final HTML Note
</body>
</html>
HISTORY OF HTML
HTML Versions
Since the early days of the web, there
have been many versions of HTML
HTML SYNTAX
HTML tags keywords are surrounding in Opening
Tag <html> and Closing Tag</html>.
HTML tags is pairs like <body> and </body>. Its
container tags.
Some HTML tags is not pairs in Opening and
Closing like <br />, <hr />. It's empty tags.
All tags are write in Lower Alphabetical and empty
tags always write in closing Tag type like <br />.
HTML Document Content Structure
HTML Document Structure
The HTML document is mainly divided into two sections-Head
section and Body section.
<HTML> This tag recognizes the document as a HTML
document.
<HEAD> This tag identifies the beginning and end of the
Header section.
<TITLE> This tag is used to place the text in the title bar of
the browser windows.
<BODY> This tag recognizes the beginning and end of the
Body section.
Example
<HTML>
<HEAD>
<TITLE>My first Web Page</TITLE>
</HEAD>
<BODY>
Welcome to My Home Page!
</BODY>
</HTML>
Google chrome
Mozilla firefox
Internet explorer
Safari
opera
Example Explained
The DOCTYPE declaration defines the document type to be HTML
The text between <html> and </html> describes an HTML document
The text between <head> and </head> provides information about the
document
The text between <title> and </title> provides a title for the document
The text between <body> and </body> describes the visible page
content
The text between <h1> and </h1> describes a heading
The text between <p> and </p> describes a paragraph
Heading Tags
Heading tags are used for emphasizing the topic of the text that
follows the heading. There are six levels of heading tags used in
HTML from <H1>…</H1> to <H6>…</H6>. The <H1> tag
gives the biggest font while <H6> tag gives the smallest font.
<Tag Attributes Values>
<H1>…</H1> Align Left, Center, Right
<H2>…</H2>
………………
………………
<H6>…</H6>
Example of Heading Tag
<HTML>
<HEAD>
<TITLE>Using Heading Tags</TITLE>
</HEAD>
<BODY>
<H1>Computer Point Nepal</H1>
<H2>Itahari-1, Sunsari Sangit Chowck</H2>
<H3>Phone:025-541048</H3>
</BODY>
</HTML>
Font Tags
<FONT>…</FONT> tag is used for setting the size, color
and face of any text on a web page.
The Size attribute can take any value from 1( tiny ) to 7( big ),
with 3 being the normal size.
The Color attribute can take any of the following standard
color names: black, white, red, green, blue, yellow, aqua,
fuchsia, gray, lime, maroon, navy, olive, silver, or teal.
The Face attribute can take any font name.