HTML basics. the barebones of web.
HTML basics. the barebones of web.
HTML stands for Hyper Text Markup Language. its the barebones of the web development

[HTML ]

Jun 12, 2021

HTML stands for Hyper Text Markup Language HTML is used for creating web pages and websites.

Boilerplate Code

<html>
  <head>
    <title>Hello</title>
  </head>
  <body></body>
</html>

The <html> tag is used to define an HTML document. The <head> tag contains meta information about HTML page. The <title> tag is used to define Title for HTML page. The <body> tag everything we need in html page like images, text, links, tables and many more.

HTML Comments

Comments are piece of code ignored by browsers. Comments are used to indicate sections or to keep notes.

<!-- This is comment and will be ignored by browser -->

<h1>Hello</h1>

<!-- This is the example of 
     multi line comment
     Multiple line comment 2 -->

Headings Tag <h1>... <h6>

<h1>Level 1 Heading</h1>
<h2>Level 2 Heading</h2>
<h3>Level 3 Heading</h3>
<h4>Level 4 Heading</h4>
<h5>Level 5 Heading</h5>
<h6>Level 6 Heading</h6>

Paragraph Tag <p>

<p> tag is used to structure your text into different paragraphs.

<p>This is the paragraph</p>

Pre-Formatted Text Tag <pre>

<pre> tag is defines pre-formatted text.

<pre> Hello World </pre>
<pre> This is pre-formatted text example </pre>

Code Tag <code>

Code tag is used to define code block.

<code>
  print("Hacking NASA using HTML...")
  print("Hacking Failed Successfully")
</code>

Division Tag <div>

<div> tag is used to make division or block in document.

<div>
  <p>This is example of div tag</p>
</div>

to be continue...