Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

html codes for <To Top>

Featured Replies

Hi,

 

I tried this before but am not sure why my To top is not working anymore.

 

Here's my code;

 

<a name="top"></a>

 

<p><a href="#top"><font size="-1">To top</font></a></p>

 

Even When I changed the font to a larger size like 15px, it still won't show .... :mellow:

 

Hope someone can advise on where I had gone wrong. tks.

I've used <a href="#">top</a> before, but notice this just sends the user to the very top of the page, when usually you want to send them to the top of the content (below header and often top navigation), which is different than the page top.

  • Author

Try

<a id="top"></a>

 

instead of name="top"

 

Thanks. It works now. only thing is that I have use ahef and my css a I have made it white so it won't show the word top. How can I show the word but when comes to the button I don't want to have any outline ?

This is one way:-

<p><a href="#top"><span class="top">To top</span></a></p>

 

New CSS style:-

.top { color: red; font-size: 8px; }

I have incorporated the font size in px in this style and deleted the <font-size="-1">....</font-size> from the markup. Add any other styles you want.

 

Link at the top:-

 

<a id="top"></a>

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.