The basic of html is explained as documents in HTML are divided into two main parts: First part is the head and second part is the
body. When you start to create a new page , it must have the following tags declaration: <!DOCTYPE html>
. It's telling the browser that file is in HTML5 file. For create a webpage there are four basic tags described as: <html>
, <head>
, <title>
and <body>
.
We hope you will enjoy it.
Basic Syntax of HTML
HTML syntax is define as The format in which the collection of the words and phrases are arranged to create sentences.
HTML is using tags for its syntax to arrange the sentences.
In HTML Every tag is composed with special characters like: <
, >
and /
.
In the study of a language like HTML, syntax skills are very important because they help the learners in understanding the structure of the language in a systematic and structural way.
Basic syntax
<
!DOCTYPE
html
>
<
html
>
<
head
>
<
title
>
<
/title
>
<
/head
>
<
body
>
<
/body
>
<
/html
>
Explanation
<
!DOCTYPE
>
Doctype is used to tell the browser about the current
version of HTML, While this not an element or tag of HTML.
And declaration of doctype is NOT case sensitive.
<
html
>
Represent the html instructions. This should inserted
after doctype declaration.
<
head
>
Represent the header area which tells about itself(metadata). This part does not
display.
<
body
>
Represent the body area which will show all the entered data on web page.
<
title
>
This is used to show title of the page on the title bar. element is inserted
between head tag.
Comment here
If you have any query, if you want to know something about any of technical course related to computer science field, if you have any suggestion about relevant to uploaded content or if you anything wrong here (any mistake in content) than please contact us. Keep in mind, comment should be according to community guidelines.