HTML In Detail

About html

What is Html ?

HTML In Detail : HTML means Hypertext Markup Language, and it uses tags to identify content. It is used for making web pages and web applications.

Hypertext : The link available on a webpage is called Hypertext. And simply we can it Text within Text.

Markup Language : A text document with tags that tell a Web browser how to structure it to display.

Web Page : A hypertext document connected to the World Wide Web known as Webpage.


Basic HTML Document:

Example:

<!DOCTYPE html>
<html>
<head>
<title>This is document title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>Document content goes here…..</p>
</body>
</html>


Common Html Tag’s

<!DOCTYPE> : It defines the document type or about the version of HTML.

<html > :This tag informs the browser that it is an HTML document. Text between html tag describes the web document.

<head>: It is the first element inside the <html> element, it contains meta & title & closed before opening of body tag

<title>: The <title> tag is used inside the <head> tag to mention the document title.(Optional)

<body> : It represent document body & contain many other tags.

<h1> : This tag is used to make heading on a web page,& it has 6 level <h1>…<h6>.

<p> :This shows a paragraph on a web page.


HTML Structure

Example:

<html>
<head>
Document header related tags
</head>
<body>
Document body related tags
</body>
</html>

We will study all the header and body tags in subsequent chapters, but for now let’s see what is document declaration tag.


About <!DOCTYPE> :

                            The <!DOCTYPE> declaration tag is used by the web browser to understand the version of the HTML used in the document. Current version of HTML is 5 and it makes use of the following declaration –

Example : 

<!DOCTYPE html>

This !doctype tag have no closing tag like other tag’s .


Recommended Posts:

Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *