Archive for the ‘HTML’ Category

CSS Classes and them selections

Sunday, October 7th, 2007

Learn how to select the CSS classes and use them in a short tutorial and with an HTML page exemple:

(more…)

3 Methods to implement CSS in your website

Sunday, October 7th, 2007

First Method:

<style type=”text/css”>

Next is the HTML code and CSS in a simple webpage

<html>
<head>
<title>CSS Implement v1</title>
<style type=”text/css”>
P {background-color: grey;}

</style>
</head>
<body>
<p>CSS Implements v1 with paragraph background color GREY</p>
</body>
</html>

Second Method:
(more…)

HTML vs. XHTML

Thursday, October 4th, 2007

vs

XHTML 1.0 is a reformulation of HTML 4.0. What this really means is that learning XHTML is basically the same as learning HTML. The main difference is a few simple rules - as XHTML is more strict than standard HTML.

[1] Stricter adherence to the HTML specification
Many browsers are very lax in how they interpret HTML. This leads to incongruities in how the pages are displayed, and XHTML doesn’t allow that. The best way to correct this is to use an XHTML validator such as HTML Tidy.

[2] Write well formed documents
What this generally means is avoiding overlapping elements. The following nested code is acceptable: <p>Paragraph <em>emphasized</em></p> because the <em> tag is opened and closed within the <p> tag. However, this is not allowed: <p>Paragraph <em>emphasized</p></em> because the <em> tag overlaps the <p> tag.
(more…)