La magia dei nested tag

Scrivo questo post per mostrarvi il comportamento assolutamente incredibile dei moderni browser web. Premetto che scrivo le pagine web in XHTML (1.0 Strict o anche 1.1).

Nel formato XML i tag vanno aperti e chiusi ponendo il relativo nome tra parentesi uncinate, facendo attenzione al fatto che nella chiusura il nome deve essere preceduto dal carattere slash (“/”). Ad esempio:

<tag_name> ... contenuto del tag ... </tag_name>

Nel caso in cui un tag sia vuoto ci sono due alternative: aprirlo e chiuderlo subito, oppure usare una convenzione particolare, ovvero:

<tag_name />

che indica la presenza di un tag (aperto e subito chiuso) vuoto. E qui viene il bello. Immaginiamo un codice XHTML di questo tipo:

<div class="out">
    <div class="in" />

Questo codice indica un tag div (con classe out) aperto, che contiene al suo interno un tag div (con classe in) vuoto. Bene, il browser lo interpreterà come:

<div class="out">
    <div class="in"></div>

lasciandovi in mano il tag div con classe out aperto, senza relativa chiusura, perché la chiusura viene automaticamente (e qui sta l’“assolutamente incredibile”) associata al tag div con classe in già formalmente chiuso! E immaginatevi quindi i problemi in una pagina XHTML a usare un codice del genere. Il problema, che si verifica solo nell’indentazione di tag col medesimo nome, si risolve chiudendo in modo esteso il tag interno, es:

<div class="out">
    <div class="in"></div>

A questo punto un ultimo dettaglio: parlo di browser, ma quale browser? Chrome, FF 3.0.5 e IE 7. Tutti della stessa pasta.

