The hyperlinks on my website seem to be malfunctioning and I'm unable to resolve the issue

Regrettably, I must admit that my knowledge of HTML, CSS, and Bootstrap is quite limited, so the issue at hand may be something simple that I have overlooked.

I designed a website for a friend which includes mailto links on a button. Initially, they were functional but now they seem to have stopped working. I can't seem to identify what changes I might have made to disrupt their functionality.

Here is the code snippet in question:

<ol class="align-content-center btn btn-lg btn-secondary button2 mt-3" href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6109040d0d0e2116000f050413080f064f180e0600">[email protected]</a>?subject=Website%20booking%20Online-Zoom">Book Here</ol>

The mailto link functions correctly when used independently, but clicking on the "Book now" button seems to have no effect.

You can view the page here.

Answer №1

href is specifically meant to be used with the <a> tag.

Therefore, make sure to implement it like this:

<a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fb939e979794bb8c9a959f9e8992959cd582949c9a">[email protected]</a>?subject=Website%20booking%20Online-Zoom">
    <ol class="align-content-center btn btn-lg btn-secondary button2 mt-3">Book Here</ol>
</a>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Setting up the nth-of-type() function to dynamically target elements in sequence

I need to apply specific CSS styles to elements in a certain order within an image carousel. The carousel may contain any number of images, but only three images are displayed at a time. I want to style the first and third images differently from the secon ...

Achieving a horizontal alignment of Bootstrap cards using ReactJS

I have been utilizing Bootstrap 4 to present data to the user. Now, I am considering displaying the data in columns and rows. The frontend is built with ReactJS and it retrieves data from the backend response. Currently, I have successfully displayed the ...

Get rid of the white border surrounding the object tag

Help needed in removing a thin white border around the object tag. Below is the code snippet and what has been attempted: .hr-ob { background-color: #003262; width: 50px; height: 10px; border: none; outline: none; ...

Ensuring divs are centered when resizing the page

Is there a way to center an unordered list of tables while ensuring that it remains centered even when the window is resized? The list should move each table to a new line if they can no longer fit. Check out the code snippet below for reference: <d ...

Utilize Datatables to apply filters dynamically

For displaying a list loaded via an AJAX call to the server, I utilized the datatables jQuery plugin. To integrate the search input inside my sidebar, I made use of the bFilter property to hide the filter. $(function () { var generatedCustomerTable = ...

The boxslider feature in Jquery is malfunctioning on the website

I recently took on the task of updating and enhancing a friend's website , which was originally created by a web designer a couple of years ago. While I have been able to add photos, recipes, and make some CSS adjustments successfully, I am facing an ...

The styling options for PHP table are limited

I have been assigned a task for homework that involves connecting a MySQL database to our PHP files and displaying the data in an HTML table. Although I have successfully connected to the database, I am facing difficulties styling the table. All other elem ...

Why isn't the comparison between the data returned by Ajax and the data in the text field functioning properly?

When the Ajax call returns data, it will provide user records in the following format: Array(6) 0:{_id: 1, provider: "abc", time: null, email_id: "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4726252407202a262e2b6924282a"&g ...

Empty space under the banner in Wordpress theme Avada

I can't seem to locate the CSS class for a blank space that appears below the header on one of my pages. This space is situated between the header and "SERVICIOS 24 HORAS". Any ideas on how I can remove this mysterious gap? My website is built wit ...

Having trouble getting custom select to work with CSS in Firefox?

I want to customize the button (down arrow) located in the right corner of the select box. The HTML code is as follows: <div class="buscaSelect"> <select name="oper"> <option value="value1">Value 1</option> < ...

Creating multiple div elements with changing content dynamically

I am facing an issue with a div named 'red' on my website where user messages overflow the 40px length of the div. To prevent this, I want to duplicate the 'red' div every time a message is sent so that the messages stay within the boun ...

Can a linked checkbox be created?

Is it possible to create a switch type button that automatically redirects to a webpage when turned on by clicking a checkbox? I'm working on implementing this feature and would like to know if it's feasible. ...

Is there a barrier I've reached with the amount of hashtags I'm using?

My goal is to limit the use of javascript and rely more on CSS to achieve desired effects on my website. One feature I have developed is a modal that opens using hashtags and targets, similar to this example: http://codepen.io/maccadb7/pen/nbHEg. While th ...

Php/JavaScript Error: Identifier Not Found

I've double-checked my code multiple times, but it still doesn't seem to be working properly. When the PHP runs, the browser console displays the following error: Uncaught SyntaxError: Unexpected identifier. I'm not sure if this is a si ...

Can the z-index of a div be altered by a checked checkbox?

I've been trying to figure out how to make a PayPal button only clickable after the user confirms the Terms of Service. My idea is to place another div over the PayPal button with an unchecked checkbox, opacity, and z-index. When the user checks the c ...

Create a horizontal menu that includes a submenu, all bordered with a cohesive design that is compatible with Internet Explorer

I am facing some issues with a horizontal menu. To better illustrate my problem, here is an example of the desired outcome example. The submenu should align left with its parent, but when I add #nav li{position:relative;}, it ignores the left floating a ...

Utilize a service to automatically update fields based on the user's position

Looking to make updates to certain fields once a geoposition is received for a specific user. Currently, my code looks like this: http://jsfiddle.net/VSph2/10/ Encountering an issue with an "Error: Unknown provider: positionProvider <- position" (onl ...

Discovering the hidden: Extracting only the visible portion of text content masked by CSS overflow hidden property

I need a solution for extracting only the text that is visible to the user on a web page, even if there is more content hidden due to CSS styling. Using the standard method driver.find_element_by_css_selector('span#value1').text retrieves the en ...

Set a maximum height for an image without changing its width dimension

I am facing an issue with an image displayed in a table. The image is a graph of profiling information that can be quite tall (one vertical pixel represents data from one source, while one horizontal pixel equals one unit of time). I would like to set a ma ...

What is the reason that in Bootstrap, the buttons become full width when using "fixed-bottom," even though they are not full width without it?

My goal is to have 1 button positioned near the top and 2 buttons fixed at the bottom. However, when I add the fixed-bottom` class to the div containing the bottom-fixed buttons, it causes them to span the full width of the container. This results in the b ...