HTML - Question About Anchor Tags
Is this a valid format ?
<a name="xxxx"><!-- --></a> I ask because it works in all browsers I use but not with IE 8 (Beta). I'm not sure if this is a bug in IE 8 or whether the syntax is strictly valid. If I use or space this will work in IE8 but again I am not sure if it is valid Thanks Harvey Similar TutorialsHi, I have a website in which the menu is the same on all pages (http://www.hiltrain.com) I have set this up so that the menu item is in bold to identify the specific page the viewer is on. This works perfectly in function and is set up by using: <body id="help"> and then using the same id in the link code, e.g. <a href="howwecanhelp.htm" id="help"> In the css file I have an entry: body#help a#help, font-weight: bold; This gets the menu item for that page to be in bold and this works fine. However this doesn't vaildate well as according to the W3C standards I can't use the id twice. Can anybody advise me on a way to change these to achieve the same affect but so that it complies with W3C. Any help greatly appreciated. Cheers Iain Right this is not for the faint-hearted cos I'm going to make a real hash of explaining what I'm trying to do probably I'm using <a> tags to move the user around a single page, so for example: HTML Code: <a href="#room1">Room1</a> <a href="#room2">Room2</a> <a href="#room3">Room3</a> <a href="#room4">Room4</a> <div id="room1"> Some Content </div> <div id="room2"> Some Content </div> <div id="room3"> Some Content </div> <div id="room4"> Some Content </div> It works fine, but the browser places the viewing window right at the very start of the <div id=""> bit. I want to have it move to say 50px higher up. I can't move the <div> tags or set any margin or padding on them as this really messes up the page. Is there any way to move the browser window 50px back up after it has moved to the <div> position. Maybe using javascript? Any help really appreciated Hi, I hope I am posting this in the right place. I would like to insert the <h> tags to headings & sub headings in certain areas of a web page. But if I place the <h> tag next to the word or phrase that is relevant, it increases the font size. Am I ok to have the code like below or will the SE’s read everything between the tags, including the code & confuse the whole thing. Its just a case of wanting to not have the text as large as some of the <h> tags want to make it. <center><h1><font face="arial" size="3" color="000000"><b>My text here</b></font></h1></center> Hope you can help! Many thanks. Chris. Mod - Please Delete I've seen basic META tags for things such as Author, Keywords, Description, and Copyright (I think that's all of them). So I was wondering what are all the different META Tags and what do they do? I'm not sure if I'm using them correctly or not. Hi all. I'm designing a website and for the first time using div tags. The style is controlled by CSS. I'm trying to get 2 div tags to be positioned next to each other, side by side. How do I do this, I just can't get it to work. Thanks I have both <div id="images"></div> and <form> on the right column of my page. I want to overlap the two of them, because the form is hidden so that when the viewer clicks on "contact us" the images div will disappear then the form appears, through behaviors. But the form is below the images div tag, so when I click on contact us, the images disappear, but the form appears on the bottom of the image div tag, its suppose to take the place of the images div tag instead. _________ I've designed a web page using WebEasy and I'm going to have to insert the meta tags manually. I've figured out where the code has to go and I know the code has to be something like this: <meta name="keywords" content="keyword, keyword, keyword"> Anyway, my question is what if the keywords don't all fit on one line? Do I let it wrap around like this: <meta name="keywords" content="keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword, keyword"> Or do I start a new line, like this: <meta name="keywords" content="keyword, keyword, keyword"> <meta name="keywords" content="keyword, keyword, keyword"> Thanks Oh, and if I change the meta tags do I have to resubmit my site to google? Thanks I have created a drop down selection list using PHP that will allow users to create the elements of the selection list and organize them them under user defined catagories, by typing the names of the catagory and entry into fields and clicking a button to add them to the list. By clicking on the entries on the list the user will be able to cause user defined actions to be performed. Just as an example, the user could create the following drop down selection list: Car manufacturers Ford Mercedes Honda Motorcycle manufacturers Harley Davidson Suzuki Honda The problem comes when I try to allow the user to delete an entry by clicking on it and then clicking a delete button.] As you can see from the example above, the word "Honda" appears under two optgroup catagories. If the user clicks on the second one, there is currently no way for the PHP script to distinguish which "Honda" entry they mean. In fact the script would go through the list and delete the fist one it comes across, which is the wrong one. How can I send the value of the optgroup that an entry is listed under along with the entry itself, so that they script can identify which entry the user is clicking on? I tried some tags in the optgroups but they don't seem to get sent to the server. i'm looking for a cheap way out of making collapse/expand code. i've learned a lot of 'ghetto' techniques n thought mayb i can use something similar to the html tricks i've learned in the past. the theory i have is.. i use the title of the collapse/expand text as a link to the text below it to open and close by using the navigating tags: Code: <a name="content">opening/closing text here</a> and the title above the content: Code: <a href="#content">Title</a> to open the area of text. now my idea of a shortcut around the whole css/html/javacript combo is to make the text below it use a Code: <font size=0>content</font> at default and have the href title link change the font size to the default 9pt but I don't know if that's even possible. Is it possible with the Code: <div> tags? and if so, using that, would i still b able to make a link like that? Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags? [/code] <html> <body> <form name="input" action="html_form_action.asp" method="get"> First name: <input type="text" name="FirstName" value="Mickey" /><br /> Last name: <input type="text" name="LastName" value="Mouse" /><br /> <input type="submit" value="Submit" /> </form> </body> </html> [/code] Is there anyway to do a sort of "go to next anchor" link? ... and previous anchor? I would like to show some details in table format inside the anchor link, is this possible or not... Hey guys, I'm really new to HTML coding so be nice. I'm trying create an anchor on a new page. Is this possible, I can create an anchor that jumps down a page, but I can't get it to work on a different page. I thought I had it, but it only worked in Safari, and wouldn't work in Firefox or IE. Any help would be greatly appreciated so i have these 3 files, frame.html, menu.html, and page.html frame.html sets up the frameset with menu.html on the left side and page.html on the right side. the page is very large and scrolls and has a bunch of named anchors in it, and the menu doesn't scroll so its always visible no matter where on the page you are. so u probably get the idea by now. normally if i want to have an anchor link in the page i would just say href="#anchorname", but instead i want to have links in the menu frame jump to anchors in the page frame, so that someone could browse the page very easily without having to scroll all the way back to the top for all the anchor links. is that possible, and how would i do it? Hi everybody, im new here. i've done lot of search and nothing solved my problem. here is my situation. I have 2 pages, in the first page i want to make a link to the second page but at a specific point in the second page. Here is my code: in the first page, i make this link: <a href="page2.html#70" class="Style1">linktopage2 (1)</a> in the second page at the point i want to link: <a name="70"></a> Did i forget something? right now when i click the link in the first page, it open the second but at the top of it and not at the point i want. someone have a better way to do what i want? thank you all!! mike Hello, I have a webpage with several html anchors. The anchor part works ok, but when I click on the links, I only goto to the part of the page with all the anchors (all anchors are gathered low in the page) and I wanted to know if there is any way of highlighting the specific anchor that the user has clicked on. Thank you. Using help from (http://www.echoecho.com/htmllinks08.htm) I added links to my page (http://laititudefestival.zxq.net/whosplaying.html) When clicked on the title 'Lake Stage' it should redirect you to the line up image lower down in the page. The link (http://laititudefestival.zxq.net/whosplaying.html#lake) appears in the address bar . It should move the page down but it dosent Please help Just give me one working example I would be very happy I could change text and so on ! Thanks , Sorry for English |