Review:
Introduction To HTML
What is an HTML File?
· HTML stands for Hyper Text Markup
Language
· An HTML file is a text file
containing small markup tags
· The markup tags tell the Web
browser how to display the page
· An HTML file must have an htm or
html file extension
· An HTML file can be created using
a simple text editor
<html>
<head>
<title>Title
of page</title>
</head>
<body>
This
is my first homepage. <b>This text is bold</b>
</body>
</html>
|
HTM or HTML Extension?
When you save an HTML file, you
can use either the .htm or the .html extension. We have used .htm in our
examples. It might be a bad habit inherited from the past when some of the
commonly used software only allowed three letter extensions.
With newer software we think it will be perfectly safe to use .html.
· HTML
tags are used to markup HTML elements
· HTML
tags are surrounded by the two characters < and >
· The
surrounding characters are called angle brackets
· HTML
tags normally come in pairs like <b> and </b>
· The
first tag in a pair is the start tag, the second tag is the end tag
· The
text between the start and end tags is the element content
· HTML
tags are not case sensitive, <b> means the same as <B>
HTML Elements
Remember the HTML example from
the previous page:
<html>
<head>
<title>Title
of page</title>
</head>
<body>
This
is my first homepage. <b>This text is bold</b>
</body>
</html>
|
HTML Tags
· HTML
tags are used to markup HTML elements
· HTML
tags are surrounded by the two characters < and >
· The
surrounding characters are called angle brackets
· HTML
tags normally come in pairs like <b> and </b>
· The
first tag in a pair is the start tag, the second tag is the end tag
· The
text between the start and end tags is the element content
· HTML
tags are not case sensitive, <b> means the same as <B>
Remember the HTML example from
the previous page:
<html>
<head>
<title>Title
of page</title>
</head>
<body>
This
is my first homepage. <b>This text is bold</b>
</body>
</html>
|
Headings
Headings are defined with the
<h1> to <h6> tags. <h1> defines the largest heading
<h6>
defines the smallest heading.
<h1>This
is a heading</h1>
<h2>This
is a heading</h2>
<h3>This
is a heading</h3>
<h4>This
is a heading</h4>
<h5>This
is a heading</h5>
<h6>This
is a heading</h6>
|
No comments:
Post a Comment