Featured Post

HTML elements

With the help of coding we can create a web page or HTML document. For creating HTML document we need text editor and a browser.
For creating a html document
First of all we write in text editor
<html> which indicates that the document is a HTML document.and in the end o coding we write </html>.
HTML elements are fundamental of HTML. These elements are defined using HTML tags. HTML tags tells that how to represent in web page. followings are the basic html elements--- 
         

Ø <html>  : This tag is used for indicate that the document is an HTML document. Any HTML document  begins with <html>  or  <HTML> tag and ends with </html>  Or  </HTML> tag. The <html> tag contain the other html tags and documents . it is an optional tag.
Ø <head> : This tag is used for indicate the header section of the html document, generally which contains the title tag (<title>). It is always placed after the html tag.
Ø <title> : This tag is used for indicate the title of the html  page . For the help of this tage we can give the title of the page which is displayed on the bowsers title bar.
Ø <body> : This tag contains the all the texts , graphics , photos etc, with all  the html  tags which are used for control and formatting  of the page . In this tag one more thing can be seen that the <script> tag never placed inside of the body tag.
Ø Section heading tags :  section heading tags means the <h1> , <h2> , <h3>, <h4>, <h5>, <h6>    tags.             <h1>   tag defines the biggest heading . and <h6> is the smallest heading.
Ø Paragraph tag : Paragraph tag means  <p> tag or <p> defines a paragraph. The <p> tag creates some space before and after itself. The thing is that the <p>tag can have align attribute. The align attribute declears that  the align ment of the text within a paragraph. And the format is here ----                                                                                                                                              <p align=”right”>  or  <p align=”center”>  or  <p align=”left”>  or  <p align=”justify”> 
Ø Line break tag: <br> tag indicates the line break tag. The <br> tag forces a line to break. The <br> tag is called an empty tag. It has no closing tag.
Ø Horizontal tag : The <hr> tag denotes the horizontal line tag. The <hr> tag creates a horizontal line in html page. The tag is used to separate the content in HTML page.

Ø Unordered list & ordered list:  the <ul> tag denotes an unordered list. It closes with </ul> tag. The ordered list is placed by <ol> tag & is closed by  the </ol> tag,
Ø <b> tag: this is a container tag, and displays the text in boldface.
Ø <i> tag : it displays the text in italics.
Ø <font> tag: The <font> tag is used to add style, size, color to the text of the webpage.                                                                        e.g. <font size=”20”> , <font face=”arial black”>, <font color=”yellow”>
Ø <u> tag: This tag underlines the text inside the tag.
Ø <sup> and <sub> tag: <sup>tag displays the enclosed text in superscripts. And <sub> tag displays the enclosed text in subscripts.
These are the basic elements of the HTML.