CSS Selector and attributes

Hi, I’m trying to complete my Responsive Web Design certification. I’ve already completed Survey form:

But it looks pretty basic and I want to spruce it up. I want to add rounded corners to all the text inputs. Below there is a code snippet:

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title>Document</title>
</head>
<body>
    <h1 id="title">Pump station form</h1>
    <p id="description">Please fill out the form below:</p>
    <form id="survey-form">
        <fieldset>
            <legend>Basic info</legend>
            <label id="name-label" for="name" >Company name:</label>
            <input id='name' type="text" placeholder="e.g. Stuff Industries" required>
            <label id="email-label" for="email" >Company email:</label>
            <input id='email' type="email" placeholder="example@stuff.com" required>
        </fieldset>        
    </form>
</body>
</html>

CSS

body {
    background-color: rgb(104, 167, 223);
}
h1 {
    color: rgb(0, 0, 0);
}
label {
    display: block;
}
input[type=text], textarea {
    border-radius: 5px;
}

Unfortunately rounded corners are being applied only to the first input, did I use a wrong selector?

What type do you have set on the second input? Is your CSS styling that type?

I see, I’ve just assumed it was another text, sorry,

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.