General format of HTML coding
HTML WRITING TOOLS
For designing our website we
required many software, for running our website and for writing it’s coding and
may more software for many other actions as well.
1. NOTEPAD: This notepad software is used for writing HTML coding.
It’s a platform which is used for writing HTML codes.
2. BROWSER: it is a
software that we uses for running our HTML coding. Many platforms are available
for running our codes, those platforms are that we commonly uses: Google
chrome, Microsoft Internet Explorer and many more, but these two are mostly
used.
HTML DOCUMENT STRUCTURE
Each and every HTML coding is
consists of tags and attributes.
A tag is a HTML command that controls the structure and appearance of the pages or documents that is created. All tags are written in angle brackets (< >).
Every tag has special properties which are called as attributes. An attribute is a string that conveys the additional information about a specific tag, like: properties of size, colour and style etc.
EXAMPLE: <BODY> is a tag
TYPES OF ELEMENTS:
There are 2 types of elements i.e.
1. Container elements: these are
those HTML elements which required both opening and closing tag. The closing
tag used back slash (/).
EXAMPLE: <HTML> opening tag </HTML>
closing tag
2. Empty elements: these are those HTML elements which
have only opening tag. There is no requirement of closing tag.
EXAMPLE: <BR>,
<HR>, <IMG>
There are 2 types of elements i.e.
GENERAL FORMAT OF HTML CODING
There is a complete set of format
for writing HTML coding, which is compulsory to follow. The general format of
HTML coding is given below:
<HTML>
<HEAD>
<TITLE> the title of the webpage
</TITLE>
</HEAD>
<BODY>
HELLO HERE WE ARE STUDING ABOUT HTML
</BODY>
</HTML>
</HEAD>
<BODY>
HELLO HERE WE ARE STUDING ABOUT HTML
</BODY>
</HTML>
Every HTML document begins and ends with <HTML> and </HTML> tags. These tags specifies the written document is HTML document.
Syntax: <HTML>
</HTML>
This tag is used to define the head section of a HTML document. It is written within the <HTML> tag.
Syntax: <HTML>
-------
</HEAD>
</HTML>
This tag is used to write the title of our HTML webpage. It is written within the <HEAD> tag.
Syntax: <HTML>
<TITLE> First page
</TITLE>
</HEAD>
</HTML>
</HEAD>
</HTML>
This is the main and largest part of the HTML document. This tag is consists of all the attributes and tags which are applied on the content of our web page and the content written inside this tag is visible on our webpage.
Syntax: <HTML>
<TITLE> First web page
</TITLE>
</HEAD>
<BODY>
HELLO WORLD!!
</BODY>
</HTML>
</HEAD>
<BODY>
HELLO WORLD!!
</BODY>
</HTML>
<BODY> tag should start after the ending the </HEAD> tag.
Nice
ReplyDeleteGood
ReplyDelete