HTML
Introduction
- HTML is a language for describing web pages.
- HTML stands for Hyper Text Markup Language
- HTML is a markup language
- A markup language is a set of markup tags
- The tags describe document content
- HTML documents contain HTML tags and plain text
- HTML documents are also called web pages
Hypertext
Markup Language (HTML)
is the main markup language for creating web pages and other information that can be displayed in a web browser.
HTML is written in the form of HTML
elements consisting of tags enclosed in angle brackets (like
<html>), within the web page content. HTML tags most
commonly come in pairs like <h1> and </h1>, although some tags, known as empty elements, are unpaired,
for example <img>. The first tag in a pair is the start tag, the second tag is
the end tag(they are also
called opening tags and closing
tags).
HTML
Description
H-T-M-L are initials that stand for Hypertext Markup Language
(computer people love initials and acronyms -- you'll be talking acronyms ASAP).
Let me break it down for you:
Hyper is the
opposite of linear. It used to be that computer programs had to move in a
linear fashion. This before this, this before this, and so on. HTML does not
hold to that pattern and allows the person viewing the World Wide Web page to
go anywhere, any time they want.
Text is what you
will use. Real, honest to goodness English letters.
Mark up is what you
will do. You will write in plain English and then mark up what you wrote. More
to come on that in the next Primer.
Use of HTML
HTML is a set of codes that a website
author inserts into a plain text file to format the content. The author inserts
HTML tags, or commands, before and after words or phrases to indicate their
format and location on the page. HTML tags are also used to add tables, lists,
images, music, and other elements to a webpage.
Example of HTML
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
HTML Code
<html>
<head>
<title>My Web Page!</title>
</head>
<body>
<p>Once upon a time...</p>
</body>
</html>
Display
You should see "My Web Page!" in the upper-left bar of your browser window.
And the output will be “Once upon a time…”



0 comments:
Post a Comment