E
E
EYPPNM2019-04-06 20:07:20
css
EYPPNM, 2019-04-06 20:07:20

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

2 answer(s)
P
profesor08, 2019-04-06
@EYPPNM

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?

S
SagePtr, 2019-04-07
@SagePtr

And also, if you are too perverted, search engines may understand your site differently than you planned it. Or even lower in the issuance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question