What would be the best method to code heading/title for ul or ol, Like we have caption in table?

Though this is old, I’m updating it for others who might find this question when searching later. @Matt Kelliher: Using the css :before and a data-* attribute for the list is a great idea, but can be modified slightly to be more handicap accessible as well: HTML: CSS: This will make a list with the “header” pseudo element … Read more

How to parse XML in Bash?

This is really just an explaination of Yuzem’s answer, but I didn’t feel like this much editing should be done to someone else, and comments don’t allow formatting, so… Let’s call that “read_dom” instead of “rdom”, space it out a bit and use longer variables: Okay so it defines a function called read_dom. The first line makes … Read more

How to make PDF file downloadable in HTML link?

This is a common issue but few people know there’s a simple HTML 5 solution: Where newfilename is the suggested filename for the user to save the file. Or it will default to the filename on the serverside if you leave it empty, like this: Compatibility: I tested this on Firefox 21 and Iron, both worked fine. … Read more

Can an HTML element have multiple ids?

No. From the XHTML 1.0 Spec In XML, fragment identifiers are of type ID, and there can only be a single attribute of type ID per element. Therefore, in XHTML 1.0 the id attribute is defined to be of type ID. In order to ensure that XHTML 1.0 documents are well-structured XML documents, XHTML 1.0 documents … Read more

RegEx match open tags except XHTML self-contained tags

You can’t parse [X]HTML with regex. Because HTML can’t be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that … Read more

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