Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Oct 2010
    Posts
    5
    Member #
    24189
    I'm doing a project for school and have a good start on my HTML, but when I go to edit the attributes on CSS nothing seems to happen. I fear I have done something wrong in my HTML, but I can't seem to figure out what.

    Can I get some peer-review please? I'm posting the opening of my HTML doc below.

    Bonus Question: I'm supposed to be validating against xHTML 1.0 Strict DTD. Do I have that set up right?

    Some info:
    -The name of my css doc is master.css.
    -My directory build consists of: The main folder, "141 project 1". Inside that folder I have two folders (css, images) and my HTML doc.

    HTML:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>US Soccer Info | Home</title>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
    <link href="css/master.css" rel="stylesheet" type="text/css" />
    </head>

  2.  

  3. #2
    Junior Member
    Join Date
    Oct 2010
    Posts
    26
    Member #
    24200
    Liked
    1 times
    For the "xHTML 1.0 Strict DTD", you could check it with W3C. This company makes the guidelines for xHTML etc.

  4. #3
    Member JayWood's Avatar
    Join Date
    Oct 2010
    Location
    East Coast U.S.
    Posts
    55
    Member #
    24240
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    Should be

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    Don't forget your body tags and your closing HTML tag, so your document should look like so:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>US Soccer Info | Home</title>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
    <link href="css/master.css" rel="stylesheet" type="text/css" />
    </head> 
    <body>
    YOUR CODE HERE
    </body>
    </html>
    However, I don't think by having your doctype different, would contribute to your css attributes not appearing, if you can post your css and html maybe I can be of more assistance.
    Don't forget to Rep people if they've helped you, it's just the right thing to do.
    My Site - JJ's Webs
    My oDesk Profile - Hire me on oDesk
    My Themeforest Profile - Just for you TF people!

  5. #4
    Junior Member
    Join Date
    Oct 2010
    Posts
    5
    Member #
    24189
    I've figured it out. Thanks for the help on the validating part, though.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:48 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com