In: Computer Science
What is HTML?
HTML means Hypertext Markup Language. HTML is developed by Tim Berner Lee in 1990.HTML comprise of elements and these,elements are building blocks of HTML pages. HTML is not a programming language and it do not have,capability to make the dynamic pages.User create paragraphs, links, headings for web pages and applications from HTML. It is assisted by the technologies like scripting language JavaScript and Cascading Style Sheets i.e. CSS.
The elements play an important role in structure of the web page designed using HTML. HTML element is the collection of start tag ,its attribute, an end tag and its attribute inbetween. Web browser receives HTML documents from local storage or web server and browser engine convert them into multimedia web pages.
Anatomy of HTML element.
<p>My Name is John</p>
<p> is called the opening tag. This states where the element begins.
My Name is John is content. This is the text of the element.
</p> is called closing tag. This states where the element ends.
The complete structure is known as element.
HTML Markup consist of several components like tags, character references, character based data types.
Features of HTML are:
Example of HTML program for creating a web page:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
</body>
<h1>Introduction to HTML</h1>
<p>This is start of paragraph</p>
</body>
</html>
where <!DOCTYPE> defines the document type means which version of html is used.
<html> defines the root of the document.
<head> contains the information of the document.
<h1> to <h6> defines HTML headings
<body> defines body of the document.
<p> tag defines the paragraph of document.
output can be shown as:
Introduction to HTML
This is start of paragraph.