Hello all, I want to add custom nodes into my HTML document so I would get the result in the picture. I am a bit confused into how I would do something like this. Can someone explain it to me? Do I need XML for this or some other technologies aside from HTML that I haven’t heard of? I know I could do that result with tables, but I want a more clean approach to it and would prefer something like this instead of tables.
<entity type="Person">
<image><?php //image from db ?></image>
<first_name><?php //first name from db ?></first_name>
<last_name><?php //last name from db ?></last_name>
<gender><?php //gender from db ?></gender>
<city><?php //city from db ?></city>
<country><?php //country from db ?></country>
</entity>
I’m a little confused as to why you would want to create custom tags especially when you mention you could use tables as there is nothing in common between the two?