Questions tagged as 'xhtml'

1
answer

Is it a good practice not to close the .php file with? after an XHR call made from an .html file?

Should I close the PHP <?php tag with ?> ? A friend with more experience advised me not to close saying it was a "good programming practice", I never understood why, but I follow the recommendation ever. Is this really a g...
asked by 09.09.2014 / 04:27
3
answers

What is XHTML and when should it be used?

What I know is that XHTML needs to be valid XML. This implies, for example, that all tags need to be closed. For example: Errado: <br> Certo: <br/> But what is the use of this? What is it for? When should it be used?     
asked by 11.07.2014 / 13:30
2
answers

What is the difference between using [CDATA []] inside a tag script?

What is the difference between using or not using the script contents with this CDATA? <script type="text/javascript"> //<![CDATA ... //]] </script>     
asked by 11.12.2015 / 17:34
2
answers

What major precautions should I keep in mind for my application to work correctly on different browsers?

I run small systems using xhtml, ajax, and php. When I code I'm testing the parts in the Chrome developer tool (Ctr + I) and phptester.net. When I finish my application, I have to debug everything again so that I can properly run Firefox and...
asked by 09.09.2014 / 23:37
3
answers

Is there an XHTML5 (XHTML + HTML5)?

XHTML is HTML with strict syntax (must be a valid XML). Can I use it in conjunction with HTML5?     
asked by 01.04.2015 / 19:44
2
answers

Which standard to use: HTML5 or XHTML5?

Why should not we mix both and which of the patterns is most useful these days?     
asked by 25.03.2016 / 13:53
1
answer

Sort dataTable by attribute

On the JSF page, it picks up the managed bean from the list of any objects. public class Ob implements Serializable { private Integer id; private Date data; private String descrição; } I wanted to mount the table more or less li...
asked by 13.07.2015 / 01:38
1
answer

Loading multiple images through Javascript

I'm trying to upload an image through Javascript but it did not work. In the HTML it looks like this: <img src="img/bola.jpg/> , but in Javascript I do not know. The code below is to show loading of several images, but I do not kn...
asked by 06.04.2016 / 03:27
2
answers

How to create a box with two separate texts

Hello, I am a beginner of XHTML and I ask you to tell me about this code and not html5. I want to do a header but I can not. The goal is for the first text to be higher than the first. See the example image sf. I am in doubt as much in...
asked by 12.06.2014 / 20:56
2
answers

Is it possible to build a pure HTML registration?

I need to create a registry with name and description in HTML, or PHP, that does not make use of a database but I do not know if it is possible. Something that I could save the records to file and also upload them back to the form. The pag...
asked by 02.11.2014 / 16:31