Showing posts with label Html Heading. Show all posts
Showing posts with label Html Heading. Show all posts

Tuesday, December 25, 2018

Heading tag Description.

TAG DESCRIPTION:-


  • <HTML> :- Defines the root of an HTML document.
  • <BODY> :- Defines the document's body.
  • <HEAD> :- A container for all the head elements (title, scripts, styles, meta information, and more).
  • <H1> TO <H6> :- Defines HTML headings.
  • <HR> :- Defines a thematic change in the content.

Head html.

HTML  HEAD:-

<html>
<head>
  <title>My First HTML</title>
  <meta charset="UTF-7">
</head>
<body>

<p>The HTML head element contains meta data.</p>
<p>Meta data is data about the HTML document.</p>

</body>
</html>

OUTPUT:-

  • The HTML head element contains meta data.
  • The HTML head element contains meta data.
  • The HTML <head> element has nothing to do with HTML headings.
  • The <head> element is placed between the <html> tag and the <body> tag.

Horizontal tag.

HORIZONTAL RULE:-

<html>
<body>

<h1>This is heading 1</h1>
<hr>

<h2>This is heading 2</h2>
<hr>

<h3>This is heading 2</h3>

</body>
</html>

OUTPUT:-


  • The <hr> tag defines a thematic break in an HTML page.
  • Displayed as a horizontal rule.
  • The <hr> element is used to separate content in an HTML page.

Html headings.

HTML HEADING:-

<html>
<body>

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

</body>
</html>

OUTPUT:-


  • Headings are defined with the <h1> to <h6> tags.
  • <h1> defines the most important heading. <h6> defines the least important heading.
  • Search engines use the headings to index the structure and content of your web pages.
  • Users skim your pages by its headings. It is important to use headings to show the document structure.
  • <h1> headings should be used for main headings, followed by <h2> headings, then the less important<h3>, and so on.

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...