Meta tags:
description= Use o seletor CSS ::placeholder para estilizar o texto de placeholder de campos de formulário. Veja exemplos e saiba mais.;
Headings (most frequently used words):
placeholder, do, exemplo, seletor, css, pseudo, elemento, quando, usar, versão, sintaxe, tópicos, relacionados, prática, usado, em, formulário, com, atributo, autofocus, html, input,
Text of the page (most frequently used words):
#placeholder (43), border (37), css (33), color (29), text (25), font (25), html (21), style (21), input (18), grid (18), width (17), aprender (15), background (15), column (13), para (10), que (10), type (10), margin (10), bottom (10), break (10), padding (9), title (9), top (9), right (9), left (9), image (9), animation (9), texto (8), exemplo (8), decoration (8), position (8), stroke (8), name (7), overflow (7), offset (7), flex (7), todos (6), page (6), elemento (6), pseudo (6), seletor (6), você (6), body (6), label (6), head (6), outline (6), size (6), align (6), variant (6), w3docs (5), cor (5), campo (5), 666666 (5), box (5), transition (5), line (5), last (5), radius (5), child (5), formatter (5), generator (4), prática (4), sintaxe (4), only (4), range (4), usado (4), estilizar (4), atributo (4), com (4), copiar (4), form (4), div (4), display (4), max (4), auto (4), formulário (4), não (4), propriedades (4), letter (4), spacing (4), dica (4), mode (4), transform (4), fill (4), height (4), list (4), template (4), row (4), gap (4), rule (4), nth (4), first (4), json (3), code (3), encoder (3), editor (3), quizzes (3), exercícios (3), php (3), javascript (3), quando (3), usar (3), read (3), navegadores (3), usuário (3), experimente (3), mesmo (3), selector (3), example (3), block (3), the (3), document (3), doctype (3), padrão (3), assim (3), word (3), wrap (3), origin (3), justify (3), items (3), before (3), after (3), content (3), columns (3), direction (3), clip (3), string (3), tools (3), italiano (2), português (2), español (2), français (2), русский (2), deutsch (2), english (2), sobre (2), beautifier (2), diff (2), password (2), ferramentas (2), python (2), java (2), git (2), livros (2), exemplos (2), snippets (2), tópicos (2), relacionados (2), versão (2), this (2), out (2), permite (2), fonte (2), fundo (2), entrada (2), representa (2), elementos (2), possuem (2), tag (2), textarea (2), propriedade (2), mais (2), frequentemente (2), enquanto (2), focus (2), autofocus (2), here (2), family (2), 8ebf42 (2), solid (2), container (2), class (2), moz (2), webkit (2), sizing (2), selectors (2), pode (2), uma (2), ele (2), desaparece (2), use (2), cinza (2), claro (2), contraste (2), legível (2), como (2), layout (2), opacity (2), apenas (2), cores (2), sua (2), por (2), visibility (2), unicode (2), timing (2), function (2), duration (2), delay (2), shadow (2), rendering (2), skip (2), perspective (2), inside (2), anchor (2), path (2), object (2), blend (2), min (2), rows (2), start (2), end (2), flow (2), feature (2), empty (2), counter (2), count (2), repeat (2), hash (2), 2026, direitos, reservados, feito, desenvolvedores, idioma, política, privacidade, contato, empresa, try, tutoriais, gratuitos, web, desde, 2014, next, previous, yes, was, helpful, verificar, manipular, posicionamento, alterar, tamanho, espaçamento, entre, letras, tem, amplo, suporte, combinada, estilize, está, digitando, nele, enter, your, for, action, sans, serif, transparent, 777777, yyyy, date, lorem, ipsum, simply, 100, eeeeee, 250, código, italic, 1c87c9, declarations, level, prefixos, fornecedor, são, legados, desnecessários, modernos, suportado, lugares, então, escrever, segurança, única, regra, informação, digita, portanto, nunca, deve, substituir, real, valor, nome, atende, diretrizes, acessibilidade, redefinir, certifique, permaneça, mantenha, suficiente, conteúdo, afetam, próprio, algumas, outras, têm, efeito, conjunto, limitado, aplica, recorra, quiser, seja, seu, combinar, marca, alguns, pontos, importantes, saber, antes, estilizá, vem, aparência, dessa, diante, seleciona, breve, exibida, dentro, vazio, começa, digitar, corresponde, renderizam, semitransparente, campos, veja, saiba, zoom, index, writing, will, change, widows, white, space, vertical, user, select, bidi, property, underline, orientation, indent, ink, combine, upright, table, tab, linecap, dashoffset, dasharray, speak, shape, outside, scrollbar, scroll, behavior, resize, quotes, pointer, events, place, orphans, order, rotate, distance, fit, mix, media, lines, clamp, keyframes, isolation, initial, import, hyphens, hanging, punctuation, areas, area, weight, numeric, ligatures, east, asian, caps, alternates, stretch, language, override, adjust, kerning, values, settings, face, float, shrink, grow, basis, filter, cells, cursor, reset, increment, span, clear, charset, caret, caption, side, source, slice, outset, collapse, bleed, attachment, backface, appearance, play, state, iteration, self, all, properties, visited, valid, target, selection, scope, root, required, write, optional, not, link, lang, invalid, indeterminate, hover, fullscreen, enabled, disabled, dir, default, checked, active, seletores, css3, guia, flexbox, guides, gradientes, nomes, tabelas, links, uso, introdução, basic, entrar, pesquisar, formatters, url, reverse, sha256, md5, length, calculator, colors, hsl, hex, mixer, converter, picker, general, cursos,
Text of the page (random words):
css placeholder pseudo elemento w3docs w3docs livros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python cursos quizzes exercícios snippets ferramentas general tools html editor password generator html encoder code diff json beautifier todos os 13 color tools color picker color converter color mixer color hex colors hsl todos os 10 string tools string length calculator md5 hash generator sha256 hash generator string reverse url encoder todos os 19 code formatters javascript formatter css formatter html formatter json formatter php formatter pesquisar na w3docs k pt english en deutsch de русский ru français fr español es português pt italiano it entrar aprender css css basic introdução ao css uso do css sintaxe css css id e class css text css font css links tabelas css css border css padding css margin nomes de cores css gradientes css css guides guia do flexbox propriedades css3 css selectors seletores css active after before checked default dir disabled empty enabled first child first letter first line first of type focus fullscreen hover in range indeterminate invalid lang last child last of type link not nth child nth last child nth last of type nth of type only child only of type optional out of range placeholder read only read write required root scope selection target valid visited css properties align content align items all animation align self animation delay animation direction animation duration animation fill mode animation iteration count animation name animation play state animation timing function appearance backface visibility background background attachment background blend mode background clip background color background image background origin background position background position x background position y background repeat background size bleed block overflow border border bottom border bottom color border bottom left radius border bottom right radius border bottom style border bottom width border collapse border color border image border image outset border image repeat border image slice border image source border image width border left border left color border left style border left width border radius border right border right color border right style border right width border spacing border style border top border top color border top left radius border top right radius border top style border top width border width bottom box decoration break box shadow box sizing break after break before break inside caption side caret color charset clear clip clip path color columns column count column fill column gap column rule column rule color column rule style column rule width column span column width content counter increment counter reset cursor direction display empty cells fill filter flex flex basis flex direction flex flow flex grow flex shrink flex wrap float font font face font display font family font feature settings font feature values font kerning font size font size adjust font language override font stretch font style font variant font variant alternates font variant caps font variant east asian font variant ligatures font variant numeric font weight grid grid area grid auto columns grid auto flow grid auto rows grid column grid column end grid column gap grid column start grid gap grid row grid row end grid row gap grid row start grid template grid template areas grid template columns grid template rows hanging punctuation height hyphens image rendering import initial letter isolation justify content justify items keyframes left letter spacing line break line clamp line height list style list style image list style position list style type margin margin bottom margin left margin right margin top max height max lines max width media min height min width mix blend mode object fit object position offset offset anchor offset distance offset path offset position offset rotate opacity order orphans outline outline color outline offset outline style outline width overflow overflow anchor overflow wrap overflow x overflow y padding padding bottom padding left padding right padding top page break page break after page break before page break inside perspective perspective origin place items pointer events position quotes resize right scroll behavior scrollbar shape outside speak stroke stroke dasharray stroke dashoffset stroke linecap stroke width tab size table layout text align text align last text combine upright text decoration text decoration color text decoration line text decoration skip text decoration skip ink text decoration style text fill color text indent text justify text orientation text overflow text rendering text shadow text stroke text stroke color text stroke width text transform text underline position top transform transform origin transform style transition transition delay transition duration transition property transition timing function unicode bidi unicode range user select vertical align visibility white space widows width will change word break word spacing word wrap writing mode z index zoom css placeholder pseudo elemento use o seletor css placeholder para estilizar o texto de placeholder de campos de formulário veja exemplos e saiba mais o pseudo elemento placeholder seleciona o texto de placeholder de um campo de formulário a dica breve exibida dentro de um input ou textarea vazio que desaparece assim que o usuário começa a digitar ele corresponde apenas a elementos que possuem o atributo placeholder por padrão os navegadores renderizam o texto de placeholder em uma cor cinza claro ou semitransparente a dica em si vem do atributo html placeholder enquanto placeholder permite estilizar a aparência dessa dica sua cor fonte e assim por diante quando usar recorra ao placeholder quando quiser que a dica seja legível sobre o fundo do seu formulário ou para combinar com as cores da sua marca alguns pontos importantes a saber antes de estilizá lo apenas um conjunto limitado de propriedades se aplica como o placeholder é um pseudo conteúdo você pode usar propriedades que afetam o próprio texto color font letter spacing text decoration opacity background e algumas outras propriedades de layout como margin ou width não têm efeito mantenha contraste suficiente o cinza claro padrão frequentemente não atende às diretrizes de contraste de acessibilidade se você redefinir a cor certifique se de que o texto permaneça legível um placeholder não é um label ele desaparece assim que o usuário digita portanto nunca deve substituir um label real use o para um valor de exemplo não para o nome do campo i informação prefixos de fornecedor webkit moz ms são legados e desnecessários para navegadores modernos o seletor padrão placeholder é suportado em todos os lugares então você pode escrever com segurança uma única regra placeholder versão selectors level 4 sintaxe exemplo de sintaxe css placeholder placeholder css declarations copiar exemplo do seletor placeholder exemplo css placeholder doctype html html head title title of the document title style input placeholder color 1c87c9 font size 1 2 em font style italic style head body h2 placeholder selector example h2 input placeholder type here body html copiar experimente você mesmo exemplo do seletor placeholder usado em formulário exemplo de código css placeholder doctype html html head title title of the document title style box sizing border box container margin 20 px auto max width 250 px background color 8ebf42 padding 20 px input border 1 px solid 666666 background color eeeeee padding 15 px margin bottom 20 px display block width 100 input webkit input placeholder color 666666 input moz placeholder color 666666 input ms input placeholder color 666666 input placeholder color 666666 style head body h2 placeholder selector example h2 div class container form input type text placeholder lorem ipsum is simply input type date placeholder dd mm yyyy form div body html copiar experimente você mesmo exemplo do seletor placeholder com o atributo autofocus do html input exemplo html de placeholder doctype html html head title title of the document title style label display block color 777777 margin 0 0 4 px input border 1 px solid transparent padding 15 px font size 1 2 em outline 0 input placeholder color 8ebf42 label input font family sans serif style head body h2 placeholder selector example h2 form action div label for name name label input id name name name type text placeholder enter your name here autofocus div form body html copiar experimente você mesmo tópicos relacionados seletor css focus estilize um campo enquanto o usuário está digitando nele propriedade css color a propriedade mais frequentemente combinada com placeholder tag html input e tag html textarea os elementos que possuem o atributo placeholder prática prática o que o pseudo elemento placeholder no css representa o que o pseudo elemento placeholder no css representa é usado para estilizar o texto de placeholder de um campo de entrada tem amplo suporte em todos os navegadores é usado para estilizar a cor de fundo de um campo de entrada permite alterar a cor do texto tamanho da fonte e espaçamento entre letras do texto de placeholder é usado para manipular o posicionamento de um elemento verificar was this page helpful yes no previous out of range next read only on this page quando usar versão sintaxe tópicos relacionados prática w3docs tutoriais exemplos exercícios snippets e quizzes gratuitos para a web desde 2014 livros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python prática exercícios quizzes editor try it ferramentas html editor password generator html encoder code diff json beautifier empresa sobre contato política de privacidade idioma english deutsch русский français español português italiano 2026 w3docs todos os direitos reservados feito para desenvolvedores
|