HTML HEADINGS
Droid :: Web development :: Learn html
Page 1 of 1
HTML HEADINGS
HTML Headings
Headings are defined with the- Code:
<h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading.
Example
- Code:
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Note: Browsers automatically add some empty space (a margin) before and after each heading.
Headings Are Important
Use HTML headings for headings only. Don't use headings to make text BIG or bold.
Search engines use your 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 main headings, followed by h2 headings, then the less important h3, and so on.
HTML Horizontal Rules
The
tag creates a horizontal line in an HTML page.
The hr element can be used to separate content:
Example
- Code:
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
The HTML Element
The HTML element has nothing to do with HTML headings.
The HTML element contains meta data. Meta data are not displayed.
The HTML element is placed between the tag and the tag:
Example
- Code:
<!DOCTYPE html>
<html>
<head>
<title>My First HTML</title>
<meta charset="UTF-8">
</head>
<body>
The HTML Element
The HTML The title will not be displayed in the document, but might be displayed in the browser tab.
The HTML Element
The HTML element is also meta data.It can be used to define the character set, and other information about the HTML document.
More Meta Elements
In the chapter about HTML styles you discover more meta elements:The HTML element is used to define internal CSS style sheets.
The HTML element is used to define external CSS style sheets.
HTML Tip - How to View HTML Source
Have you ever seen a Web page and wondered "Hey! How did they do that?"To find out, right-click in the page and select "View Page Source" (in Chrome) or "View Source" (in IE), or similar in another browser. This will open a window containing the HTML code of the page.
Droid :: Web development :: Learn html
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum