Agreed.
On the issue of readability, consider:
Code:
<a href="something.html" style="background-color: silver;color: black;border: 3px inset silver;display: block;width: 80%;overflow: scroll;white-space: pre;margin: 1em;max-height: 50em;font-family: monospace;padding: 1em; height: 5em;width: 90%;margin-left: 5%;margin-top: 1em;padding-top: 1em;text-align: center;font-size: 90%;font-style: italic;padding-bottom: 2em;margin-bottom: 2em;">Text</a>
Versus:
Code:
<a
href="something"
style="
background-color: silver;
color: black;
border: 3px inset silver;
display: block;
width: 80%;
overflow: scroll;
white-space: pre;
margin: 1em;
max-height: 50em;
font-family: monospace;
padding: 1em;
height: 5em;
width: 90%;
margin-left: 5%;
margin-top: 1em;
padding-top: 1em;
text-align: center;
font-size: 90%;
font-style: italic;
padding-bottom: 2em;
margin-bottom: 2em;
"
>
Text
</a>
But you're right, generally it's better to use a class or a function when things get large enough to require this.
Bookmarks