Consignes relatives aux modèles d'e-mails personnalisés

Modèles d’e-mails de directivesConfigurez des modèles d'e-mails standard et créez des modèles d'e-mails personnalisés, adaptés à des besoins spécifiques. Pour des raisons de sécurité, Bazaarvoice suit certaines lignes directrices et restrictions concernant les balises HTML dans les modèles d'e-mails personnalisés. Reportez-vous aux listes suivantes des balises et attributs HTML autorisés, des balises HTML non prises en charge et des lignes directrices.

Balises HTML autorisées

Balises HTML Attributs
html xmlns
corps bgcolor, link, vlink, alink, background, marginheight, marginwidth, leftmargin, topmargin
titre meta
titre Aucun attribut autorisé
noscript Aucun attribut autorisé
ensemble de cadres Aucun attribut autorisé
cadre Aucun attribut autorisé
Libellé pour
former action, nom, autocomplétion, méthode
bouton nom, valeur, désactivé, clé d'accès, type
entrée name, size, maxlength, placeholder, autocomplete, checked, alt, src, usemap, type, value, disabled, readonly, accesskey, border, required, aria-label, aria-roledescription, aria-hidden
sélectionner nom, désactivé, multiple, taille
option désactivé, valeur, libellé, sélectionné
zone de texte lignes, colonnes, nom, désactivé, lecture seule, clé d'accès, espace réservé, aria-label, aria-roledescription, aria-hidden
h1 style, id, class, align
h2 style, id, class, align
h3 style, id, class, align
h4 style, id, class, align
h5 style, id, class, align
h6 style, id, class, align
p style, id, class
i style, id, class
b style, id, class
s style, id, class
u style, id, class
fort style, id, class
em style, id, class
petit style, id, class
grand style, id, class
pré style, id, class
code style, id, class
del title, style, id, class
citer Aucun attribut autorisé
samp Aucun attribut autorisé
sous-titre style, id, class
sup style, id, class
grève Aucun attribut autorisé
centre aria-label, aria-roledescription, aria-hidden
blockquote title, style, id, class
légende style, id, class
heure style, id, class
br style, id, class
police color, face, size, style, id, class
Un(e) href, nohref, rel, name, title, style, id, class, shape, coords, alt, width, align, target, aria-label, aria-roledescription, aria-hidden
carte type, scoped, media, *, Editor::STYLIST_TAG_ATTR
span title, style, id, class, align, dir, aria-label, aria-roledescription, aria-hidden
div align, title, style, id, class, border, dir, aria-label, aria-roledescription, aria-hidden
img style, id, class, title, src, name, alt, height, width, border, align, hspace, vspace, aria-label, aria-roledescription, aria-hidden
ins title, style, id, class
lien media, href, type, rel
ul style, id, class
ol style, id, class
li style, id, class
jj Aucun attribut autorisé
dl Aucun attribut autorisé
dt style, id, class
thead align, char, charoff, valign, style, id, class
tbody align, char, charoff, valign, style, id, class
tfoot align, char, charoff, valign, style, id, class
table height, width, border, bgcolor, cellpadding, cellspacing, background, align, noresize, style, id, class, tr, bgcolor, role
td background, bgcolor, abbr, axis, headers, scope, nowrap, height, width, align, char, charoff, valign, colspan, rowspan, style, id, class, target, font, aria-label, aria-roledescription, aria-hidden
th abbr, axis, headers, scope, nowrap, bgcolor, height, width, align, char, charoff, valign, colspan, rowspan, style, id, class
tr height, width, align, valign, char, charoff, background, style, id, class, bgcolor
colgroup span, width, align, char, charoff, valign
col align, char, charoff, valign, span, width
fieldset Aucun attribut autorisé
légende Aucun attribut autorisé
objet identifiant, classid, codebase, type, donnée, aligner, hauteur, largeur, alt, bgcolor
intégrer src, movie, pluginspage, bgcolor, base, type, name, flashvars, align, height, width, allowfullscreen, quality, allowscriptaccess, seamlesstabbing, swliveconnect, wmode, allownetworking
php id
svg height, width, version, viewBox, xmlns, xmlns:xlink, enable-background
chemin d, remplir
polygone remplir, points
g id

Balises HTML non prises en charge

Bazaarvoice ne prend pas en charge l'utilisation des balises HTML suivantes pour améliorer la sécurité du système.

  • base
  • source
  • Bas de page
  • En-tête
  • Personnalisé
  • spancet
  • zone
  • désabonner
  • photo
  • spanthis
  • nobr
  • wapper
  • vänliga
  • chemin
  • g
  • iframe
  • svg
  • polygone
  • Réponse sur plusieurs lignes
  • section
  • wbr
  • script
  • audio

