What's wrong??

Discussion in 'Web Design & Coding' started by undeadpenguin, Jan 17, 2004.

  1. undeadpenguin

    undeadpenguin Bang. VIP Member

    Joined:
    Sep 1, 2003
    Messages:
    925
    Likes Received:
    4
    Location:
    US, CT
    I'm trying to get my site validated for XHTML 1.0 Transitional, but I'm having some trouble on a couple of the pages. I get the error: Line $line, column 2: document type does not allow element "$tag" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
    Where $line is replaced with the line number, and $tag is replaced with the tag. Truth be told, I do not quite understand what these errors mean. Here is the document in question:
    HTML:
       1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        2: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        3: <html>
        4:  <head>
        5:   <title>[undead{}articles]</title>
        6:   <link rel="stylesheet" type="text/css" href="../undead.css" />
        7:   <meta name="keywords" content="Linux, BSD, articles, reviews, Arch, Slackware, Source Mage" />
        8:   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        9:  </head>
       10:  <body class="text">
       11:   <table align="center">
       12:    <tr>
     13: <td><a href="../index.html"><img src="../images/undeadtux.png" border="0" alt="home" /></a></td>
       14:     <td><a href="../about.html">[about]</a></td>
       15:     <td><a href="../articles.html">[articles]</a></td>
       16:     <td><a href="../phpbb/index.php">[forums]</a></td>
       17:     <td><a href="../reviews.html">[reviews]</a></td>
       18:     <td><a href="../scripts.html">[scripts]</a></td>
       19:    </tr>
       20:   </table>
       21:   <center><h1>[compiling a kernel]</h1></center><br />
       22:   <p>Whether or not you like it, eventually you're going to have to recompile
       23:   you kernel if you use Linux. It's not as daunting a task as it may seem. This
       24:   article will walk you through the steps of compiling your own kernel. Have
       25:   fun.</p><br />
       26:   <p>The first thing you have to do is download the kernel source. I recommend
       27:   the current stable version for most people. Right now, that's <a
       28:  
       29: href="ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.23.tar.bz2">2.4.23</a>.
       30: You can either download that by clicking the link I provided (it uses <a
       31: href="ftp://ftp.kernel.org/pub/">ftp.kernel.org</a>), or download <a
       32: href="ftp://ftp.kernel.org/pub/linux/kernel/">another version</a>. The next
       33: thing you'll want to do is cd to /usr/src/linux:<br />
       34: $cd /usr/src/linux/<br />
       35: Now su to root, untar it, run make mrproper:<br />
       36: $su<br />
       37: Password:<br />
       38: #tar -xvjf /where/you/downloaded/it/linux-2.4.23.tar.bz2<br />
       39: #cd linux-2.4.23<br />
       40: #make mrproper<br />
       41: After a few minutes you'll get you're prompt back. Now you have a few options.
       42: You have to configure the kernel; choose what to compile in, what to leave out,
       43: what to use as modules, etc. The kernel comes with a couple of really nice
       44: config scripts. oldconfig let's you recompile your kernel based on your old.
       45: xconfig allows you to have a nice GUI configuration tool. I personally like
       46: menuconfig. It is a menu-driven curses program that looks much like the install
       47: of Slack or FreeBSD. To get menuconfig, do:<br />
       48: #make menuconfig<br />
       49: You do the same with xconfig and oldconfig.<br />
       50: <p>Once inside menuconfig you're faced with a lot of options:<br />
       51: <ul>
       52: <li>Code maturity level options</li>
       53: <li>Loadable module support</li>
       54: <li>Processor type and features</li>
       55: <li>General Setup</li>
       56: <li>Memory Technology Devices (MTD)</li>
       57: <li>Parallel Port Support</li>
       58: <li>Plug and Play configuration</li>
       59: <li>Block devices</li>
       60: <li>Multi-device support (RAID and LVM)</li>
       61: <li>Networking Options</li>
       62: <li>Telephony Support</li>
       63: <li>ATA/IDE/MFM/RLL Support</li>
       64: <li>SCSI Support</li>
       65: <li>Fusion MPT Device Support</li>
       66: <li>IEEE 1394 (Firewire) Support (EXPERIMENTAL)</li>
       67: <li>I20 Device Support</li>
       68: <li>Network Device Support</li>
       69: <li>Amateur Radio Support</li>
       70: <li>IrDA (infrared) Support</li>
       71: <li>ISDN Subsystem</li>
       72: <li>Old CD-ROM Drivers (not SCSI, not IDE)</li>
       73: <li>Input Core Support</li>
       74: <li>Character Devices</li>
       75: <li>Multimedia Devices</li>
       76: <li>File Systems</li>
       77: <li>Console Drivers</li>
       78: <li>Sound</li>
       79: <li>USB Support</li>
       80: <li>Bluetooth Support</li>
       81: <li>Kernel Hacking</li>
       82: <li>Cryptographic Options</li>
       83: <li>Library Routines</li>
       84: </ul>
       85: If you don't know what half of that means it's okay; most of the defaults are
       86: fine. You're going to have to go through each menu and select the stuff that
       87: applies to you. For example, I have an IDE CD-RW drive. As you all know, IDE
       88: CD-RW drives require SCSI emulation. So I'm going to have to either build SCSI
       89: emulation into the kernel, or compile it as a module which I will load at a
       90: later point (I usually do the latter). Just so you know (the ide-scsi module is
       91: kind of hidden), it's under the IDE, ATA and ATAPI Block Devices menu which is
       92: under the ATA/IDE/MFM/RLL support menu if you're using a menu driven
       93: configuration tool (xconfig, menuconfig). Also, if you're using xconfig, there
       94: is a little box that says "Help" next to most of the items. If you click on
       95: that, it will tell you what it is.</p><br />
       96: <p>Now you have to save and exit (assuming you're running a menu-driven program
       97: like menuconfig or xconfig). It should be at the bottom of the menu somewhere.
       98: Now back to the command line! You have to compile the bzImage, which is the
       99: kernel itself, the modules, and then install the modules. First you have to run
      100: make dep, though.<br />
      101: #make dep<br />
      102: #make bzImage modules modules_install<br />
      103: Now you have to copy your new kernel to your /boot directory. It is stored in
      104: /usr/src/linux/linux-2.4.23/arch/i386/boot/bzImage (assuming you're using the
      105: 2.4.23 kernel and you extracted it to /usr/src/linux). Assuming you are still in
      106: the /usr/src/linux/linux-2.4.23 directory:<br />
      107: #cp arch/i386/boot/bzImage /boot</p><br />
      108: <p>Now you have to edit your bootloader's config file to show your new kernel.
      109: In LILO:<br />
      110: image=/boot/bzImage<br />
      111: label=2.4.23<br />
      112: root=/dev/hda1<br />
      113: read-only<br />
      114: This is assuming you want to have the option called 2.4.23 and your root
      115: partition is /dev/hda1. DO NOT DELETE YOUR OLD KERNEL OR IT'S PLACE IN YOUR
      116: BOOTLOADER!!! If for some reason the new kernel is unstable or doesn't work as
      117: well as you'd hoped, you want something to fall back on. Now update LILO:<br />
      118: #/sbin/lilo<br />
      119: *Added 2.4.23<br />
      120: For Grub:<br />
      121: title Distribution [2.4.23]<br />
      122: root (hd0,0)<br />
      123: kernel (hd0,0)/boot/kernel root=/dev/hda1 ro<br />
      124: Again, this is assuming your root partition is /dev/hda1 and you want that entry
      125: to be called Distribution [2.4.23].</p><br />
      126: <p>Well congratulations if you've just successfully upgraded your kernel! Make
      127: it be stable always!</p><br />
      128: <center><a href="pkernelcompile.html">Printable version</a></center></p>
      129: </body>
      130: </html>
    Any ideas?
     
    undeadpenguin, Jan 17, 2004
    #1
    1. Advertisements

  2. undeadpenguin

    S Walch MAME 0.64 :) VIP Member

    Joined:
    Jun 2, 2003
    Messages:
    1,026
    Likes Received:
    14
    Location:
    Manchester
    erm...I did a valitdation of the site myself, and look what I got:

    This Page Is Valid XHTML 1.0 Transitional!


    The uploaded file was checked and found to be valid XHTML 1.0 Transitional. This means that the resource in question identified itself as “XHTML 1.0 Transitional” and that we successfully performed a formal validation using an SGML or XML Parser (depending on the markup language used).

    To show your readers that you have taken the care to create an interoperable Web page, you may display this icon on any page that validates. Here is the HTML you could use to add this icon to your Web page:

    <p>
    <a href="http://validator.w3.org/check/referer"><img
    src="http://www.w3.org/Icons/valid-xhtml10"
    alt="Valid XHTML 1.0!" height="31" width="88" /></a>
    </p>

    So erm...what validator you trying to use :p
     
    S Walch, Jan 17, 2004
    #2
    1. Advertisements

  3. undeadpenguin

    undeadpenguin Bang. VIP Member

    Joined:
    Sep 1, 2003
    Messages:
    925
    Likes Received:
    4
    Location:
    US, CT
    Did you do it of undeadpenguin.org or undeadpenguin.org/articles/kernelcompile.html? I'm trying to get _every_ page compliant - so far just the home page and about 10 others are but these couple of articles aren't going through.
     
    undeadpenguin, Jan 17, 2004
    #3
  4. undeadpenguin

    James Photojournalist

    Joined:
    Dec 24, 2002
    Messages:
    6,662
    Likes Received:
    35
    On line 50 you need to close the <p> tag. Your missing a few things that need to be closed. And you have one tag that is closing something that was not open.
     
    James, Jan 17, 2004
    #4
  5. undeadpenguin

    undeadpenguin Bang. VIP Member

    Joined:
    Sep 1, 2003
    Messages:
    925
    Likes Received:
    4
    Location:
    US, CT
    Gotcha! Thanks, James, I must have missed that!
    [edit]
    Actually, I just closed that tag and opened one for the closed tag, but I'm still getting the same error for line 50:
    Line 50, column 2: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

    HTML:
    <p>Once inside menuconfig you're faced with a lot of options:</p>
    [edit 2]
    Well, I put an object tag around the p, and now it's validating. How come I needed that??
     
    Last edited: Jan 17, 2004
    undeadpenguin, Jan 17, 2004
    #5
  6. undeadpenguin

    S Walch MAME 0.64 :) VIP Member

    Joined:
    Jun 2, 2003
    Messages:
    1,026
    Likes Received:
    14
    Location:
    Manchester
    you have forgot to close the <p> tag open at line 26

    As it goes like this:

    26: <p>The first thing you have to do is download the kernel source. I recommend
    27: the current stable version for most people. Right now, that's <a
    28:
    29: href="ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.23.tar.bz2">2.4.23</a>.
    30: You can either download that by clicking the link I provided (it uses <a
    31: href="ftp://ftp.kernel.org/pub/">ftp.kernel.org</a> ), or download <a
    32: href="ftp://ftp.kernel.org/pub/linux/kernel/">another version</a>. The next
    33: thing you'll want to do is cd to /usr/src/linux:<br />
    34: $cd /usr/src/linux/<br />
    35: Now su to root, untar it, run make mrproper:<br />
    36: $su<br />
    37: Password:<br />
    38: #tar -xvjf /where/you/downloaded/it/linux-2.4.23.tar.bz2<br />
    39: #cd linux-2.4.23<br />
    40: #make mrproper<br />
    41: After a few minutes you'll get you're prompt back. Now you have a few options.
    42: You have to configure the kernel; choose what to compile in, what to leave out,
    43: what to use as modules, etc. The kernel comes with a couple of really nice
    44: config scripts. oldconfig let's you recompile your kernel based on your old.
    45: xconfig allows you to have a nice GUI configuration tool. I personally like
    46: menuconfig. It is a menu-driven curses program that looks much like the install
    47: of Slack or FreeBSD. To get menuconfig, do:<br />
    48: #make menuconfig<br />
    49: You do the same with xconfig and oldconfig.<br /> (ad a </p> here)
    50: <p>Once inside menuconfig you're faced with a lot of options:</p><br />
    51: <ul>
     
    S Walch, Jan 17, 2004
    #6
  7. undeadpenguin

    undeadpenguin Bang. VIP Member

    Joined:
    Sep 1, 2003
    Messages:
    925
    Likes Received:
    4
    Location:
    US, CT
    undeadpenguin, Jan 17, 2004
    #7
  8. undeadpenguin

    S Walch MAME 0.64 :) VIP Member

    Joined:
    Jun 2, 2003
    Messages:
    1,026
    Likes Received:
    14
    Location:
    Manchester
    No problem.

    It really is just silly things like that which cause the problems :p
     
    S Walch, Jan 17, 2004
    #8
  9. undeadpenguin

    undeadpenguin Bang. VIP Member

    Joined:
    Sep 1, 2003
    Messages:
    925
    Likes Received:
    4
    Location:
    US, CT
    This is another HTML question, so I'm not going to make a new thread out of it. I'm designing a site for my school so that I can make fun of our librarian's (you can see it here. Notice how the bar at the top is about an inch wide (on my 1024x768 res.). I recently made it HTML 4.01 Transitional compliant by moving where the h2 tags were... ever since it has been that size. Before, the table ended right above and right below the text within it (which I liked). How do I make it little again? Here is the code:
    HTML:
    <table align="center" width="100%" cellspacing="1" cellpadding="1" border="0">
     			<tr>
     				<td bgcolor="#000000">
     					<table width="100%" align="center">
     						<tr>
     							<td width="21%" bgcolor="#666633" align="right"><h6><i>Coded and designed by <a href="http://undeadpenguin.org">undeadpenguin</a>.</i></h6>
     							</td>
     							<td width="65.5%" bgcolor="#666633" align="right">{ suffield middle school }</td>
     							<td width="4%" bgcolor="#333300" align="right"><font color="#666633"><b>./news</b></font></td>
     							<td width="4%" bgcolor="#999966" align="right"><font color="#333300"><a href="links/index.html">./links</a></font></td>
     							<td width="8%" bgcolor="#999966" align="right"><font color="#333300"><a href="research/index.html">./research</a></font></td>
     							
     						</tr>
     					</table>
     				</td>
     			</tr>
     		</table>
     
    undeadpenguin, Jan 17, 2004
    #9
  10. undeadpenguin

    S Walch MAME 0.64 :) VIP Member

    Joined:
    Jun 2, 2003
    Messages:
    1,026
    Likes Received:
    14
    Location:
    Manchester
    You have defined the width of it in %, which means it will be a certain width on all display properties (on mine, the bar is only 1.5 cm, i'm on 1024x768)

    So, you can decrease it's % or define it in pixels.
     
    S Walch, Jan 17, 2004
    #10
  11. undeadpenguin

    undeadpenguin Bang. VIP Member

    Joined:
    Sep 1, 2003
    Messages:
    925
    Likes Received:
    4
    Location:
    US, CT
    Correct me if I'm wrong, but doesn't width determine it's length horizontally across the screen, not vertically?

    It only looks like 1.5 centimeters to me in IE on this machine... weird that Firebird would render it differently...
     
    undeadpenguin, Jan 17, 2004
    #11
  12. undeadpenguin

    S Walch MAME 0.64 :) VIP Member

    Joined:
    Jun 2, 2003
    Messages:
    1,026
    Likes Received:
    14
    Location:
    Manchester
    lol, you're right lol.

    Opera renders it as 1.5 cm as well...

    edit: guess you could try to define the height of it in CSS..
     
    S Walch, Jan 17, 2004
    #12
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.