HTML BASIC

Fazzey's world



HTML Basic

The <html> element is the root element and it defines the whole HTML document. 
  • It has a start <html> tag and end with </html> tag.

The Basics Of HTML Tags

<html>             <p>   
<head>             <img>
<title>              <a>
<body>            <div>
<h1>                <span>

HTML Document:

  • HTML document must start with the document type in <!DOCTYPE html>.
  • In HTML document begins with <html> tag and ends with</html> tag.
  • The main visible part in html document is <body> tag and </body> tag.

Syntax:

<!DOCTYPE html>
<html>
<body>
<h1>This is the Heading</h1> 
<p>This is the Paragraph</p>
</body>
</html>

HTML <!DOCTYPE>:

  • The <DOCTYPE> declaration for HTML5.
  • The <DOCTYPE> is not a case sensitive.
  • The <DOCTYPE> represents the document type and it helps browser can display the web pages.

Syntax:

<DOCTYPE html>

HTML Heading:

  • HTML headings are consists as <h1> tag to </h1> tag.
  • It provide us with six heading tags available from<h1> to <h6>.
  • Every tags can display with different style and font size can be changed. 

Syntax:

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

HTML Title:

  • HTML document can mention the title of the web page using <title> tag.
  • This <title> tag was very important for Search Engine Optimization (SEO).

Syntax:

<title>This is the title tag</title>

HTML Paragraph:

  • HTML paragraph <p> tag can helps to write a paragraph statements on the web page.
  • It can start with the <p> tag and end with </p> tag.

Syntax:

<p>This is the paragraph tag</p>




More topic in HTML

Our website uses cookies to enhance your experience. Learn More
Accept !

GocourseAI

close
send