<h1> characterizes the most essential heading.
<h6> characterizes the minimum essential heading
Example
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Headings Are Important
Use HTML headings for headings just. Don't utilize headings to make message BIG or striking.Internet searchers utilize your headings to file the structure and substance of your pages.
Clients skim your pages by its headings. It is vital to utilize headings to demonstrate the report structure.
h1 headings ought to be primary headings, took after by h2 headings, then the less essential h3, et cetera.
HTML Horizontal Rules
The <hr> tag makes a level line in a HTML page.The hr component can be utilized to independent substance:
Example
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
The HTML <head> Element
The HTML <head> component has nothing to do with HTML headings.The HTML <head> component contains meta information. Meta information are not showed.
The HTML <head> component is set between the <html> tag and the <body> tag:
Example
<!DOCTYPE html>
<html>
<head>
<title>My First HTML</title>
<meta charset="UTF-8">
</head>
<body>
.
.
.
<html>
<head>
<title>My First HTML</title>
<meta charset="UTF-8">
</head>
<body>
.
.
.
The HTML <title> Element
The HTML <title> component is meta information. It characterizes the HTML archive's title.The title won't be shown in the archive, however may be shown in the program tab.
The HTML <meta> Element
The HTML <meta> component is likewise meta information.It can be utilized to characterize the character set, and other data about the HTML archive.
More Meta Elements
In the part about HTML styles you find more meta components:The HTML <style> component is utilized to characterize interior CSS templates.
The HTML <link> component is utilized to characterize outside CSS templates.
HTML Tip - How to View HTML Source
Have you ever seen a Web page and pondered "Hey! How could they have been able to they do that?"To discover, right-click in the page and select "Perspective Page Source" (in Chrome) or "Perspective Source" (in IE), or comparative in another program. This will open a window containing the HTML code of the page.
HTML Tag Reference
W3Schools' tag reference contains additional information about these tags and their attributes.
You will learn more about HTML tags and attributes in the next chapters of this tutorial.
Tag | Description |
---|---|
<html> | Defines an HTML document |
<body> | Defines the document's body |
<head> | Defines the document's head element |
<h1> to <h6> | Defines HTML headings |
<hr> | Defines a horizontal line |
No comments:
Post a Comment