Para mayor confiabilidad, sugeriría dar nombres de clase, o ids a los elementos para diseñar (idealmente classpara las entradas de texto, ya que presumiblemente habrá varios) y un idbotón para enviar (aunque a classtambién funcionaría):
<form action="#" method="post">
<label for="text1">Text 1</label>
<input type="text" class="textInput" id="text1" />
<label for="text2">Text 2</label>
<input type="text" class="textInput" id="text2" />
<input id="submitBtn" type="submit" />
</form>
Con el CSS:
.textInput {
/* styles the text input elements with this class */
}
#submitBtn {
/* styles the submit button */
}
Para navegadores más actualizados, puede seleccionar por atributos (usando el mismo HTML):
.input {
/* styles all input elements */
}
.input[type="text"] {
/* styles all inputs with type 'text' */
}
.input[type="submit"] {
/* styles all inputs with type 'submit' */
}
También podría usar simplemente los combinadores de hermanos (ya que las entradas de texto al estilo parecen seguir siempre un labelelemento, y el envío sigue un área de texto (pero esto es bastante frágil)):
label + input,
label + textarea {
/* styles input, and textarea, elements that follow a label */
}
input + input,
textarea + input {
/* would style the submit-button in the above HTML */
}