Z
Z
ZaxapKramer2017-05-01 04:47:20
HTML
ZaxapKramer, 2017-05-01 04:47:20

Layout of sites on XML (in the HTML furnace), custom tags and indexing by search engines, how are things going?

Hello.

Foreword (how did I get to this point).
В свое время занимался таким извращением, как "верстка сайтов на svg"... но это - немного не тот случай.
Тогда все делалось, ясное дело, ради эксперимента и весьма удачного, хочу заметить. Но нынешняя моя проблема немного в другом.
Сначала все было лампово: обычный html, обычный css... но затем мне стало чего-то не хватать - БЭМ, вот тогда-то мы и встретились. Далее познакомился с другими вариантами структуризации кода, но в душу запал AMCSS. Боковым зрением заметил в одной из статей упоминание того, что будущее за "custom tags", мол, гугл их использует и ссылка с чем-то вроде этого в контексте: <my-button class="block black"></my-button>
Использовав AMCSS на практике, я был дико разочарован, как и после использования БЭМ: все было крайне скомкано и... превращая div в модалку, я испытывал нехватку делания этого с помощью увиденного тогда my-modal и подобных кастомных тегов для элементов дизайна, которые часто встречаются. Это и называется кастомными тегами, впрочем, удивляться нечему.

We all know (or don't) that custom tags are, in fact, not very well supported by browsers. At least, this applies to my favorite IE8. I don't know how things are with mobile phones.
Also found this answer on stackoverflow . Not bad, but nothing is known about the alternative, other than "sticking js". Plus... a trifle, but without "resetting" the styles of the same button tags, etc. I will not be able to use them "beautifully" (cockroaches in my head).
Therefore, to support this, as many will say, perversion , JS is required, and ... I think that for each such element you will have to write separate "rules" (mention them in js, i.e.) - I didn’t like it.
Here I also remembered about XML. Having found rare references to layout, I even rarely saw exactly what I wanted, but more often it was "XML Sitemap", "XML Database" and so on.
With grief in half, I was relatively convinced that it is possible to typeset on XML , but what does it threaten us with?
The cons of this immediately came to mind:
- "Bad" indexing by search engines (is it true?);
- Poor support by project builders (Gulp, Grunt, etc., haven't checked, I use Brunch myself);
- Poor browser support (is it possible, will it, for example, "run" on IE and how is it with cellular ?).
Thanks in advance.
I really hope for a normal answer or an indication of another way to use custom tags.

PS And yes, a bit of my ignorance: you need to write a custom DTD, as I understand it? What options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
codecity, 2017-05-01
@ZaxapKramer

About 10 years ago there were sites on pure XML for data and XSLT for converting this data into HTML. Moreover, the conversion worked by means of the IE browser without JS (there was such a function).
Many people liked this idea - the separation into data and their presentation.
Perhaps the idea is good, but evolution, so to speak, has chosen a different path - a movement towards simplification. Now, as I see it, I have abandoned XML altogether, it has been replaced by a simpler presentation format - JSON. Instead of XSLT, either HTML templates like in Angular or JSX are used.

I
Ilya Bosenok, 2017-05-14
@bosenok

Oh ... Some kind of garbage toil. Take a look at VueJS if you want to write during layout: Well, or web components... And stop toiling with nonsense... It will not bring you money. The benefits of such experiments also tend to zero. And if I were in the place of the customer, I would go around you for 500 kilometers ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question