Need help with HTML

Status
This thread has been locked.

cs_bro

Premium
Feedback score
1
Posts
167
Reactions
68
Resources
0
Hey i'm new to HTML i having problem with my code

<div class="toggle">
<input type="checkbox" class="check">
<b class="b switch"></b>
<b class="b track"></b>
</div>

I want to make it go to a new page when they click on the button

Who ever can help me will get a vouch
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Tazzez

Freelance Web developer/Designer
Premium
Feedback score
1
Posts
35
Reactions
15
Resources
0
wrap it in <a href="{pagename}.html"></a>.
 

Laurent

Premium
Feedback score
21
Posts
68
Reactions
43
Resources
0
Because your <a href""> </a> needs whatever you want to be linked in the middle so say if you want the button to link you to the second html put <a href"page2.html">Then the button code in the middle then </a>[DOUBLEPOST=1491438055][/DOUBLEPOST]If you have skype add me [email protected] and i can help you out
 

Shattered

old-timer
Supreme
Feedback score
5
Posts
3,486
Reactions
2,059
Resources
0
Code:
<body>
<h1>Test</h1>
<a href="page2.html">
<div class="toggle">
  <input type="checkbox" class="check">
  <b class="b switch"></b>
  <b class="b track"></b>
</div>
</a>
</body>
If you read the w3 page that was linked, you'd know how to use it.
 

Tehker

Schleep
Premium
Feedback score
26
Posts
1,175
Reactions
307
Resources
0
You did put the
<a href="page2.html"></a>
although, how would it appear then? You need to put a text in between or an image to be directed to the page2.html.

For an example,

<a href="page2.html">Page2</a>

Then add your CSS here if necessary.
 
Status
This thread has been locked.
Top