Académique Documents
Professionnel Documents
Culture Documents
INTRODUCTION
WHAT THE FOLLOWING TERM MEAN:
HTML 1991
XHTML 2000
HTML5 2014
WEB BROWSERS
<!DOCTYPEhtml>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
HTMLEDITORS
<!DOCTYPEhtml>
<html>
<body>
</body>
</html>
HTML DOCUMENTS
Example
I am Red
I am Blue
I am Big
THE HTML STYLE ATTRIBUTE
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
HTMLCOLORS
Text Formatting
This text is bold
This text is italic
This issubscriptandsuperscript
HTML FORMATTING ELEMENTS
<b> - Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Marked text
<small> - Small text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup> - Superscript text
EXAMPLE
<p>This text is normal.</p>
Example
<i>This text is italic</i>
The HTML<em>element
definesemphasizedtext, with added
semantic importance.
Example
<em>This text is emphasized</em>
HTML <SUB> ELEMENT
Example
<p>This is <sub>subscripted</sub> text.</p>
HTMLQUOTATION AND CITATION ELEMENTS
Example
<address>
Written by John Doe.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>
HTMLCOMPUTER CODE ELEMENTS
<!DOCTYPE html>
<html>
<body>
<code>
var x = 5;<br>
var y = 6;<br>
document.getElementById("demo").innerHTML = x + y;
</code>
</body>
</html>
HTML <VAR> FOR VARIABLES
Example
Einstein
wrote:<var>E</var>=<var>m</var><var>c</
var><sup>2</sup>.
The HTML<kbd>element defines keyboard
input:
Example
<kbd>File | Open...</kbd>
HTML COMMENT TAGS
Example
<!-- This is a comment -->
<p>This is a paragraph.</p>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
EXTERNAL CSS
<!DOCTYPEhtml>
<html>
<head>
<linkrel="stylesheet"href="styles.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
An external style sheet can be written in any text
editor. The file must not contain any HTML code,
and must be saved with a .css extension.
Here is how the "styles.css" looks:
body{
background-color:powderblue;
}
h1{
color:blue;
}
p{
color:red;
}
CSS FONTS
CSS Border
The CSSborderproperty defines a border
around an HTML element:
Example
p{
border:1px solid powderblue;
}
CSS PADDING