facebooktwittermyspaceYouTube

HTML Codes and tags to help you

In this page I am gonna let you know some easy HTML codes.

HTML- Hyper Text Markup Language

For knowledge- Tim Berners in 1990 designed the orignal HTML document type. It is being developed till now.

Starting- The HTML element consists of a less than sign (<)followed by the name of tag and closed by a greater than sign(>).

HTML Element- The first HTML element used in HTML document is the<html>, that is used to write a document structure. It enclose the whole document elements within starting and ending tags. It is closed by</html>

HEAD Element- it refers to the head portion.

Example:

<html>

<head>head elements</head>

<body>body elements</body>

</html>

Title Element- This element is used to show the title of the document.

Example:

<head>

<title>Teen Tech Blogger</title>

</head>

Body element- This part of HTML document contains all the other elements except the HEAD element.

Example: <body>

……..document contents….</body>

Attribute

Background Attribute

Example: <body background= www.disney.com>

</body>

Bgcolor Attribute

Example: <body bgcolor= “red”>

: contents

</body>

TEXT Attribute

Example: <body text = “black”>

: contents

</body>

LINK(link color), VLink(visited link’s colour), ALink(active link’s colour) Attributes

Example: <body link = “yellow’ vlink = “blue’>

<alink= “red”>

: contents

</body>

Margin Attributes

It is used to left margins.

Example: <body left margin = “50’> ….[replace left with centre, right as your wish]

:content

</body>

Division Element

Used to divide the content into different sections

Enclose the content in

<div>….content….</div>

Headline Element

In HTML you can define 6 levels of headings.

<h1…content…</h1>

<h2…content…</h2>

and so on…

Align

This is used to place the display of content wherever required.

<align= left>..content..</align>

<p> element

<p> indicates paragraph.

E.g.: <p>…content…</p>

<a href>element

<a href> is used to link to any thing

E.g.: <a href> www.coolabhay.com/factbook</a>

Font element

This is used to let you specify the size, color ,and face type to be displayed.

Size Attribute

E.g.: <font size= 4>changes the font size to four</font>

Color Attribute

E.g.: <font color= “blue”></font>

Face Attribute

E.g.: <font face=”arial”></font>

Some other you would like.

Strike element

Used to show characters crossed.

E.g.: <strike>Smoking</strike>

Sub element

Here sub stands for subscript.

E.g.: H<sub>2</sub>O

Sup element

Here sup stands for superscript.

E.g.: Google<sup>TM</sup>

I hope this would help you some day.

Please leave comments about my blog.

Bookmark and Share

Have an opinion? Leave a comment:

Name
Mail
Website

You can add images to your comment by clicking here.