-1

The CSS code for the Google search bar is

<input id="input" type="search" autocomplete="off" spellcheck="false" role="combobox" placeholder="Search Google or type a URL" aria-live="polite">

But I am unable to select it using

input[type="search"]

What should be the code to select the Google search bar. You can test it in your browswer.

1 Answer 1

0

You can select your input in CSS:

input[type="search"]{
  //styles
}

Example:

input[type="search"]{
  background: #eee;
  padding: 10px;
  border-radius: 10px;
}
<input id="input" type="search" autocomplete="off" spellcheck="false" role="combobox" placeholder="Search Google or type a URL" aria-live="polite">

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.