Skip to main content

HTML

What is HTML ? 

Before we going to start about the HTML, firstly we would like to clarify about what the HTML really is, most of us even before some times ago i also know that it's a programming language but that's not.
HTML stands for Hyper Text Markup Language, it's a Markup language that is use for creating simple webpages.
There is a proper/basic format i.e,
<!DOCTYPE html>
<html>
<head>
<title>
</title>
</head>
<body>
.........................
........
....
...........
</body>
</html>



Important:- For writing any kind of code you need any text editor, but in HTML you don't require any special code editor, you can write your code on your in built text editor for windows Notepad, for Ios  Text edit.
If you want you can download Notepad++.

After writing your code in notepad save as the file with .html extension.

HTML Tags :- 

What are HTML tags ?

HTML tags are the hidden keywords within a web page that define how your web browser must format and display the content.

There are two types of tags:--
1. Container Tag:- It has opening and closing tag (i.e., <opening tag> and </closing tag>)
2. Empty Tag :- It has only one opening tag it does not need to be closed

We'll explain it to you later.

Basic Tags:---

 <!DOCTYPE>  Defines the document type
<html>               Defines an HTML document
<head>               Defines information about the document
<title>                Defines a title for the document
<body>              Defines the document body
<h1>to<h6>      Defines HTML headings
<p>                    Defines a Paragraph
<br>                  Insert a single line break
<hr>                  Defines a thematic change in the content
<!--....-->          Defines a comment.


<tagname> Content goes here </tagname>

for example if we want to print "Hello World"

<!DOCTYPE html>
<html>
<head>
<title>
First Page
</title>
</head>
<body>
<h1> Hello World
</h1>
</body>
</html>

Code:-

 
OUTPUT:- 





For more details and up to date knowledge please like our Facebook page 

Soon we are going to start our Youtube channel so can learn easily and we start live classes on HTML/ CSS and Python classes.












Comments

Post a Comment