I was testing which html tags are allowed to have css rules.
If I try to add display: none to all the html tags (see www.w3schools.com/tags/ for list of valid tags and what they do).
a, abbr, acronym, address, b, basefont, bdo, big, blockquote, br, caption, center, cite, code, col, colgroup, dd, del, dfn, dir, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, ins, kbd, li, menu, ol, p, pre, q, s, samp, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var {
display:none
}
Ok most of the tags it strips out are of no/very little use when it comes to css and mahara - but some that I think maybe worth keeping are:
body,
button,
form,
input,
label,
legend,
option,
select,
textarea,
The 'body' one is especially useful for setting the default font-size, font-family, color, background-colour etc.
What do others think, allow more html tags to accept css styling?
I was testing which html tags are allowed to have css rules. com/tags/ for list of valid tags and what they do).
If I try to add display: none to all the html tags (see www.w3schools.
a,
abbr,
acronym,
address,
applet,
area,
article,
aside,
audio,
b,
base,
basefont,
bdi,
bdo,
big,
blockquote,
body,
br,
button,
canvas,
caption,
center,
cite,
code,
col,
colgroup,
datalist,
dd,
del,
details,
dfn,
dialog,
dir,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
font,
footer,
form,
frame,
frameset,
head,
header,
hgroup,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
html,
i,
iframe,
img,
input,
ins,
kbd,
keygen,
label,
legend,
li,
link,
main,
map,
mark,
menu,
menuitem,
meta,
meter,
nav,
noframes,
noscript,
object,
ol,
optgroup,
option,
output,
p,
param,
pre,
progress,
q,
rp,
rt,
ruby,
s,
samp,
script,
section,
select,
small,
source,
span,
strike,
strong,
style,
sub,
summary,
sup,
table,
tbody,
td,
textarea,
tfoot,
th,
thead,
time,
title,
tr,
track,
tt,
u,
ul,
var,
video,
wbr {
display: none;
}
It only leaves me with:
a, abbr, acronym, address, b, basefont, bdo, big, blockquote, br, caption, center, cite, code, col, colgroup, dd, del, dfn, dir, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, ins, kbd, li, menu, ol, p, pre, q, s, samp, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var {
display:none
}
Ok most of the tags it strips out are of no/very little use when it comes to css and mahara - but some that I think maybe worth keeping are:
body,
button,
form,
input,
label,
legend,
option,
select,
textarea,
The 'body' one is especially useful for setting the default font-size, font-family, color, background-colour etc.
What do others think, allow more html tags to accept css styling?