HTML Introduction
HTML :
Html stands for “Hyper
Text Markup Language”. HTML is not a programming
Language It is a formatting Language.
What is HTML?
Ø HTML
represents Hyper Text Markup Language
Ø HTML is the standard markup language for making Web pages
Ø HTML portrays
the structure of a Web page
Ø HTML
comprises of a progression of components
Ø HTML
components advise the program on how to show the substance
Tags and attributes:
Html commands are known as tags Html
tags are surrounded by
Angle brackets “<tag-name>”
this one is called staring tag
And </tag-name>” this one
called a closing tag.
Example:
A
simple html documents
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph
</p>
</body>
</html>
Model Explained
1. The <!DOCTYPE html>
presentation characterizes that this report is a HTML5 archive
2. The <html> component is
the root component of a HTML page
3. The <head> component
contains meta data about the HTML page
4. The <title> component
indicates a title for the HTML
5.
6. The <body> component
characterizes the record's body, and is a compartment for all the noticeable
substance, for example, headings, sections, pictures, hyperlinks, tables, records,
and so forth
7. The <h1> component
characterizes a huge heading
8. The <p> component
characterizes a section
What is an HTML Element?
An HTML element is defined
by a start tag, some content, and an end tag:
<tag-name>Content...</tag-name>
The HTML element is everything from the start tag
to the end tag:
<h1> Heading</h1>
<p>
paragraph.</p>
Basic HML document
Structure:
<HEAD> </HEAD>
<BODY> </BODY>
</HTML>
Display a simple message on the web page:
1.Open notepad and type the following code
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
3.Double click the file. The web page will appear in the browser as below?
Comments
Post a Comment
Please do not enter any spam link in the comment box