Content of the lesson:
The first tag you can try is the <title> tag. This tag is being written inside the head part and it should contain a title for the whole page. Its usage has two consequences:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>The Title of the Website</title>
</head>
<body>
</body>
</html>
Information about the <title> tag are summarized here:
More information about the <title> tag can be found here: http://www.jakpsatweb.cz/titulek.html.
Another important tags are the headlines for creating headlines of 6 levels (but you should not use more than 3 levels generally). The level is very important for search engines because it can create a tree of headlines and sort the terms because of their importance. The <h1> tag should contain the most important information in the page.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Titulek stránky</title>
</head>
<body>
<h1>Nadpis první úrovně</h1>
<h2>Nadpis druhé úrovně</h2>
<h3>Nadpis třetí úrovně</h3>
<h4>Nadpis čtvrté úrovně</h4>
<h5>Nadpis páté úrovně</h5>
<h6>Nadpis šesté úrovně</h6>
</body>
</html>
This code will make the following result in a browser (the size and color of font depends on your settings via CSS styles).
Information about headlines is summarized here:
More information about the <h1-h6> tags can be found here: http://www.jakpsatweb.cz/html/bloky.html#hn and there is also an interesting discussion about this topic: http://diskuse.jakpsatweb.cz/?action=vthread&forum=13&topic=101680.
One of the most used tags for creating a simple paragraph. The most of web content is a plain text divided to paragraphs so you should mark every paragraph using the <p> tag. You can define the empty space before and after the paragraph.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Titulek stránky</title>
</head>
<body>
</body>
</html>
The following list summarizes information about the <p> tag.
More information about the <p> tag can be found here: http://www.jakpsatweb.cz/html/bloky.html#p.
A hypertext or a link is one of the most important tags of HTML. A link is a plain text which redirects you to any website or file after clicking on it. The basic attributes (parameters) are:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Titulek stránky</title>
</head>
<body>
<a href="http://www.gjszlin.cz/gztgm/">http://www.gjszlin.cz/gztgm/</a>
<a href="http://www.gjszlin.cz/gztgm/" target="_blank">http://www.gjszlin.cz/gztgm/</a> - tento odkaz se otevře do nového okna (záložky).
</body>
</html>
http://www.gjszlin.cz/gztgm/ - this link will be opened into the current window.
http://www.gjszlin.cz/gztgm/ - this link will be opened into a new window (panel).
More information about the <a> tag can be found here: http://www.jakpsatweb.cz/html/odkazy.html.
The <ol> tag creates an ordered list which contains as many items as needed. The items (beginning with numbers) are added inside using the <li> tag. You can also use an unordered list which is displayed only with bullets by using the <ul> tag. These tags are often used for creating a menu.
<ol>
<li>položka 1</li>
<li>položka 2</li>
<li>položka 3</li>
</ol>
The important facts about the <ol> tag are summarized here:
More information about the <ol> and <ul> tags can be found here: http://www.jakpsatweb.cz/html/seznamy.html.
This is an important tag for displaying any image in your page. Images are inserted using the <img> tag which has a compulsory parameter (attribute) src which defines the path to the image. The size could be set, otherwise the browser will find the resolution out and set it automatically.
<img src="images-dreamweaver/internet-map-small.jpg" width="300" height="300" />
The image will be displayed like the following one. Border is created using CSS styles.
Important facts about the <img> tag are summarized here:
More information about using the <img> tag can be found here: http://www.jakpsatweb.cz/obrazky.html .
Element <span> is similar to the <div> element but it does not make any indent of the text. It is used to apply CSS styles on a part of text.
<html>
standard text <span>text with another
properties</span> standard text
</html>
Important facts about the <span> tag:
More information about the <span> tag can be found here: http://www.jakpsatweb.cz/div-span.html.
We use this tag to make a text highlighted (a text which is important). In general, the text is drawn in bold but you can change its properties using CSS styles.
<strong> důležitý text, který chceme zvýraznit </strong>
More information about the <strong> tag can be found on this page: http://www.jakpsatweb.cz/html/text.html#strong.
You can use the <em> tag similarly to draw a text in italics.
Try to read information from the W3C website about tags written in this lesson for HTML4, (X)HTML 1.0 Transitional and (X)HTML 1.0 Strict standards.
Try to use all these elements in a new HTML document.