Académique Documents
Professionnel Documents
Culture Documents
What is Hypertext?
What is HTML?
The first tag in a pair is the start tag, the second tag is the end
tag
The end tag is written like the start tag, with a slash before the
tag name
Start and end tags are also called opening tags and closing tags
<tagname>content</tagname>
<h1> defines the most important heading. <h6> defines the least
important heading.
<html>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</html>
Use the <br> tag if you want a line break (a new line) without starting
a new paragraph:
Example
HR Tag:-
the <hr> tag may still be displayed as a horizontal rule in visual
browsers. In HTML, the <hr> tag has no end tag.
<html>
<body>
<HR NOSHADE ALIGN=”CENTER”|”LEFT”|”RIGHT” SIZE=”THICKNESS”
WIDTH=”width” COLOR=”COLOR OF THE LINE”>
SIZE:- It indicates the thickness of the line, in pixels. The default size
is 2 pixels. As we increase the value of the size attribute, the line will
become thicker and thicker.
WIDTH:- It defines the horizontal width of the line, which means the
length of the line. The default is the width of the page. The
measurement value can be a number of pixels, e.g. “5”, or a
percentage of the page width, e.g. “60%”.
HTML Images - The <img> Tag and the Src Attribute
The height and width attributes are used to specify the height and
width of an image.
A hyperlink (or link) is a word, group of words, or image that you can
click on to jump to another document.
Example
Example
Example
<p>This is a <u>parragraph</u>.</p>
Example
HTML Lists
The most common HTML lists are ordered and unordered lists:
HTML Lists
An unordered list starts with the <ul> tag. Each list item starts with
the <li> tag.
The list items are marked with bullets (typically small black circles).
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
Coffee
Milk
An ordered list starts with the <ol> tag. Each list item starts with the
<li> tag.
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
1. Coffee
2. Milk
HTML DL, DT, DD Tag
Using HTML dl, dt, dd tags for listing the data. First we have
the dl (definition list) tag to hold the whole set of data, next we
have dt (defines the item in the list) tag and dd (describes the item in
the list) tag to hold the title and the data.
<dl>
<dt>Name: </dt>
<dd>John Don</dd>
<dt>Age: </dt>
<dd>23</dd>
<dt>Gender: </dt>
<dd>Male</dd>
<dt>Day of Birth:</dt>
<dd>12th May 1986</dd>
</dl>
<html>
<body>
<object height="50" width="100" data="hum.mp3"></object>
<embed height="50" width="100" src="hum.mp3">
</body>
</html>