Forum Moderators: open

Message Too Old, No Replies

Got Me...Header Tags

Front Page doesn't allow...

         

Hardwood Guy

5:07 pm on Aug 4, 2003 (gmt 0)

10+ Year Member



Front Page(FP) doesn't allow... Well that isn't entirely accurate. And for those that are banging their head when I mention FP; it's all I know for the time being. My question is how do I work them into the html? I'm frightened that I'll screw something up.

Yea, dumb question but it's had me stumped not knowing html that much.

Thanks for any replies:)

Stretch

5:28 pm on Aug 4, 2003 (gmt 0)

10+ Year Member



Head tags are the ones between the <head></head> things in the HTML code.
Common ones below:

<head>

<title>TITLE OF YOUR PAGE HERE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="A BRIEF DESRCIPTION OF YOUR SITE HERE.">
<meta name="keywords" content="A LIST OF KEYWORDS RELEVANT TO THE PAGE CONTENT HERE">

</head>

Is that what you meant? If you switch to HTML view in FP you can edit these by hand. If your concerned about messing things up make a backup first.

Cheers

Stretch

Hardwood Guy

5:51 pm on Aug 4, 2003 (gmt 0)

10+ Year Member



Stretch:

Thanks for the reply. I didn't mention, I'm looking at H1 tags and the like. I'm trying to optimize important decriptions or page content on the page, where so far I've only used them in bold fonts. The largest reason is for viewers to get an idea of the page content right away. From my understanding these are important to some search engines and I'd just like to know how to work them in.

Current example:

<p align="center"><u><b><font face="Arial" size="4">Searching For Information About Widgets?font></b></u></td>

kevinpate

6:37 pm on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Instead of:
<p align="center"><u><b><font face="Arial" size="4">Searching For Information About Widgets?font></b></u></td>

Try editing it to this:
<h1 align="center"><u>Searching For Information About Widgets?</u></h1></td>

kp

Hardwood Guy

9:52 pm on Aug 4, 2003 (gmt 0)

10+ Year Member



Beautiful! Thanks Kevin:)

Ryan8720

2:48 am on Aug 5, 2003 (gmt 0)

10+ Year Member



If you want it to validate, then it should be this:

<h1 style="text-align: center; text-decoration: underline;">Searching For Information About Widgets?</h1>

g1smd

9:13 pm on Aug 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Noooooo. Inline styles are just as much code bloat as the <font> tags they replace, as well as making the site blow up in earlier browsers.


You should export the CSS to an external file and call it with instructions in the <head> section of the HTML file. Most people use this one, but it can cause problems:

<link type="text/css" rel="stylesheet" src="/path/file.css">

It is better to use this slightly longer version of this, again placed in the <head> section of the HTML file:

<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">@import url(path/file.css);</style>

This version hides the CSS from older versions of Netscape that cannot handle CSS. This stops those versions from displaying a corrupted page with overlapping elements.

Run the code through a validator to check the HTML and CSS for errors:

HTML: [validator.w3.org...]

CSS: [jigsaw.w3.org...]