html - CSS vs DRY -


If you are creating an HTML layout, suppose you do not need the benefits of several stylesheets, which is a A small increase is not a matter of concern, and that you are a style that will be used only once, I am often in favor of using an inline style, as I repeat the reciprocity of my CSS class name or ID as an abstract I look at the cost of which you Do not have the knowledge, and sometimes can not even use it.

The standard principles these days are always to create HTML layouts using semantic markup and CSS styles, so am I missing something here? Please tell me your thoughts.

Even if you only use a special style, It does not have to keep it with its second style and put it inline. First of all, there is a separation of anxiety which leads to improved maintenance. If you know that you are going to change only one style, then there is a place to see any change. Another benefit is that by typing self-documentation into class names. By giving that style a name, even though it is used once, it makes the semantic code more declarative - you can read that it is not only a paragraph of random p , it is Also says, Introduction paragraphs.

It is definitely assuming that you ever are going to use that special style again if you can be There can be more reasons to be effective in its designated style. Inline styles are not bad, but they belong to some Gateway medicines.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -