Are you sure that you have placed the files in the same directory? I’ve tested the code that you have provided and it’s working. However, you could try this out (a different way of giving sections an id):
<section> <a id="section1"> CONTENT </a> </section>
If you have done this, just use the same way of linking:
<a href="different-page.html#section1">Section One</a>
Related Posts:
- How to create an HTML button that acts like a link
- How to create an HTML button that acts like a link
- How to create an HTML button that acts like a link
- Is there a way to bookmark or link to a section of a page without an anchor?
- Open link in new tab or window [duplicate]
- How do I make a hyperlink to a local executable?
- How to add hamburger menu in bootstrap
- What is href=”#” and why is it used?
- html not linking css
- How to submit a form with JavaScript by clicking a link?
- Cross-reference (named anchor) in markdown
- link with target=”_blank” does not open in new tab in Chrome
- My CSS won’t link to my HTML file
- HTML Links are not working
- How can I create a link to a local file on a locally-run web page?
- Half circle with CSS (border, outline only)
- Unblur content inside blurring background div
- What character encoding is >?
- Setting table column width
- What is difference between png8 and png24
- How to center an iframe horizontally?
- How can I set the default value for an HTML
- the use of `%3F` in URL
- Onclick javascript to make browser go back to previous page?
- Best way to encode Degree Celsius symbol into web page?
- How to place a text next to the picture?
- Is it possible to get a list of files under a directory of a website? How?
- AngularJS ngClass conditional
- How to darken a background using CSS?
- How to solve PHP error ‘Notice: Array to string conversion in…’
- Hiding a button in Javascript
- How to display and hide a div with CSS?
- Draw a line in a div
- Get HTML code using JavaScript with a URL
- Change Color of Fonts in DIV (CSS)
- Why is “cursor:pointer” effect in CSS not working
- a href link for entire div in HTML/CSS
- mailto using javascript
- Complete list of reasons why a css file might not be working
- Why shouldn’t `'` be used to escape single quotes?
- How to apply style classes to td elements?
- how to overlap two div in css?
- HTML Display Current date
- How can I center a div within another div?
- How to align content of a div to the bottom
- Binding select element to object in Angular
- Dynamic height of div with css
- Removing ul indentation with CSS
- Why write script type=”text/javascript” when the mime type is set by the server?
- RegEx match open tags except XHTML self-contained tags
- How to make a div 100% height of the browser window
- Difference between href and data-href in anchor tag in html
- button vs. input type=”button” /. Which to use?
- HTML: How to center align a form
- Can an HTML element have multiple ids?
- How can I change the Bootstrap default font family using font from Google?
- Add stroke around text – on the outside – with css?
- Full Page < iframe >
- Change cursor to hand when mouse goes over a row in table
- CSS table td width – fixed, not flexible
- Favicon not working
- CSS max-height not working
- Horizontal list items
- How to make Bootstrap Panel body with fixed height
- word-wrap break-word does not work in this example
- Change navbar text color Bootstrap
- Tooltip on image
- Create a slanted edge to a div [duplicate]
- Override USER AGENT STYLE SHEET – Chrome
- aking a flex item float right
- wp_editor adds HTML entities to the content
- How to escape html code with html allowed
- How to Embed HTML files directly into WordPress
- Thumbnail + Excerpt = loss in word count
- How do you get words to show up at the bottom instead of beside a left-aligned photo? [closed]
- Migrating content from an old solution. How to easily change hardcoded hyperlinks in legacy content
- Embed tag length issues
- How put links in wordpress dynamic sidebar?
- WordPress editor not creating tags properly in tables
- How do I make HTML output work when using the customizer?
- Custom posts with certain html [closed]
- What doctype is considered best practice to use for WordPress?
- Using custom HTML tags to WordPress [closed]
- Remove tags from wordpress head
- render html no formatting
- Menu Custom Data Attributes
- product description text displays above website when in shop page [closed]
- All wordpress site went white blank screen
- Why is WordPress swapping double quotes (“) to curly quotes (“) and how do I stop it from happening?
- Display GIF as Facebook link thumbnail
- Change rel=”noopener noreferrer” to rel=’noopener noreferrer’ (single quote)
- How to add an ID to an existing HTML element?
- Open popup automatically when navigate to the page id
- Displaying html table on post content
- What are the WordPress’ pre-formatted html components?
- can’t update plugins or wordpress or install new plugins [duplicate]
- How can I add a google play badge to my header and footer?
- Post title appears twice in browser title bar
- WordPress adds ‘noindex’ tag to search results. Anything I can do about it?
- How can we get Buddypress to interpret HTML entities correctly?