There's a bunch of things wrong with your implementation:
1. The font "TrebuchetMS" does not exist. Instead, it's named "Trebuchet MS". Yes, that space is important. When attaching a font that includes a space in it's name, enclose the name of the font in double-quotes ("").
2.You do not need a < /style> closing bracket for an inline css statement, unless you are declaring it in the format of the following, at the beginning of the file:
Code:
<style type="text/css">
h
{
blah
blah
}
h2
{
blah
blah
}
</style>
instead you should simply close the < h2> element with a < /h2> (the fact that this was missing is actually another problem as well).
3. Avoid inline CSS. It's hard to read through and fix problems, it's always better to write your CSS in a seperate file and link to it. Example:
index.html:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>CSS Example</title>
<link rel="stylesheet" type="text/css" href="test.css" />
<h2>
Welcome To The <u><i>SR-71's</i></u> Offcial Clan Homepage.
</h2>
</head>
</html>
style.css:
Code:
h2 {
text-align: center;
font-family: "Trebuchet MS";
}
It's also worth mentioning that "Trebuchet MS" looks almost exactly like "Times New Roman", the default font in most applications (aside from Arial, which also resembles Trebuchet). There's not much point in specifying it as a font, as it's bound to just cause platform issues, with little visual gain.
P.S I didn't include a simple "fixed" version of your code, as you'll learn better if you read through my explanations and think about them. If you have trouble understanding, just ask, I'll explain in more detail. If I were to simply post a fixed version, you'd just copy-paste it and never really learn from your mistakes.