Answer the question
In order to leave comments, you need to log in
Are the "Login" and "Register" links better done with a CSS pseudo-element, or in HTML?
Hello!
The question of semantics, and structure of the document interests.
How to layout the content of the page, and its components. Such as interface elements, navigation, etc.
If HTML today is not responsible for appearance, but only for content, then is it right to do everything that does not concern content with CSS3. For example, icons, service links such as login and registration, and everything that does not apply to content should be placed, for example, inside the content property: ""; on pseudo-elements
Answer the question
In order to leave comments, you need to log in
Links are also content, they are site navigation. But your site - your rules, you can do whatever you want on it. Just do not carry it to the masses and set the link text in content. What if you need to change the link text? What about localization? Change css every time? And if css is compiled by a preprocessor, then compile again for each chik?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question