What
Is HTML:-
HTML – Hypertext Markup Language, a standardized
system for tagging text files to achieve font, color, graphic, and hyperlink
effects on World Wide Web pages.
A simple Document of HTML
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Output:-
My First Heading
My first paragraph.
Example Tag Defination
1. The <!DOCTYPE html> defines
this document to be HTML5.
2. The <html> tag is
the root element of an HTML page
3.
The <head> tag contains meta information about the document
4.
The <title> tag specifies a title for the document
5.
The <body> tag contains the visible page content
6.
The <h1> tag defines a large heading
7.
The <p> tag defines a paragraph
HTML tags are used in the Angle Brackets
1.<Tag>....</tag>
2.HTML tag are simply used in the pairs – Open tag <tag>
and Close </tag>
3. The HTML tag are predefined.
The HTML program can run in any browser
like as: Crome, Safari, opera, firefox, IE, ect.
Headings |
Webpage Layout :-
<HTML>
<Head>
<Title>....</title>
</head>
<Body>
<Html>
<H1>Heading 1</H1>
<p>Paragraph</p>
<H2>Heading 2</H2>
<p>Paragraph</p>
</body>
Comments
Post a Comment