Meta tags:
description= Cómo usar la propiedad CSS stroke para pintar el contorno de un elemento SVG. Conoce los valores disponibles con ejemplos prácticos.;
Headings (most frequently used words):
propiedad, css, de, stroke, ejemplo, cuándo, debo, usarlo, vs, atributo, presentación, sintaxis, valores, propiedades, trazo, relacionadas, errores, comunes, práctica, la, resultado, con, formas,
Text of the page (most frequently used words):
#stroke (59), css (39), border (34), color (29), text (23), width (22), style (20), font (20), propiedad (19), grid (18), html (16), aprender (15), svg (14), column (13), fill (12), background (12), break (10), los (9), una (9), path (9), que (9), outline (9), top (9), right (9), left (9), bottom (9), image (9), animation (9), para (8), como (8), contorno (8), none (8), línea (8), elemento (8), position (8), forma (7), line (7), valor (7), con (7), height (7), overflow (7), decoration (7), offset (7), flex (7), atributo (6), page (6), cómo (6), solo (6), texto (6), title (6), align (6), padding (6), margin (6), type (6), variant (6), w3docs (5), valores (5), sintaxis (5), presentación (5), colores (5), del (5), define (5), rule (5), 1c87c9 (5), l215 (5), transition (5), last (5), radius (5), child (5), formatter (5), generator (4), práctica (4), propiedades (4), dasharray (4), elementos (4), usa (4), circle (4), sin (4), context (4), url (4), copiar (4), body (4), head (4), ejemplo (4), mode (4), transform (4), size (4), list (4), template (4), row (4), gap (4), nth (4), first (4), json (3), code (3), encoder (3), editor (3), cuestionarios (3), ejercicios (3), php (3), javascript (3), web (3), desde (3), errores (3), comunes (3), trazo (3), relacionadas (3), linecap (3), nombres (3), hsl (3), puede (3), div (3), definir (3), tiene (3), efecto (3), rect (3), predeterminado (3), patrón (3), guiones (3), dashoffset (3), dibuja (3), ningún (3), initial (3), aplica (3), mismo (3), class (3), 100 (3), formas (3), object (3), word (3), wrap (3), spacing (3), range (3), origin (3), justify (3), items (3), before (3), after (3), max (3), letter (3), content (3), columns (3), auto (3), direction (3), clip (3), box (3), only (3), ver (3), string (3), tools (3), italiano (2), português (2), español (2), français (2), русский (2), deutsch (2), english (2), beautifier (2), diff (2), password (2), herramientas (2), python (2), java (2), git (2), libros (2), ejemplos (2), fragmentos (2), cuándo (2), debo (2), usarlo (2), this (2), speak (2), acepta (2), códigos (2), hexadecimales (2), rgb (2), rgba (2), hsla (2), clave (2), aplicar (2), página (2), borde (2), cuál (2), propósito (2), gráficos (2), tspan (2), tref (2), textpath (2), polyline (2), polygon (2), ellipse (2), altglyph (2), interior (2), pinta (2), sólida (2), anchura (2), extremos (2), las (2), trazado (2), inicial (2), inherit (2), hace (2), utiliza (2), contexto (2), servidor (2), pintura (2), usar (2), pruébalo (2), 8ebf42 (2), the (2), document (2), doctype (2), resultado (2), property (2), contenido (2), tanto (2), cualquier (2), cuando (2), cursor (2), block (2), puedes (2), colorea (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), blend (2), min (2), rows (2), start (2), end (2), flow (2), feature (2), display (2), empty (2), counter (2), count (2), repeat (2), read (2), hash (2), 2026, todos, derechos, reservados, hecho, desarrolladores, idioma, política, privacidad, contacto, acerca, empresa, try, tutoriales, gratuitos, 2014, next, previous, yes, was, helpful, comprobar, abreviada, linejoin, varios, palabras, section, fondo, funciona, quieres, contrario, negro, predeterminada, invisible, importar, elegido, siempre, aparece, nada, dónde, comienza, animaciones, espacios, lugar, grosor, controlar, ese, combínalo, significa, incluso, está, definido, hereda, padre, use, referencia, establece, sólido, pueden, relleno, descripción, 220, 300, 120, from, necesario, escribir, aquí, bloque, varias, vez, observa, muestre, 666666, 500, example, código, dom, especificación, versión, animable, heredado, usarse, pero, siguientes, información, ambos, están, presentes, regla, hoja, estilos, anula, esto, permite, marcado, sobreescribirlo, por, pasar, gana, via, stylesheet, presentation, attribute, especial, definirlo, escrito, directamente, estas, dos, líneas, producen, encontrar, nombre, sección, delineando, rellenarlo, animando, misma, combina, dibujando, iconos, diagramas, afecta, ordinarios, úsalo, estés, esta, explica, qué, interactúa, suelen, surgir, fragmento, mientras, juntos, controlan, cada, círculo, rectángulo, pintar, conoce, disponibles, prácticos, zoom, index, writing, will, change, widows, white, space, vertical, user, select, bidi, underline, orientation, indent, ink, combine, upright, table, layout, tab, shape, outside, scrollbar, scroll, behavior, resize, quotes, pointer, events, place, orphans, order, opacity, rotate, distance, fit, mix, media, lines, clamp, keyframes, isolation, import, hyphens, hanging, punctuation, areas, area, weight, numeric, ligatures, east, asian, caps, alternates, stretch, language, override, adjust, kerning, values, settings, family, face, float, shrink, grow, basis, filter, cells, reset, increment, span, clear, charset, caret, caption, side, sizing, source, slice, outset, collapse, bleed, attachment, backface, appearance, play, state, name, iteration, self, all, properties, visited, valid, target, selection, scope, root, required, write, placeholder, out, optional, not, link, lang, invalid, indeterminate, hover, fullscreen, focus, enabled, disabled, dir, default, checked, active, selectores, selectors, css3, guía, flexbox, guides, gradientes, tablas, links, uso, introducción, basic, iniciar, sesión, buscar, formatters, reverse, sha256, md5, length, calculator, colors, hex, mixer, converter, picker, general, cursos,
Text of the page (random words):
propiedad css stroke w3docs w3docs libros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python cursos cuestionarios ejercicios fragmentos herramientas general tools html editor password generator html encoder code diff json beautifier ver los 13 color tools color picker color converter color mixer color hex colors hsl ver los 10 string tools string length calculator md5 hash generator sha256 hash generator string reverse url encoder ver los 19 code formatters javascript formatter css formatter html formatter json formatter php formatter buscar en w3docs k es english en deutsch de русский ru français fr español es português pt italiano it iniciar sesión aprender css css basic introducción a css uso de css sintaxis css css id y class texto en css css font css links tablas css css border css padding css margin nombres de colores css gradientes css css guides guía de flexbox propiedades de css3 css selectors selectores 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 propiedad css stroke cómo usar la propiedad css stroke para pintar el contorno de un elemento svg conoce los valores disponibles con ejemplos prácticos la propiedad css stroke pinta el contorno la línea de una forma svg o de un fragmento de texto mientras que fill colorea el interior de una forma stroke colorea su borde juntos controlan cómo se dibuja cada trazado círculo rectángulo y elemento de texto svg esta página explica qué hace stroke los valores que acepta cómo interactúa con las propiedades de trazo relacionadas anchura patrón de guiones extremos de línea y los errores comunes que suelen surgir cuándo debo usarlo stroke solo afecta al contenido svg no tiene ningún efecto en elementos html ordinarios como div o p úsalo cuando estés dibujando iconos gráficos o diagramas en línea con svg animando una línea que se dibuja a sí misma combina stroke con stroke dasharray y stroke dashoffset delineando texto svg sin rellenarlo puedes encontrar colores web con nombre en la sección de colores html propiedad css vs atributo de presentación stroke es especial puedes definirlo tanto como propiedad css o como atributo de presentación svg escrito directamente en el elemento estas dos líneas producen el mismo resultado presentation attribute path stroke 1c87c9 d m5 20 l215 0 css via a style block or stylesheet path style stroke 1c87c9 d m5 20 l215 0 copiar cuando ambos están presentes gana css un style en línea o cualquier regla de hoja de estilos anula el atributo de presentación esto permite definir un color predeterminado en el marcado y sobreescribirlo desde css por ejemplo al pasar el cursor i información la propiedad stroke puede usarse tanto como propiedad css como atributo de presentación se puede aplicar a cualquier elemento pero solo tiene efecto en los siguientes altglyph circle ellipse line path polygon polyline rect text textpath tref y tspan valor inicial none se aplica a formas y elementos de contenido de texto heredado sí animable no versión especificación svg 1 1 sintaxis dom object stroke 1c87c9 sintaxis sintaxis css de stroke stroke color url none context fill context stroke initial inherit copiar ejemplo de la propiedad stroke ejemplo de código css stroke doctype html html head title title of the document title head body h2 stroke property example h2 svg height 100 width 500 g fill none path stroke 8ebf42 d m5 20 l215 0 path stroke 1c87c9 d m5 40 l215 0 path stroke 666666 d m5 60 l215 0 g svg body html copiar pruébalo tú mismo resultado ejemplo con formas y css no es necesario escribir stroke como atributo aquí se define desde un bloque style y se aplica a varias formas a la vez observa fill none para que solo se muestre el contorno doctype html html head title title of the document title style outline fill none stroke 1c87c9 stroke width 4 px circle outline stroke 8ebf42 style head body h2 stroke from a css rule h2 svg height 120 width 300 rect class outline x 10 y 10 width 100 height 100 circle class outline cx 220 cy 60 r 50 svg body html copiar pruébalo tú mismo valores valor descripción none no se aplica ningún color de relleno color establece un color sólido se pueden usar nombres de colores códigos de color hexadecimales rgb rgba hsl hsla url referencia url a un elemento de servidor de pintura que define un servidor de pintura context fill utiliza el valor de fill del elemento de contexto context stroke utiliza el valor de stroke del elemento de contexto initial hace que la propiedad use su valor predeterminado inherit hereda la propiedad de su elemento padre el valor inicial es none lo que significa que una forma sin stroke se dibuja sin ningún contorno incluso si stroke width está definido propiedades de trazo relacionadas stroke solo define el color del contorno para controlar cómo se ve ese contorno combínalo con stroke width el grosor de la línea stroke dasharray un patrón de guiones espacios en lugar de una línea sólida stroke dashoffset dónde comienza el patrón de guiones clave para las animaciones de trazado stroke linecap la forma de los extremos de la línea errores comunes no aparece nada si stroke width es 0 el valor predeterminado el contorno es invisible sin importar el color elegido define siempre una anchura la forma es sólida si solo quieres el contorno define fill none de lo contrario el interior se pinta de negro de forma predeterminada no funciona en un div stroke solo tiene efecto en elementos gráficos y de texto svg altglyph circle ellipse line path polygon polyline rect text textpath tref y tspan práctica práctica cuál es el propósito de la propiedad css stroke y cómo se usa cuál es el propósito de la propiedad css stroke y cómo se usa la propiedad stroke se usa para definir el color del borde de una forma svg la propiedad stroke se usa para definir el color del fondo de una página web la propiedad stroke se puede aplicar a elementos html como div o section la propiedad stroke acepta varios valores como nombres de colores códigos hexadecimales rgb rgba hsl hsla y palabras clave de color stroke es una propiedad abreviada de stroke width stroke linejoin y stroke linecap comprobar was this page helpful yes no previous speak next stroke dasharray on this page cuándo debo usarlo propiedad css vs atributo de presentación sintaxis valores propiedades de trazo relacionadas errores comunes práctica w3docs tutoriales ejemplos ejercicios fragmentos y cuestionarios gratuitos para la web desde 2014 libros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python práctica ejercicios cuestionarios editor try it herramientas html editor password generator html encoder code diff json beautifier empresa acerca de contacto política de privacidad idioma english deutsch русский français español português italiano 2026 w3docs todos los derechos reservados hecho para desarrolladores
|