Styles CSS autorisés

Bazaarvoice ne permet l'utilisation des styles CSS suivants que si vous les ajoutez au corps (body) de votre page.

CSS_Property Valeurs autorisées Valeurs prises en charge de
azimut côté gauche, extrême gauche, gauche, centre-gauche, centre, centre-droit, droite, extrême droite, côté droit, derrière, vers la gauche, vers la droite, hériter
arrière-plan Hériter background-color, background-image, background-repeat, background-attachment, background-position
background-attachment défilement, fixe, hériter
background-color transparent, hériter
background-image aucun, hériter
Position de l'arrière-plan haut, centre, bas, gauche, centre, droite, hériter
background-repeat repeat, repeat-x, repeat-y, no-repeat, inherit
border-collapse s'effondrer, séparer, hériter
border-color transparent, hériter
couleur de la bordure supérieure Hériter
border-right-color Hériter
couleur de la bordure inférieure Hériter
border-left-color Hériter
border-radius
border-top-right-radius
border-bottom-right-radius
border-bottom-left-radius
bas auto, hériter
caption-side haut, bas, gauche, droite, hériter
Supprimer aucun, gauche, droite, les deux, hériter
Couleur Hériter
cue-after aucun, hériter
avant-cue aucun, hériter
orientation ltr, rtl, hériter
affichage inline, block, list-item, run-in, compact, marker, table, inline-table, table-row-group, table-header-group, table-footer-group, table-row, table-column-group, table-column, table-cell, table-caption, none, inherit, inline-block
élévation au-dessous, niveau, au-dessus, plus haut, plus bas, hériter
empty-cells afficher, masquer, hériter
flottant gauche, droite, aucun, hériter
taille de police Hériter
font-size-adjust aucun, hériter
font-stretch normal, plus large, plus étroit, ultra-condensé. extra-condensé, condensé, semi-condensé, semi-étendu, étendu, extra-étendu, ultra-étendu, hériter
font-style normal, italique, oblique, hériter
font-variant normal, petites capitales, hériter
poids de la police normal, gras, plus gras, plus léger, 100, 200, 300, 400, 500, 600, 700. 800, 900, hériter
hauteur auto, hériter
restant auto, hériter
espacement des lettres normal, hériter
line-height normal, hériter
list-style-image aucun, hériter
list-style-position à l'intérieur, à l'extérieur, hériter
list-style-type disque, cercle, carré, décimal, décimal avec zéro initial, romain inférieur, romain supérieur, grec inférieur, alpha inférieur, latin inférieur, alpha supérieur, latin supérieur, hébreu, arménien, géorgien, idéographique CJC, hiragana, katakana, hiragana-iroha, katakana-iroha, aucun, hériter
marker-offset auto, hériter
max-height aucun, hériter, auto, tout
largeur max. aucun, hériter
min-height Hériter
min-width hériter, auto
orphelins Hériter
outline-color inverser, hériter
débordement visible, caché, défilement, auto, hériter
page-break-after auto, toujours, éviter, gauche, droite, hériter
page-break-before auto, toujours, éviter, gauche, droite, hériter
pause-après Hériter
pause avant Hériter
présentation x-bas, bas, moyen, élevé, x-élevé, hériter
pitch-range Hériter
position statique, hériter
richesse Hériter
correct auto, hériter
size auto, portrait, paysage, hériter
parler normal, aucun, épeler, hériter
en-tête de discours une fois, toujours, hériter
parler-numéral chiffres, continus, hériter
speak-punctuation code, aucun, hériter
vitesse de parole x-lent, lent, moyen, rapide, x-rapide, plus rapide, plus lent, hérité
stress Hériter
mise en page des tables auto, fixe, hériter
text-indent Hériter
text-transform capitaliser, majuscules, minuscules, aucun, hériter
haut auto, hériter
unicode-bidi normal, embed, bidi-override, inherit
alignement vertical baseline, sub, super, top, text-top, middle, bottom, text-bottom, inherit
visibilité visible, caché, replié, hériter
volume silencieux, x-doux, doux, moyen, fort, x-fort, hériter
espace blanc normal, pré, nowrap, hériter
veuves Hériter
largeur auto, hériter
espacement des mots normal, hériter
border-style hériter, aucun, caché, en pointillés, en tirets, plein, double, rainure, crête, en creux, en relief
border-top-style solide, hériter
border-right-style Hériter border-style
border-bottom-style Hériter border-style
border-left-style Hériter border-style
largeur de la bordure supérieure Hériter largeur de bordure
largeur-bordure-droite Hériter largeur de bordure
largeur de la bordure inférieure Hériter largeur de bordure
largeur de la bordure gauche Hériter largeur de bordure
largeur de la bordure hériter, mince, moyen, épais largeur de bordure
marge extérieure hériter, auto
margin-top Hériter marge extérieure
marge inférieure Hériter marge extérieure
marge droite Hériter marge extérieure
marge gauche Hériter marge extérieure
outline-style Hériter border-style
épaisseur du contour Hériter largeur de bordure
marge intérieure Hériter
haut de la page Hériter marge intérieure
padding-right Hériter marge intérieure
marge intérieure inférieure Hériter marge intérieure
marge intérieure gauche Hériter marge intérieure
bordure Hériter border-width, border-style
border-top Hériter border-top-width, border-style
border-right Hériter border-top-width, border-style
border-left Hériter border-top-width, border-style
border-bottom Hériter border-top-width, border-style
indice Hériter indice avant, indice après
list-style Hériter list-style-type, list-style-position, list-style-image
Notes Hériter recadrer, croiser, aucun, hériter
ouline Hériter outline-color, outline-style, outline-width
pause Hériter
text-decoration aucun, soulignement, surlignement, barré, clignotement, hériter
espacement des bordures Hériter
barrette auto, hériter
counter-increment aucun, hériter
curseur auto, inherit, croix, défaut, pointeur, déplacer, e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize, w-resize, texte, attendre, aide
text-shadow aucun, hériter
fonte /, légende, icône, menu, boîte de message, petite légende, barre d'état, hériter font-style, font-variant, font-weight, font-size, line-height, font-family
font-family
page auto
jouer pendant mix, repeat, none, auto, hériter
text-align gauche, droite, centre, justifier, hériter
voice-family homme, femme, enfant, hériter
mso-ansi-font-size
mso-ansi-font-style
mso-ansi-font-weight
mso-ansi-language
mso-ascii-font-family
mso-background
mso-background-source
mso-baseline-position
mso-bidi-flag
mso-bidi-font-family
mso-bidi-font-size
mso-bidi-font-style
mso-bidi-font-weight
mso-bidi-language
mso-bookmark
mso-border-alt
mso-border-between
mso-border-between-color
mso-border-between-style
mso-border-between-width
mso-border-bottom-alt
mso-border-bottom-color-alt
mso-border-bottom-source
mso-border-bottom-style-alt
mso-border-left-width-alt
mso-border-right-alt
mso-border-right-color-alt
mso-border-right-color-alt
mso-border-right-source
mso-border-right-style-alt
mso-border-right-width-alt
mso-border-shadow
mso-border-source
mso-border-style-alt
mso-border-top-alt
mso-border-top-color-alt
mmso-border-top-source
mso-border-top-style-alt
mso-border-top-width-alt
mso-border-width-alt
mso-break-type
mso-build
mso-build-after-action
mso-build-after-color
mso-build-auto-secs
mso-build-avi
mso-build-dual-id
mso-build-order
mso-build-sound-name
mso-bullet-image
mso-cellspacing
mso-cell-special
mso-char-indent
mso-char-indent-count
mso-char-indent-size
mso-char-type
mso-char-wrap
mso-color-alt
mso-color-index
mso-color-source
mso-column-break-before
mso-columns
mso-column-separator
mso-comment-author
mso-comment-continuation
mso-comment-identifiant
mso-comment-reference
mso-data-placement
mso-default-height
mso-default-width
mso-diagonal-down
mso-diagonal-down-color
mso-diagonal-down-source
mso-diagonal-down-style
mso-diagonal-down-width
mso-diagonal-up
mso-diagonal-up-color
mso-diagonal-up-source
mso-diagonal-up-style
mso-diagonal-up-width
mso-displayed-decimal-separator
mso-displayed-thousand-separator
mso-element
mso-element-anchor-horizontal
mso-element-anchor-lock
mso-element-anchor-vertical
mso-element-frame-height
mso-element-frame-hspace
mso-element-frame-vspace
mso-element-frame-width
mso-element-left
mso-element-linespan
mso-element-top
mso-element-wrap
mso-endnote-continuation-notice
mso-endnote-continuation-notice-identifiant
mso-endnote-continuation-notice-src
mso-endnote-continuation-separator
mso-endnote-continuation-separator-identifiant
mso-endnote-continuation-separator-src
mso-endnote-display
mso-endnote-identifiant
mso-endnote-numbering
mso-endnote-numbering-restart
mso-endnote-numbering-start
mso-endnote-numbering-style
mso-endnote-position
mso-endnote-separator
mso-endnote-separator-identifiant
mso-endnote-separator-src
mso-even-footer
mso-even-footer-id
mso-even-footer-src
mso-even-header
mso-even-header-id
mso-even-header-src
mso-facing-pages
mso-fareast-font-family
mso-fareast-hint
mso-fareast-language
mso-field-change
mso-field-change-author
mso-field-change-time
mso-field-change-value
mso-field-code
mso-field-lock
mso-fills-color
mso-first-footer
mso-first-footer-id
mso-first-footer-src
mso-first-header
mso-first-header-id
mso-first-header-src
mso-font-alt
mso-font-charset
mso-font-format
mso-font-info
mso-font-info-charset
mso-font-info-type
mso-font-kerning
mso-font-pitch
mso-font-signature
mso-font-signature-csb-one
mso-font-signature-csb-two
mso-font-signature-usb-four
mso-font-signature-usb-one
mso-font-signature-usb-three
mso-font-signature-usb-two
mso-font-src
mso-font-width
mso-footer
mso-footer-data
mso-footer-identifiant
mso-footer-margin
mso-footer-src
mso-footnote-continuation-notice
mso-footnote-continuation-notice-identifiant
mso-footnote-continuation-notice-src
mso-footnote-continuation-separator
mso-footnote-continuation-separator-identifiant
mso-footnote-continuation-separator-src
mso-footnote-identifiant
mso-footnote-numbering
mso-footnote-numbering-restart
mso-footnote-numbering-start
mso-footnote-numbering-style
mso-footnote-position
mso-footnote-separator
identifiant mso-footnote-separator-id
mso-footnote-separator-src
mso-foreground
mso-forms-protection
mso-generic-font-family
mso-grid-bottom
mso-grid-bottom-count
mso-grid-left
mso-grid-left-count
mso-grid-right
mso-grid-right-count
mso-grid-top
mso-grid-top-count
mso-gutter-direction
mso-gutter-margin
mso-gutter-position
mso-hansi-font-family
mso-header
mso-header-data
mso-header-identifiant
mso-header-margin
mso-header-src
mso-height-alt
mso-height-rule
mso-height-source
mso-hide
mso-highlight
mso-horizontal-page-align
mso-hyphenate
mso-ignore
mso-kinsoku-overflow
mso-layout-grid-align
mso-layout-grid-char-alt
mso-layout-grid-origin
mso-level-inherit
mso-level-legacy
mso-level-legacy-indent
mso-level-legacy-space
mso-level-legal-format
mso-level-number-format
mso-level-numbering
mso-level-number-position
mso-level-reset-level
mso-level-start-at
mso-level-style-link
mso-level-suffix
mso-level-tab-stop
mso-level-text
mso-line-break-override
mso-line-grid
mso-line-height-alt
mso-line-height-rule
mso-line-numbers-count-by
mso-line-numbers-distance
mso-line-numbers-restart
mso-line-numbers-start
mso-line-spacing
mso-linked-frame
mso-list
mso-list-change
mso-list-change-author
mso-list-change-time
mso-list-change-values
mso-list-id
mso-list-ins
mso-list-ins-author
mso-list-ins-time
mso-list-name
mso-list-template-ids
mso-list-type
mso-margin-bottom-alt
mso-margin-left-alt
mso-margin-top-alt
mso-mirror-margins
mso-negative-indent-tab
mso-number-format
mso-outline-level
mso-outline-parent
mso-outline-parent-col
mso-outline-parent-row
mso-outline-parent-visibility
mso-outline-style
mso-padding-alt
mso-padding-between
mso-padding-bottom-alt
mso-padding-left-alt
mso-padding-right-alt
mso-padding-top-alt
mso-page-border-aligned
mso-page-border-art
mso-page-border-bottom-art
mso-page-border-display
mso-page-border-left-art
mso-page-border-offset-from
mso-page-border-right-art
mso-page-border-surround-footer
mso-page-border-surround-header
mso-page-border-top-art
mso-page-border-z-order
mso-page-numbers
mso-page-numbers-chapter-separator
mso-page-numbers-chapter-style
mso-page-numbers-start
mso-page-numbers-style
mso-page-orientation
mso-page-scale
mso-pagination
mso-panose-arm-style
mso-panose-contrast
mso-panose-family-type
mso-panose-letterform
mso-panose-midline
mso-panose-proportion
mso-panose-serif-style
mso-panose-stroke-variation
mso-panose-weight
mso-panose-x-height
mso-paper-source
mso-paper-source-first-page
mso-paper-source-other-pages
mso-pattern
mso-pattern-color
mso-pattern-style
mso-print-area
mso-print-color
mso-print-gridlines
mso-print-headings
mso-print-resolution
mso-print-sheet-order
mso-print-title-column
mso-print-title-row
mso-prop-change
mso-prop-change-author
mso-prop-change-time
mso-protection
mso-rotate
mso-row-margin-left
mso-row-margin-right
mso-ruby-merge
mso-ruby-visibility
mso-scheme-fill-color
mso-scheme-shadow-color
mso-shading
mso-shadow-color
mso-space-above
mso-space-below
mso-spacerun
mso-special-character
mso-special-format
mso-style-id
mso-style-name
mso-style-next
mso-style-parent
mso-style-type
mso-style-update
mso-subdocument
mso-symbol-font-family
mso-tab-count
mso-table-anchor-horizontal
mso-table-anchor-vertical
mso-table-bspace
mso-table-del-author
mso-table-deleted
mso-table-del-time
mso-table-dir
mso-table-ins-author
mso-table-inserted
mso-table-ins-time
mso-table-layout-alt
mso-table-left
mso-table-lspace
mso-table-overlap
mso-table-prop-author
mso-table-prop-change
mso-table-prop-time
mso-table-rspace
mso-table-top
mso-table-tspace
mso-table-wrap
mso-text-animation
mso-text-combine-brackets
mso-text-combine-identifiant
mso-text-control
mso-text-fit-identifiant
mso-text-indent-alt
mso-text-orientation
mso-text-raise
mso-title-page
mso-tny-compress
mso-unsynced
mso-vertical-align-alt
mso-vertical-align-special
mso-vertical-page-align
mso-width-alt
mso-width-source
mso-word-wrap
mso-xlrowspan
mso-zero-height
-webkit-border-radius
-moz-border-radius
-webkit-text-size-adjust
-ms-text-size-adjust
-ms-interpolation-mode
-webkit-font-smoothing
object-fit
opacité

