xhtml

Are there any style guides for HTML?

I have found that my HTML is, to be honest, very clunky. Small, simple pages are OK. But there comes a point when between indenting and the kinds of tags I have, it's impossible to keep lines short. Is there a W3C (or otherwise "official" or well accepted) formatting guide for clean, maintainable HTML? If not, what suggestions can the co...

Order of tags in <head></head>

does it matter at all what order the <link> or <script> or <meta> tags are in in the <head></head>? (daft question but one of those things i've never given any thought to until now.) ...

Got to switch HTML guys mid-stream

So, this is my first PM experience and shame on me if I'm not learning something new every day. The guy I hired to do my XHTML/CSS accepted a full time position somewhere else. Which SUCKS. I can either stay with him (he said he could get a friend to help during this transition) but he HASN'T been dependable. However, if I switch horses...

Can an html element have multiple ids?

I understand that an id must be unique within an HTML/XHTML page. My question is, for a given element, can I assign multiple ids to it? <div id="nested_element_123 task_123"></div> I realize I have an easy solution with simply using a class. I'm just curious about using ids in this manner. ...

In the hCalendar microformat, what markup is allowed in a description?

I am working on a calendar application that outputs a list of events in hCalendar format. This includes an element that has a class of "description" which should be used for the event's description. My question is, what markup is allowed in my hCalendar event's description? I found one example on the hCalendar website that showed a desc...

What are the main differences between XHTML and HTML?

whats the main differences between xhtml and html? which one is better in your opinion and why? is browsers compatible with both of them? ...

Validating Web Pages

I have been developing websites for a couple years now and I almost never check if my pages are valid html and css. My check is by using a site such as browsershots.org and checking how it looks in all the different browsers. However recently I have been taking a college course and the prof wants us to validate every thing we turn in. It...

XHTML and code inside textareas

On a site of mine in which a textarea is used for submission, I have code that can appear something along the lines of the following: <textarea><p>text</p></textarea> When validating (XHTML 1.0 Transitional), this error arises, line 88 column 50 - Error: document type does not allow element "p" here If this is not a valid method, t...

Can we configure Oracle ADF Faces to produce valid XHTML?

We are using Oracle ADF Faces in a new web project. I am always looking for an unobtrusive user experience with progressive enhancement and valid XHTML output. It seems however that ADF Faces produce ugly, non-validating (table based) html output that reminds me of 1994 when using their standard components. Is there a way to configure A...

When to use custom html tags?

What is the use case for using your own html tags? (In standard off the shelf browsers) A colleague and myself were discussing it lately. I could not think of a use case. We discussed it could be used for styling with css but then decided to use the span tag with a class instead. Thanks Paul ...

XHTML: <a> tag to multiple destinations in multiple target frames?

I'm working on a table of links within a site using iframes. I'm wondering if there's any way to code a link to go to two simultaneous destinations within two different target frames? I've been reading all afternoon and can't find anything close to what I want to do. Basically I want one link to present a photo in one iframe and some dat...

Embedding extra styles with noscript

I have an XHTML strict page that has an invisible div that is controlled by Javascript. The div is set to transparent and visible by the script and a mouseover event to make the div opaque on hover. When someone using a browser (or firefox with noscript) without javascript the div simply remains invisible. The problem with this is that ...

JTidy Node.findBody() — How to use?

Hello, I'm trying to do XHTML DOM parsing with JTidy, and it seems to be rather counterintuitive task. In particular, there's a method to parse HTML: Node Tidy.parse(Reader, Writer) And to get the <body /> of that Node, I assume, I should use Node Node.findBody(TagTable) Where should I get an instance of that TagTable? (Constructor...

Tab Character Entity for XHTML?

Does anyone know what the character entity for a tab is in xhtml? (Um if there is one)... ...

How do you make <div>s display inline?

Given this HTML: <div>foo</div><div>bar</div><div>baz</div> How do you make them display inline like this: foo bar baz not like this: foo bar baz ...

Tooltip for a line of text

<td title="this is a really long line that I'm going to truncate">this is a really long line that I'm going to trunc ...</td> Is this the correct way to do it? ...

[CSS Positioning] How can I position a SPAN to be aligned to either side and above a TABLE?

<div> <span>left</span> <span>right</span> <!-- new line break, so no more content on that line --> <table> ... </table> </div> How can I position those spans (they can be changed to any element) so that depending on how big the table is (not defined anywhere, and shouldn't be) the spans are positioned just on top of the left side of ...

CSS "valign" Positioning

<div> <h1>Title</h1> <table> ... </table> </div> Now, the <h1> has a margin: 0; so it is at the top of the div. However I'd like the table to be placed at the bottom of the div, eg. valign="bottom" but for the whole table. ...

Centre Text Relative to Available Space in CSS

<div style="width: 300px"> <div id="one" style="float: left">saved</div><input type="submit" id="two" style="float: right" value="Submit" /> </div> I would like div#one to be centred in the space between the left edge of the parent div and the left edge of the submit button. ...

CSS Buttons (w/ Background but need bevel)

<input type="submit" background: url(tick.png) bottom left no-repeat; padding-left: 18px; But the bevel goes away, how can I add an icon to submit button and keep the bevel? Edit: I want it to look like the browser default. ...