680 thoughts on “La magia dei nested tag

  1. As soon as you step from the plane into a foreign nation, a hurry of adrenaline will definitely eat you. Not simply have you been in for an adventure so that as respect for countries apart from your own personal, nevertheless, you should be aware basic safety and policies abroad at the same time. This post contains a variety of traveling suggestions to make you stay safe when out of the house. Pack gently when traveling. Men and women always have a tendency to load up considerably more than is needed, and wind up using only about 50 of the things they get. Choose a couple of things you could put on several times, and strive to match almost everything. When you overlook to bring along a particular product, you will probably manage to find something correct on your destination. If you want to go to Walt Walt disney World in Orlando with limited funds, look at going around the beginning of December. Charges towards the park your car do not decline, but this is when resorts in the area lower their price ranges and operate special offers to bring in local website visitors. Moreover, the park is a lot less jampacked, so there is no need to wait in line for as long to your favored attractions. Make sure you record misplaced seats immediately. Lost tickets could be refunded, but this will consider so long as six months. It could also involve a large substitute charge. Reporting your misplaced solution without delay is not going to make points go any quicker, but you will get a refund quicker. In case you are squished for space while traveling by air flow, make the most of each and every in .. Go ahead and take magazines from the budget in front of you and move them instead towards the over head container. Depending on the measurements of the publications, you could have purchased your self a few more “. When you have several concerns for any accommodation, give them a call at nighttime. Most major accommodations always keep their front side desk staffed twenty-four hours a day. If you have questions about booking your living space or particular requires you would like to discuss, calling late at night ensures that you are currently a lot less probably going to be cut off to the attendant to usually a visitor. With suggestions such as these, you have to be more enthusiastic than ever to get out and explore the planet. You’ll widen your thoughts and improve knowledge of the fantastic big community about us. Earn some ideas by using these ideas to make the after that getaway superior to at any time. Have a good time and consider wonderful images!

  2. I and my pals ended up viewing the nice information on your site then at once I had a horrible feeling I had not thanked the site owner for those secrets. The women happened to be absolutely happy to study all of them and have in effect without a doubt been tapping into those things. We appreciate you indeed being quite considerate and then for pick out these kinds of cool guides most people are really eager to learn about. Our sincere apologies for not saying thanks to you sooner.

  3. Touring may be one of the greatest escapades in everyday life. There are numerous spots to travel and items to see. This short article can aid you to widen your horizons and to be a tourist. Vacationing is an essential part of daily life simply because you meet new people and encounter interesting things. Making a street trip enjoyment set for children will help make certain your family members holiday is a dream instead of a headache. There is not any far better way to view the nation when compared to a streets vacation. Nonetheless, it is vital that the children remain occupied to be able to overcome the dullness of the lengthy automobile ride. Load up travel models of popular video games, charge cards, and teenagers could like a journal where you can file their experiences. Be sure your house is not going to appearance empty while you are out. Coming the location of find that you have been robbed will be a headache. If you plan being gone to get a sizeable amount of time, think about redirecting or having a good friend get your snail mail for yourself. When traveling in one more nation, make sure to clean your hands and below your fingernails often. Try not to contact the face, especially your eyes and mouth ,to prevent any bacteria or germs from getting into. This is particularly significant if you’re visiting a significantly less developed region to avoid receiving unwell. When you reach your location don’t hesitate to ask for aid in any respect. The residents of your city must be greater than ready to offer you good advice on where you should visit. You wish to make the most from your expertise so don’t be bashful, remember you’ll possibly in no way see those people once again in any case. As was pointed out at the outset of the article, learning more about traveling is not just for beginner travelers, it is for all. Simply because you will always find things a person might find out. The info in the following paragraphs will help you enhance the standard of your following travel practical experience.

  4. of course like your web-site but you need to take a look at the spelling on quite a few of your posts. Many of them are rife with spelling problems and I in finding it very troublesome to inform the truth nevertheless I’ll certainly come back again.

  5. Whilst outdoor camping is actually a rather simple hobby for millions of people around the globe, among the key techniques to using a fantastic getaway is to know ample ahead of time to be qualified at it. Just realizing a small amount of specifics of camping will help your camping getaway go away without a problem. One of the more crucial elements of your camping out products will be your tent. The tent you purchase should satisfy your desires and how big your camping outdoors celebration. When you have small children, you most likely wish to invest in a huge tent for them to sleep within the identical tent along with you. If your youngsters are old, find them their very own tent so they don’t need to bunk using the men and women. Try out to arrive at the campsite effectively just before nightfall. This allows you to get yourself a sense of the lay of the land and provides you the opportunity create camp out as you may still see what you really are undertaking. Furthermore, it allows your young ones really feel a little bit more comfortable with their surroundings since they will have time to investigate. Permit everyone in the camping outdoors bash a say inside the place. Explore which condition you intend to pay a visit to. There are lots of web sites in the country to visit which are close by and so are very helpful. To make your mind up simpler, choose a handful of favorites and then vote on the last decision. When preparing for your camping out journey, be sure to load up only what you require for mealtimes. In case you are in the campground, your meals must keep chilly therefore it fails to spoil. When you are about the path, any additional or extra food items might be a problem. Should you load just enough food items for that time you might be about the trail, you will not be weighed lower by extra weight. 1 useful device to take with you once you head out on your own following outdoor camping trip is a roll of duct adhesive tape. This object has numerous utilizes and could help you save lots of time and funds. Duct adhesive tape can be used to maintenance something. Additionally, it may repair a tarp, sleeping travelling bag, and even the tent. You can even set some below your feet before long increases so that you don’t get lesions. It even operates being a bandage. Now you know ample about outdoor camping, you have to have no trouble taking place the first camping out getaway. You are able to finally end questioning about camping and actually go exterior and experience it. Use the outdoor camping information and facts you’ve study to guide you every step of the way and you need to be good.

  6. Traveling is a thing many of us anticipate. It really is a burglary the monotony of each day time daily life. This is a opportunity to relax and reside stress free for any couple of weeks, from operate and all sorts of commitments. Here is some tips for the following time you go on a break. An effective hint for travelers is to make sure to possess sufficient health care insurance in position to pay health care bills in the case of injuries or illness although overseas. It is usually the truth that residential health insurance insurance policies tend not to supply considerable protection for treatment and hospitalization in foreign countries. For that reason, it is essential to obtain this sort of protection for the duration of your journey. Requesting a much better accommodation if you are looking at in will probably enable you to get one particular! In the event you would choose a much better view, a less noisy place or possibly a single closer to the an ice pack-machine, odds are excellent that a person is accessible. It will require but a minute to question and will absolutely enhance your stay. Make plans to your pets whilst you may be aside. Have got a neighbor or friend appear onto supply, walk and view in to them, at least one time daily. They may truly feel less risky knowing that they may have fresh water and food and are a lot less stir ridiculous than should they had been still left alone for a long period of time. Whenever you vacation for organization or pleasure, investigation your location before leaving. Turning up inside a unfamiliar area without any idea what to do or what things to see might be mind-boggling and will take from the practical experience. Read through a guide in your location and speak with individuals you understand are already there. You can easily find out some insiders suggestions. Should you be vacationing with any type of prescription medication, such as delivery handle pills, you must keep them in their unique containers with labeling. It may also be beneficial to obtain a note from the physician declaring which you have a health-related requirement for the products. This way, you cannot be accused of medication smuggling. Vacationing doesn’t really need to be expensive if you create a finances before you leave. Whether or not you wish to do a cross-nation highway journey or go to the Western country, touring might be fun and academic. Remember the recommendations on this page to be secure and make the most of your cash when you journey.

  7. I wish to express thanks to the writer just for rescuing me from this dilemma. As a result of exploring throughout the world wide web and obtaining basics which were not pleasant, I thought my entire life was well over. Living devoid of the answers to the difficulties you have sorted out by way of your main guide is a crucial case, as well as ones which might have adversely damaged my entire career if I hadn’t come across your website. Your main understanding and kindness in playing with all things was very useful. I don’t know what I would’ve done if I hadn’t come upon such a subject like this. I can also at this moment look ahead to my future. Thank you so much for the high quality and results-oriented guide. I won’t hesitate to refer the website to any person who would like guidance on this issue.

  8. Hi, I do believe this is an excellent website. I stumbledupon it 😉 I am going to return yet again since i have book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.

  9. I wish to express my affection for your kindness supporting people who really want help on this important situation. Your real commitment to passing the solution up and down ended up being amazingly informative and has surely enabled people like me to reach their objectives. Your entire warm and friendly useful information entails much a person like me and a whole lot more to my fellow workers. Thanks a lot; from all of us.

  10. Do you have a spam problem on this website; I also am a blogger, and I was wondering your situation; many of us have developed some nice practices and we are looking to trade solutions with other folks, please shoot me an email if interested.

  11. Thanks for the sensible critique. Me & my neighbor were just preparing to do a little research about this. We got a grab a book from our area library but I think I learned more from this post. I’m very glad to see such excellent info being shared freely out there.

  12. I wanted to draft you that bit of note to help say thanks a lot as before regarding the amazing ideas you have shared in this case. It is incredibly open-handed with you to give easily precisely what some people would’ve offered as an electronic book in making some profit for their own end, precisely given that you could have tried it if you ever wanted. Those inspiring ideas additionally worked like the easy way to understand that someone else have the same dream the same as mine to understand lots more concerning this issue. I am certain there are several more pleasant sessions ahead for individuals that read your blog post.

  13. Today, I went to the beach front with my kids. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is completely off topic but I had to tell someone!|

  14. I intended to put you a tiny observation to help thank you again for the breathtaking advice you have featured above. It has been so extremely open-handed of people like you to supply extensively all a lot of people would have supplied for an e-book in making some cash on their own, specifically seeing that you could have done it if you ever wanted. The points in addition served like the easy way to be aware that other individuals have the identical dream like mine to know a good deal more in regard to this problem. I think there are millions of more pleasant instances up front for individuals who look into your blog post.

  15. I have recently started a blog, the info you provide on this site has helped me tremendously. Thanks for all of your time & work. “Character is much easier kept than recovered.” by Thomas Paine.

  16. Whats Going down i am new to this, I stumbled upon this I’ve discovered It absolutely useful and it has helped me out loads. I’m hoping to give a contribution & help different users like its helped me. Good job.

  17. I just want to tell you that I am just new to blogs and actually loved you’re web page. Likely I’m planning to bookmark your website . You surely have impressive articles. Appreciate it for sharing with us your web site.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *