Why doesn’t form nested in p validate as XHTML

Look at the error messages that you get when you try that with http://validator.w3.org Apart from a warning that you haven’t specified a character encoding (and that it’s therefore assuming UTF-8), the main error is that a <p> isn’t allowed to contain non-inline content. You can either remove the <p> and </p> completely, or, move … Read more

HTML 4, HTML 5, XHTML, MIME types – the definitive resource

Contents. Terminology Languages and Serializations Specifications Browser Parsers and Content (MIME) Types Browser Support Validators and Document Type Definitions Quirks, Limited Quirks, and Standards modes. Terminology One of the difficulties of describing this is clearly that the terminology within the official specifications has changed over the years, since HTML was first introduced. What follows below … Read more

HTML5 syntax – HTML vs XHTML

The advantage of XHTML syntax is that it is XML. It can be easily parsed, understood and manipulated. The HTML syntax is a lot harder for clients to work with. Nonsense! The HTML5 spec defines how to parse HTML in a way that is relatively easy to implement, and off-the-shelf parsers are being developed that … Read more

HTML 5 versus XHTML 1.0 Transitional?

HTML5 is so much easier to write than XHTML 1.0. You don’t have to manually declare the “http://www.w3.org/1999/xhtml” namespace. You don’t have to add type attributes to script and style elements (they default to text/javascript and text/css). You don’t have to use a long doctype where the browser just ignores most of it. You must … Read more

Can the tag not be self closed?

In HTML, there are tags which are always self-closed. For example, <hr>Some content here</hr> does not make any sense. In the same way, there are tags which cannot be self-closed. <script> tag is one of them. I am not sure about the reason of no self-closed <script> tags, but the reason might come from the … Read more

What XPath selects the next after a containing X?

ChaosPandion’s and Martin v. Löwis’s answers both work for the sample you give, but if you are asking for the next tr, then presumably in some cases there are further tr elements in same table. In which case, the answers will give all the following or following-sibling tr elements. Also going by the headline question … Read more

Embed a PowerPoint presentation into HTML

Google Docs can serve up PowerPoint (and PDF) documents in it’s document viewer. You don’t have to sign up for Google Docs, just upload it to your website, and call it from your page: <iframe src=”https://docs.google.com/gview?url=https://www.yourwebsite.com/powerpoint.ppt&embedded=true” style=”width:600px; height:500px;” frameborder=”0″></iframe>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)