introduction-to-html.png

Introduction to HTML

What is HTML?

  • HTML is the standard markup language used to create website web pages.
  • HTML Stands for (HyperText Markup Language).
  • HTML describes the structure of a web page.
  • In HTML Tags are used to create a web page.

Why We Need HTML

It is essential to learn HTML if you have to build a website. If you don’t have the knowledge about HTML you won’t able to create a website. Because HTML is the first step in web development. If you’re interested in web development you should learn HTML first.


Example:-

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

Output:-


HTML Element Example:-

  •  <html>:-  This element encloses everything inside of an HTML document. It includes such as tags, scripts, multimedia, stylesheets, etc.
  • <head>:- This element encloses the metadata of an HTML document which is not displayed in the main content of a document. Ex :- <meta>, <title>, <style> etc. these tags come inside <head> tag.
  • <title>:- Title tag is used to provide a title of your web page.   <title> ………………</title>  Whatever you write in the middle of this title tag will appear at the top of the page.

  Note:- Title tags only appear in the title bar of your page.

  • <body>:- The body element encloses the whole content of your webpage. All the tags such as <h1>, <p>, <li>, <ul>, etc come under the body tag.
  • <h1>:- This tag is used to provide a heading for your web pages. There are a total of seven types of heading. Ex:- h1, h2, h3, h4, h5, h6, h7 etc
  • <p>:- This tag is used to give a paragraph of your webpages. You can write anything inside in a paragraph tag.

These are the basic examples of HTML element

Thank You and Have a good day…!!!!