Hello guys,
I am looking to create a poll in WordPress using HTML code.
I found many usufull into on the web, but i have a problem with undestanding how to put answer keys side-by-side?

I imagine it to look somewhat like this :

Far Cry 5

Yey! (button) Nay! (button) .. if possible Click to buy (button)

This is what i have so far :

<form action="server_file_to_process_form_data" method="post"><b>Poll</b>
<b>Far Cry 5</b>
<input name="answer" type="radio" value="1" />Yey!
<input name="answer" type="radio" value="2" />Nay!
<input name="submit" type="submit" value="Submit" />

But it looks so dull. Maybe someone can help?

Thank you a ton!

Edited by Natalia_3

5 Months
Discussion Span
Last Post by Anas_7

Firstly as you are using WordPress so the best way for creating a poll is to install a plugin activate it and then customize as per your needs.

On the other hand if you still need a code for it then here you go

<!DOCTYPE html>
        <link rel="stylesheet" type="text/css" href="style.css">

        <div class="poll">
            <div class="poll-question">
                This is the poll question
            <form action="vote.php" method="get">
                <div class="poll-options">
                    <div class="poll-option">
                        <input type="radio" name="Choice" value="1" id="c1">
                        <label for="c1">Yey</label>
                    <div class="poll-options">
                        <input type="radio" name="Choice" value="20" id="c2">
                        <label for="c2">Nay</label>

                <input type="submit" value="Submit answer" class="btn">
                <input type="hidden" name="poll" value="1">
Attachments Screenshot_(5).png 4.55 KB
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.