Some Examples The DOCTYPE declaration defines the document type to be HTML The text between and describes an HTML document The text between
and provides information about the document The text betweenand
describes a heading The text betweenand
describes a paragraph Common Declarations For HTML HTML Headings Headings are defined with the to tags.
defines the most important heading. defines the least important 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 Paragraphs
Publishing any kind of written work requires the use of a paragraph. The paragraph tag is very basic and a great introductory tag for beginner's because of its simplicity.
The
defines the most important heading. defines the least important 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 Paragraphs
Publishing any kind of written work requires the use of a paragraph. The paragraph tag is very basic and a great introductory tag for beginner's because of its simplicity.
The
tag defines a paragraph. Using this tag places a blank line above and below the text of the paragraph. These automated blank lines are examples of how a tag "marks" a paragraph and the web browser automatically understands how to display the paragraph text because of the paragraph tag.
HTML Bold And Strong Formatting
The HTML element defines bold text, without any extra importance.
Hyper Links
This is used to redirect the page to another page.To do this we use tag
target Attribute
This attribute used to open the given link in a required webpage
Types In Targets Attributes
There are 4 Types of attribures
_blank
_self
_top
_parent
_blank In Target Attribute
The link page is opened in the new tab in browser
_self In Target Attribute
The link page is opened in the Same tab in browser
_parent In Target Attribute
The link page is opened in the parent page
_top In Target Attribute
The link page is displayed in the full body of the window
Lists
These lists are used to arrange the text in an single order. There are 3 types of list in Html
Ordered list
UnOrdered list
Description list
Ordered List
An ordered list starts with the tag. Each list item starts with the
Type Attribute In Ordered List
This attribute is used to change the mark of the list given
Default type for ordered list is 'numbers'.
Syntax :
Unordered List
An Unordered list starts with the tag. Each list item starts with the
HTML Text Formatting Elements
If you use a word processor, you must be familiar with the ability to make text bold, italicized, or underlined; these are just three of the ten options available to indicate how text can appear in HTML and XHTML.
In the previous chapter, you learned about HTML styling, using the HTML style attribute.
HTML also defines special elements, for defining text with a special Meaning
Formatting elements were designed to display special types of text:
Bold text
Important text
Superscripts
Italic text
Emphasized text
Deleted text
Type Attribute In Unordered List
This attribute is used to change the bullets of the list given
Default type for Unordered list is 'disc'.
Syntax :
Description List
A description list is a list of terms, with a description of each term. The tag defines the description list, the