HTML

WHAT IS HTML?

HTML

HTML is a language for describing web page. It stands for hyper text markup language. It is a markup language that is described by different web browser like internet explorer ,mozala fire fox etc.HTML consist of a set of markup tags which a web browser can reads and translates and displays to a web page according to the commends are give in the HTML code.

HTML TAG

HTML tags are usually called markup tags. A HTML tag is made by a keyword which is surrounded by angle brackets like <p>. The function of tags is to tell browser where a given element starts and where it ends and how it should handle the content within these elements. The HTML tags normally come in pairs like <p>and </p>.

ELEMENT OF A HTML DOCUMENT

Elements of a HTML document represent different parts of the document which consist of three or one parts. Most elements have three parts: an opening tag, some content and a closing tag. Without these elements, anyone can not structure an html document. Like opening tag = <p>, this a paragraph and closing tag =</p>

ATTRIBUTES

For further defining and formatting a content of an element, attributes are used with a value as a parameter. It can only be included in side the opening tags, behind the element like <p align="value">this is a centered paragraph</p>

 

HTML STRUCTURE

Example:-




EXAMPLE EXPLAINED:-

  • The text between <html> and </html> describes the website.
  • The text between <body> and </body> is the visible content.
  • The text between <h1> and </h1>is displayed as heading.
  • The text between <p> and </p> is displayed as a paragraph.
  • The text between <p align="center"> and </p> is diplayed as a center paragraph.
 
 
Today, there have been 1 visitors (1 hits) on this page!
This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free