Introduction_To_HTML
Introduction_To_HTML
TO HTML
INTRODUCTION TO
HTML
HTML is a language for describing web pages.
HTML stands for Hyper Text Markup Language
HTML is not a programming language, it is a markup language
A markup language is a set of markup tags
HTML uses markup tags to describe web pages
INTRODUCTION TO
HTML
•HTML stands for Hyper Text Markup Language
•HTML is the standard markup language for creating Web pages
•HTML describes the structure of a Web page
•HTML consists of a series of elements
•HTML elements tell the browser how to display the content
•HTML elements label pieces of content such as "this is a
heading", "this is a paragraph", "this is a link", etc.
WORLD WIDE WEB
</body>
</html>
A SIMPLE HTML
DOCUMENT
<!DOCTYPE html> The <!DOCTYPE html> declaration defines that
<html> this document is an HTML5 document
<head>
<title>Page The <html> element is the root element of an
Title</title> HTML page
</head>
<body> The <head> element contains meta information
about the HTML page
<h1>My First
Heading</h1> The <title> element specifies a title for the HTML
<p>My first page
paragraph.</p>
The <body> element defines the document's
</body> body
</html> The <h1> element defines a large heading
The <p> element defines a paragraph
What is an HTML
element?
An HTML element is defined by a start tag, some content, and
an end tag:
<tagname> Content goes here... </tagname>
The HTML element is everything from the start tag to the end
tag:
</body>
</html>
The <!DOCTYPE>
Declaration
The <!DOCTYPE> declaration represents the document type, and helps browsers
to display web pages correctly.
It must only appear once, at the top of the page (before any HTML tags).
<!DOCTYPE html>
HTML Headings
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading.
<h6> defines the least important heading:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
HTML Links
HTML links are defined with the <a> tag:
<a href="https://www.abc.com">This is a link</a>
Easy to use
Loose syntax (although, being too flexible will not comply with
standards).
Supported on almost every browser, if not all browsers.
Widely used; established on almost every website, if not all
websites.
Very similar to XML syntax, which is increasingly used for data
storage.
Free - You need not buy any software.
Easy to learn & code even for novice programmers.
DISADVANTAGES OF HTML