HTML - Correct Syntax Of The Base Tag?
I am using:
Code: <base href="./mpl.htm" target="_window2" /> where mpl.htm is a local file and window2 is the target to open each new window, something just smells fishy for some reason? Similar TutorialsHow do i insert a coloured line in the page without declaring the line propertoes in the CSS. I've used the following code, but the W3C validator was not happy. It said there's something wrong with the last portions of the code line. I use HTML 4.01 Transitional doctype.The HTML code I used is .... <hr size="1" Width="90%" align="center" color="#ff6600" /> Please help with the correct syntax or tips. Even better would be how to make it happen by inserting these <hr> styles into the CSS. (I'm a beginner in HTML) I have a check box with these parameters: <input type="checkbox" name="ForeignAddr" value="1"> I would like the user to go to a page (claimant_edit.php) if they click on the box (change the value). Can this be done, and if so, what is the syntax for the onClick()? Many thanks... I need to be able to specify <base> something like: Code: <base href="../html/"> but this doesn't work. I have tried: Code: <base href="file://../html/"> but that doesn't work either. Howeve, if I use an absolute path like: Code: <base href="file://C:\html/"> it works fine. Is there a way to specify a relative path in a <base> tag? Thanks, -sbs Hi, I created my sitemap.xml and first data feed to googlebase.xml with success, all products where uploaded ;o) My question is, are there any other sites I can submit the same sitemap.xml or data feed to? Such as yahoo or any other free site? Thanks in advance. *please bear with me this is a simple problem which is sort of hard to explain* I run a very small (15 page) website for myself. The site consists of an image_list page, which is an index of 13 thumbnail images. Each thumbnail links to a single page, each page being a larger image of the respective thumbnail. These 13 individual pages are directed at the same base target window, _ximage. you can find the image_list window he http://www.winslowsmith.com/work/index.html click on any one of these thumbnail links and a new window (_ximage) will open. navigate back to the image_list and click another link, the _ximage window will reload with the new page. Pretty simple, right?, just a <base target=""> command. In safari this all looks swell, and the _ximage window, whether open or not, will always come to the foreground to load. Not the case in Firefox. My problem in Firefox is as follows: opening one of the given links in image_list will load a new window (or tab), with _ximage target, and the first time, that new window/tab with _ximage target will come to focus and be in the foreground. However, if the viewer leaves the _ximage window open, and navigates back to the image_list window and clicks another link, that link will load appropriately but the _ximage window will remain in the background. (and it works the same whether you are using windows or tabs to load your new pages). This is frustrating because it forces the viewer to click twice rather than just once to get to one of these 13 pages, and said pages are the reason people would traffic to the site. Is there any way to have the links to base (_ximage) target always load in the foreground in Firefox(even when the target window _ximage is open)? Is there code to tell the Firefox browser, hey this is an important window load it in the foreground? Is there a way to do it with anchors? any help is appreciated i'm trying to figure out what i'm doing wrong with adding some ssi into my codes. i'm trying to get my menu to be to the left of my main body information of each page. i got it working by pure luck on this one, but i can't get it working on the other pages. here's some of the code from the correctly working page: .... <body> <table class="try" cellspacing="0"> <tr> <!---#include file= "ssi/header.ssi"--> <!--************Header Cell start***********--> <tr> <!---#include file= "ssi/menu.ssi"---> <!--**********Menu cell stops**********--> <!--**********Body cell starts*********--> <td class="body"> <!--**********BODY CONTENT...ALL!**********--> <h2 class="texttitle"> Text + Lists Page</h2> <p class="book"> <a href="http://www.thelatinlibrary.com/cicero/fin.shtml"> The Extremes of Good and Evil</a></span> <p class="author">by Cicero (circa 45 B.C.)</span> .... and here's one from my other pages: .... <body> <tr> <!--#include file= "ssi/header.ssi"--> </tr> <tr> <!--#include file= "ssi/menu.ssi"--> <form action="http://usm.maine.edu/cgi-bin/cgi-mailer.pl" method="post"> <p><input name="destination" value="brandonmckenney@gmail.com" type="hidden"></p>....... those are just from the beginning parts of my body sections. what am i doing wrong. the menu shows up but it shows up on top of the body info like the header. any help will be greatly appreciated as this is due on my server for class tomorrow morning! I'm currently using .em for font size. I have set the font size and font in body, but the font is not being applied to inputs and the font size is not being applied to lists. My font size is currently set at 1em, and I have to put 100% as font size in my divs for it to be 1em. I'm wondering how and where I should set the font and font size so it will apply to everything? I understand that there should only be one H1 tag in a document, but what about H2, H3 etc. For example if I had a page listing products I would apply the H1 tag to the category, but I think the products in the list would be of equal importance, so would it be semantically correct to apply H2 tags to the products? And to take it a bit further, if each of the product had options (i.e. sub-products), would it be correct to apply H3 tags to the options? e.g. <h1>Dogs</h1> <h2>Labrador</h2> <h3>Golden</h3> <h3>Chocolate</h3> <h3>Black</h3> <h2>Collie</h2> <h3>Border</h3> <h3>Rough</h3> <h3>Bearded</h3> <h2>Boxer</h2> <h2>Retreiver</h2> <h3>Golden</h3> <h3>Flat coat</h3> Thanks My website looks like I want it to in Chrome, Firefox and my Android phone (including the flash banner at the top working properly) - however, in IE the layout is wrong. Also there is no consistency. Sometimes a page will look right then if you load another page and go back to the original one it now looks wrong. The compatibility mode makes it look a bit better but still not correct. It appears that it looked right until I updated flash (because the new flash banner at the top required this) and now the whole site layout is wrong. Any ideas? The website is www.nodj.co.uk if you need to take a look. Thanks in advance! I have a web page that I still have 4 validation errors on (all for the same problem in different lines). The error lines and the validation error for them is below. Any ideas as to how to correct this would be appreciated. Thanks. HTML Code: <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"><span style="mso-fareast-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><b><font face="Times New Roman" size="5"> Page Title</font></b></span></p> <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"><font face="Times New Roman" size="4" color="#000080"><i> </i></font></p> <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"> </p> <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"><i><font face="Times New Roman" size="4" color="#000080"> </font> Validation error: Below are the results of checking this document for XML well-formedness and validity. Error Line 44 column 111: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag. ...: 0; margin-top: 3; margin-bottom: 3"><span style="mso-fareast-font-family: T The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). I am making my band a website. I have all the graphics i need (as in the menu and background), but I don't know how to put it all together and make it good looking. here is a picture of the general idea. That would go all the way to the bottom of the page and all the rest of the space would just be black. Now of course, thats not how it would exactly look, that was just a map out that I made in two seconds. I need just the area where people read all the info and such to scroll alone, and to have nothing else to do so. Just in case anyone doesn't know what i mean by "put it all together" I mean to get the top thing where it says band name on, and have the menu on the side, the place where everyone reads next to it, a bit of space below the area where people read, and the whole left be just black. thanks in advance EDIT- I realized i also should probably say this too. There is a graphic that runs through the entire page (band name area, menu, and place where people read). The band name area is a jpg, menu is a flash file, and then the place where people read is just regualr. Hi, I was trying to create a drop down menu so that there are more links the user can access, but when I opened it in IE, i noticed that when i move my mouse to the interface that initiates the drop down, the drop down actually drops down at the wrong place. for example, if i have the drop down menu bar in the middle of the screen, and move my cursor to the bar, the drop down would occur at the top of the screen. When I tried this in firefox, it works fine. Can anyone help me out? I have a simple form which consists of 3 radio buttons (it is one of those feedback questions at the bottom of a web page asking "Did you find this page helpful? Yes A little No"). I looked up several websites to get the supposedly correct code, and basically they all suggested something like this for each button: Quote: <label for="r1"> <input type="radio" name="group1" id="r1" value="1" /> button one</label> The form is enclosed within <p> and <form> tags, and this is the HTML code I used for each of the buttons (with different labels and ids of course): Quote: <label for="n2">Yes</label> <input type="radio" name="helpful" id="n2" value="2" onclick="hresponse('2')" > But when I try to validate this page with the W3C validator, I get 9 errors, with the one relevant here being: Quote: Line 256, Column 19: document type does not allow element "LABEL" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag <label for="n2" > Yes</label> The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. If I change my code to: Quote: <label for="n2">Yes <input type="radio" name="helpful" id="n2" value="2" onclick="hresponse('2')" > </label> I only get 6 errors, but this particular error still occurs for each button. I am using HTML 4.01 strict. Can anyone explain what is happening here please, and how to fix it? Thanks. Hi all, I have made a very basic page (dont laugh its my first attempt)..I need someone to help me out with a proper linked site etc soon..for $ if need be http://www.remotehydroponics.com/ http://www.remotehydroponics.co.uk/ I have got the hang of the cpanel etc I followed a youtube tutorial on how to add the meta tags etc then I submitted the urls to google. When I go to this site to check the meta tags they are all coming back blank.. http://www.submitexpress.com/analyzer/ Here is the code as of the page..... Any help greatly apreciated Hi, Just wondered if anyone has any opinions on this Rounded corners can be achieved either by using JavaScript on one div or by using a couple of nested html tags and CSS, Forgetting about cross browser issues and support for a minute, which way should be used when considering standards? Scott Hello guys, I have just created a simple website using Flash. Then I have embedded this .swf movie onto simple HTML document. I am wondering if you could check that HTML code for me and let me know whether it is correct. http://www.icebergfilms.com Thank you so much for your help. OK, I have been using tables in a lot of legacy code to divide up a web page. So, what is the new "standard"? I've seen the use of DIVs which I like actually, they are a little tricky with the float option, especially if you want some padding or borders, some adjustments need to be made, but eventually when that's done it works out nice. But anyway, so what's the new element/construct modern HTML designers are using?!?! Trying to google this and really hitting a lot of ambiguity. Obviously the old "frame" element has gone the way of the dodo bird a long time ago. Thank you, my lords. below is from a W3C linkchecker - how do I provide a valid URL for validating my page? The link provided by W3C isn't valid? - my page www.colletts.co.uk Quote: Fragments listed are broken. See the table below to know what action to take. Code Occurrences What to do 403 1 The link is forbidden! This needs fixing. Usual suspects: a missing index.html or Overview.html, or a missing ACL. http://validator.w3.org/check?uri=ht....uk/index.html What to do: The link is forbidden! This needs fixing. Usual suspects: a missing index.html or Overview.html, or a missing ACL. Response status code: 403 Response message: Checking non-public IP address disallowed by link checker configuration Line: 258 Hi everyone, Good day to you. I had just created my new html code for my webform,however,it seemd like it allowed submission of the opt-in form without filling up the info by clicking on the submit button. May I know what wrong with it ? How to correct this problem ? The following is my webform code : -------------------------------------------------------------------------------------------------------------------------------------------- <div id="formbox"> <h3>Get Your Free Gifts !</h3> <form METHOD="post" ACTION="http://moneymakeyourich.com/cgi-bin/formmail.pl"> <input type=hidden name="recipient" value="moneytree@moneymakeyourich.com"> <input type=hidden name="subject" value="Your Subject"> First Name : <input type=text name="realname" size="20"> <br> Last Name : <input type=text name="lastname" size="20"> <br> Email : <input type=text name="email" size="20"> <br> <input type="Submit" value="submit"> </form> <p><b>Important</b>:I will never share your information with anyone !</p> -------------------------------------------------------------------------------------------------------------------------------------------- Thank you. Best regards Manicui |