What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Can an Anchor tag be used in a URL ?

No. Have you tried to write each page leading to a specific section of the page? When you use an anchor tag. If there's 6 sections to a page, then you'll have 6 web pages all leading to that section. But they are the same page. This belongs in the header. Leading up to that section. <div id=" "></div>
 
Last edited:
document.write("<p>Without this code, your body tag would be empty. This paragraph is created when the browser gets to the script tag</p>");

Try this in your script. Going to the correct section of the document first. <p id="3"> Part you want first.</p>
This redirects your page onload event to search that section first.

Set all your links associated to the sections. 3. Then set the script to <p id="#> or rather <p id="#"><div id="#"></div></p>
on the htm page.
To get to the specific section. onload event
 
Last edited:
Back
Top