Computer Science Canada Webpage |
Author: | stef_ios [ Sun Feb 18, 2007 11:26 am ] | ||
Post subject: | Webpage | ||
Okay. So I am doing an assignment again, and the task is to make a webpage. It is in Strict XHTML, and I cannot get it to validate. Can someone please explain what the problem with my code is, and point out what I need to fix, because it uses CSS and I am fairly new at using CSS. Also, I need to know how to use an external style sheet and a meta tag in this code, because I need the page to render in several different browsers, not just explorer. Any help I can get is great!! Thanks! Here's my code:
|
Author: | rdrake [ Sun Feb 18, 2007 12:05 pm ] | ||
Post subject: | RE:Webpage | ||
Ok, my xhtml skills are a little rusty, but... The bold tags and center="" attributes are all depreciated (that is to say, not used anymore nor suggested they be used). You might wish to consider replacing each instance of them with id="" or class="". You will want to use the following CSS as their replacements. Adjust the following as necessary:
|
Author: | stef_ios [ Sun Feb 18, 2007 1:57 pm ] | ||
Post subject: | Re: Webpage | ||
Okay. In CSS how do you make the link for a link open in a new window? Also, how do you change the border for a picture? Here is my code, and it is not validating for thos two things.
|
Author: | Amailer [ Sun Feb 18, 2007 2:41 pm ] |
Post subject: | RE:Webpage |
In XHTML Strict, you CANNOT open links in a new window, see this post for more details :/ A workaround for it is to use javascript, but I would find that simply ridiculous. As for image border, you can give the image a class and in that class, set its border like you would for a div. |