Introduction of HTML.
HTML is a hypertext markup languages
Its basically just a text file with codes that tell the browser how to display the information.
For example,
you can let the browser know
that a certain string of text should be displayed as a header with bold font, or that the text should be centered on the page.
file extension
.html rather than .doc or .txt or .rtf.
A website is made up of multiple HTML pages. So each HTML file is a single web page.
html file no different than any other, but it has the name index that tells the
etc. These other pages can be in the home directory or you can make a folder on your server and place the pages in there.
Basic format of HTML
- The
<!DOCTYPE html>declaration defines that this document is an HTML5 document - The
<html>element is the root element of an HTML page - The
<head>element contains meta information about the HTML page - The
<title>element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab) - The
<body>element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. - The
<h1>element defines a large heading - The <p>element defines a paragraph
Example
<html>
<head>
<title>
html program</title>
</head>
< body>
<h1>This is heading</h1>
<p>This is paragraph.......</p>
</body>
</body>
</html>
Output -
This is heading
This is paragraph
Header Tag
There are six types of header tag. We use in coding to format then how to use this follows
<h1>Helloworld!
<h2>Hello world!

0 Comments