What is HTML and for what purpose it use?You know yes,may be know:) Many time people ask about HTML so we discuss about HTML.
What is the use of HTML
HTML consists of a series of short codes typed into a text-file by the site author these are the tags. The text is then saved as a html file, and viewed through a browser, like Internet Explorer or Netscape Navigator. This browser reads the file and translates the text into a visible form, hopefully rendering the page as the author had intended. Writing your own HTML entails using tags correctly to create your vision. You can use anything from a rudimentary text-editor to a powerful graphical editor to create HTML pages.
HTML describes the structure of a websitesemantically along with cues for presentation, making it a markup language, rather than a programming language.
HTML TAGS
HTML tags are what separate normal text from HTML code. You might know them as the words between the
<angle-brackets>
.
Example- <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>
<!DOCTYPE html> <html> <head> <title>Heading Example</title> </head> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html>
<b>These words will be bold</b>, and these will not.
In the example above, the
<b>
tags were wrapped around some text, and their effect will be that the contained text will be bolded when viewed through an ordinary web browser.
Paragraph Tag
In HTML <p> tag offers a way to structure your text into different paragraphs. Each paragraph of text should go in between an opening <p> and a closing </p> tag .
For Example
<!DOCTYPE html> <html> <head> <title>Paragraph Example</title> </head> <body> <p>Here is a first paragraph of text.</p> <p>Here is a second paragraph of text.</p> <p>Here is a third paragraph of text.</p> </body> </html>
HTML Centering Content
In HTML we use <center> tag to put any content in the center of the page or any table cell.
Example
<!DOCTYPE html> <html> <head> <title>Centring Content Example</title> </head> <body> <p>This text is not in the center.</p> <center> <p>This text is in the center.</p> </center> </body> </html>
HTML
Reviewed by Unknown
on
00:00
Rating:
