1
I am creating a web page creation system for people who have no programming experience, but the organization of the page is done through tags.
For example:
<conteudo>
<artigo class="flex quebra">
<postagem class="completo">
<h1>Lorem ipsum dolor.</h1>
<h2>Lorem ipsum dolor sit amet, consectetur.</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam corrupti atque natus.</p>
</postagem>
<postagem class="metade">
<h1>Lorem ipsum dolor.</h1>
<h2>Lorem ipsum dolor sit amet, consectetur.</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam corrupti atque natus.</p>
</postagem>
</artigo>
<lado>
<widget>
<h1>Lorem ipsum.</h1>
<conteudo>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Totam neque itaque dolor sunt, illo!
</conteudo>
</widget>
</lado>
</conteudo>
I know I should have a div for every item, but since it’s meant for people who have no experience, it would be easier that way. This would affect in the future much the positioning of pages in search engines?
Can’t you identify the element by the class instead of the tag? Transforming
<artigo class="flex quebra">
for<div class="tagArtigo flex quebra">
for example.– Daniel Dutra
The point is, how to do the way I did would negatively affect the page in search engines?
– Daniel Bonifácio
If it is to do this, much better to simplify the whole syntax, and not just change the name of the tags. The intention is good, the solution is suffered. Also remembering that if you use your own tags, it is no longer HTML, it becomes at most an XML, which will only work thanks to the flexibility of the browsers.
– Bacco
I understand that is not the best solution, but for now it is necessary to be so. The main question is about the search robots. Please, anyone who can answer the question, thank you.
– Daniel Bonifácio
Update of the specification: https://www.w3.org/TR/custom-elements/
– Bacco