Consignes pour créer des modèles HTML

Consignes relatives aux feuilles de style en cascade (CSS)

Nous ne prenons pas en charge :

  • Restriction de remplacement des balise de style : le remplacement de la balise style dans une autre balise n'est pas pris en charge. Les clients doivent suivre le format HTML donné.
  • Exclusion de balise de style de cas particulier: le cas particulier de remplacement de la balise style dans une autre balise n'est pas pris en charge. Seules les balises de style de premier niveau sont autorisées.
  • Suppression des polices de tailles spécifiques : les polices de 12 ou 16 pixels en Arial seront supprimées, car Antisamy ne prend pas en charge ces formats, ainsi que les polices à valeurs numériques.
  • Limitation des balises de style : une seule balise de style est autorisée dans une balise. Si plusieurs balises de style sont détectées, la première sera ignorée et la seconde sera utilisée.
  • Dégradés linéaires en CSS : les dégradés linéaires en CSS ne sont pas pris en charge pour des raisons de sécurité. Utilisez plutôt des formats de couleur unie pour le style CSS.

    Par exemple :

    Remplacer
    <div style="background-image: linear-gradient(#005e2c, #008c43);"></div>
    Lorsque vous avez choisi les
    <div style="background-color: #005e2c;"></div>

Consignes générales relatives au HTML

Nous ne prenons pas en charge :

  • Balises non fermées : assurez-vous de fermer toutes les balises afin qu'elles fonctionnent correctement.
  • Exigence relative au type de document : incluez une déclaration de type de document valide au début des fichiers HTML. Sans cela, le style pourrait ne pas fonctionner correctement. Voici un exemple de format HTML standard que vous pouvez copier :
    HTML
    <!DOCTYPE html>
    <html>
      <head>
        <title>Page title</title>
      </head>
       <body>This is a paragraph</body>
    </html>

  • Condition de départ du fichier HTML : les fichiers HTML doivent toujours commencer par une déclaration doctype, et non par une balise custom ou toute autre balise personnalisée.
  • Gestion du protocole d'URL des images: supprimez les balises « http » supplémentaires des URL des images afin qu'elles fonctionnent correctement.
  • Exigence relative à la balise body : veillez à définir la balise body dans les documents HTML pour un bon rendering.
  • Exigence relative à la balise standard : seules les balises standard sont autorisées. Les balises non standard, telles que "-webkit-text-size-adjust:none", seront supprimées.
  • Balises vides : évitez les balises vides car elles peuvent avoir un impact négatif sur le comportement du système.
Provide feedback button