HTML Introduction

What is HTML?

HTML is stands for Hyper Text Markup Language,it is easy and fun to learn.

HTML describes the structure of web pages.

HTML 5 is the fifth and current major version of the HTML standard.


Why HTML 5?

It is essential to learn HTML if you want to build web sites,you can't build one if you don't know HTML because it's one of the prerequisites in learning other languages used for web development.

Let's Begin HTML with Hello World! program.


Example:

<!DOCTYPE html>
<html>
<head>
    <title> Hello World!</title>
</head>
<body></body>
   <h1>This is a Heading.</h1>
    <p>This is Paragraph.</p>
</body>
</html>

Output:

   This is a Heading.

     This is a Paragraph.


Example Explained: 

1.<!DOCTYPE html> this declares the document type which is HTML5.
2.<html> this element encloses everything inside of an html document; it includes tags, element, style sheets, script, text, multimedia and lot a more.
3.<head> this element defines the meatdata of a document which will not be displayed on the main content of a webpage; this could include style sheets,scripts,<title>,<meta> tags and lot more.
 4.<title> this element defines the title of a webpage; it apeears on the upper-part of a browser
5.<body> this element encloses element like <h1>,<p>,<img>,<b>,<i> and a lot more.
6.<h1> this element defines a heading.
7.<p> this elemnent defines a paragraph
            
    
                                                                                

Post a Comment

Post a Comment (0)