我的单选按钮一直显示为文本框?

时间:2018-12-01 23:59:48

标签: html css

CSS和HTML的新手,可以从freecodecamp.com学习。我编写了以下内容,当我执行以下内容时,单选按钮显示为类似于打开的文本框。有人可以告诉我为什么吗?

<htmL>
    <style>
        .red-text{
          color: red;
        }
        h1 {
           font-style: Helvetica, sans-serif;
           font-size: 20px;
        }
    </style>
    <h1 class="red-text"> Trying to learn how to be a developer in CSS<H1>
    <img src="https://wallingis.com/wp-content/uploads/2016/08/software-developer.png" alt:" The mind chakra of a developer ">
    <p> It is not easy when you are not from a developer background to become developer. You need time and concentration not to mention the dedication to become one. Here are two questions that I ask from a survey standpoint to understand people better.</p>
<p>Why did you chose to become a developer?</p>
<form action="/Submit answers below:">
        <label><input type=“radio” name=“Reason to be a developer” >Passion</label><br>
        <label><input type=“radio” name=“Reason to be a developer” >To be Rich</></label><br>
        <label><input type=“radio” name=“Reason to be a developer” >Family Pressure</label><br>
        <input type="text" placeholder="Submit other thoughts" required>
        <button type="submit">Submit</button>
</form>
    <p> If given the chance would you stick to the developer job or move to another profession, given that money and circumstances are in your favor?</p>
        <label><input type=“Checkbox” name=“Choice”>Yes</label><br>
        <label><input type=“Checkbox” name=“Choice”>No, would stick to this because I love it</label><br>
        <label><input type=“Checkbox” name=“Choice”>Do not know - lost in life at the moment</label><br>
    <p> One of the things we have found is that the reason people join this line of work are the following:</p>
        <ul>
            <li> More jobs are available</li>
            <li> Potential in career growth is higher than most industries due to the technological push</li>
            <li> Job stability and certainty of the fact that moving around is easy within the industry</li>
        </ul>
    <p> The median income in this category is roughly around $50k / year with huge potential of getting an increment and to grow within the industry to higher paying positions</p>

    </html>

1 个答案:

答案 0 :(得分:0)

按照我的评论为您提供更好的答案。

检查您自己的代码中的差异:

<h1 class="red-text"> Trying to learn how to be a developer in CSS<H1>

这里您使用的是正确的符号,但是在这里:

<label><input type=“Checkbox” name=“Choice”>Yes</label><br>

引号似乎在左边 (“),而第一个是直的(”)。