xhtml

Why HTML 5 still have support for Presentational elements?

See list here: http://www.w3schools.com/html5/html5_reference.asp like <b> , <i>, <br>, <hr>, <small>? Is it means no cons to use these? But what about content and presentation seperation? ...

What are practical cons to use W3C valid presentational element, which are not listed as deprecated?

What are practical cons to use W3C valid presentational element, which are not listed as deprecated for XHTML-CSS developers, Sighted End users of site, and for Screen reader users, ? like <b> , <i>, <br>, <hr>, <small> If i use these tags for presentational purpose. (note: these are also supported in HTML 5) for example: If i use...

Circular reference in HTC element behaviors

Hello there, We develop our pages based on HTC element behaviors (let's call them 'htc' for short). One of the components is a dataGrid.htc which has many dataGridItem.htc inside of it. These items are created on demand. So, in dataGrid.htc I import the item: <html xmlns:dataGrid> <head> <?import namespace="dataGrid" implementation="d...

Why @import is not advisable to link css?

Why @import is not advisable to link css? What @import can't do which can be done by <link> and does @import have any incompatibility with browsers? What in <Link> make it's advisable? And is there any specialty in @import which is useful? Should we always ,always use <link>? ...

Is it necessary to wrap <strong>, <em>, <b>, <i> inside <p> tag, if content is not paragraph?

For example: This is ok <div> <p>some <strong>long</strong> text</p> <strong>- end -</strong> <p>some long text</p> </div> Or this is more semantically correct? <div> <p>some <strong>long</strong> text</p> <p><strong>- end -</strong></p> <p>some long text</p> </div> ...

Will deprecated elements be removed from future browsers?

What are cons to using deprecated elements if I don't care about validation and I use that DTD which supports them? Will deprecated elements will not be rendered by future browsers? Some online WYSIWYG editors (which we use in CMS) still give output in deprecated elements. Must I invest the time to change the output for a client? Sh...

CSS selector not working

I have some CSS like this: #navBar ul { list-style-type:none; margin:0; padding:0; } #navBar ul li { border: thin dashed #ffff00; display:inline; margin:0; padding:0; } #navbar ul li a { border: 1px solid #707070; text-decoration: none; padding: 0; margin: 0; background-color: #909090; }...

Is separation of Content, presentation and behavior possible every time ?

Is separation of Content, presentation and behavior possible every time ? Many time through javascript we add classes to html and we use in CSS visibility:hidden inline. Should we always invest time ti keep all separate? ...

Using table inside a table a good practice in XHTML?

I was wondering if using table inside a td (another table inside a table) a good practice or is it a strict no-no, talking in terms of xHTML. <table> <tr> <td>ABC</td> <td>1438</td> <td>graph</td> <td>holiday</td> <td> <!--Sub Table --> <table> <tr> <td>Subtable col1...

Does inline css and javascript really affects to site SEO?

Does inline css and javascript really affects to site SEO? ...

Contact Page not showing correctly in Google Chrome Broswer

I have a one-page portfolio style website that scrolls with JQuery, and I cannot get the "Contact" page to show up fully in the Google Chrome Browser. It works fine in IE, Safari, and Firefox, but not in Chrome. I have attached the code for the "Contact" page to see if someone can see what is wrong. To view the site and see the problem, ...

making site rendering compatible with all browser only depend on CSS or X/HTML has any role?

If CSS is only factor then What thing in css should be in our habit to make site compatible in All A grader browser. Firefox, Safari, IE 6, IE 7, IE 8 Can we avoid the need of Conditional CSS for IE? ...

How to open tab on mouse over using jquery without using iframe and putting all content in same page?

I just want to open another tab without refreshing and on mouse over like this http://fnagel.github.com/jQuery-Accessible-RIA/Tabs/mouseover.html . Is it possible with these things. Pages url should be change like as it now. I want to keep content in separate page on clicking on another tab it should open without refreshing i don't wan...

Is it ok to use <strong> in place of <b> blindly ?

Note: I know <b> is presentational and <span style="font-weight:bold> is a better way, and <strong> and <em> are for emphasis but my question is not regarding this. Should we convert every <b> to <strong> blindly? Many people do this, they think <b> is not good as per web standards so they convert every <b> to <strong> upon site redes...

Does Firefox support Javascript in XHTML pages?

I need to serve XHTML pages that include Javascript. My problem is that Firefox (3.5.7) seems to ignore the Javascript. For example: <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>My Title</title> </head> <body> <script type="text/javascript"> document.write("Hello world!"); </...

Nokogiri replace tag values

How to replace "foo" to "bar" ? From <h1>foo1<p>foo2<a href="foo3.com">foo4</a>foo5</p>foo6</h1> to <h1>bar1<p>bar2<a href="foo3.com">bar4</a>bar5</p>bar6</h1> I want only replace tag inner content, without tag attributes. Any ideas ? ...

Right-Align and Vertical Align label with checkbox/radio button CSS

Hi Everyone, I'm very close and have this working in Safari, Firefox and IE8, however IE7 the labels and radio buttons do not align vertically. My HTML is: <div id="master-container"> <fieldset id="test"> <legend>This is a test of my CSS</legend> <ul class="inputlist"> <li> <label for="te...

markdown/(X)HTML to BBCode converter python module

Is there any (X)HTML to BBCode coverter python module out there? I'd like to migrate my website forum from markdown to BBCode but I didn't found out any simple way. One option is to convert the markdown text to (X)HTML using the built in django markup module and then convert it again to BBCode. Well, I realized that find a (X)HTML to BB...

Why target="_blank" is not advisable to use with XHTML?

and It's validated in XHTML 1.1 and WCAG 2.0 Guidelines doesn't have any info about it's use? I know it's not valid in XHTML 1.0 strict but if many people using other ways like JavaScript, jquery, rel attribute, PHP etc. Does it make sense? it means people don't want to follow validation rules. they just want to pass the validation. ...

How to submit info from 2 submit button but from one button through jquery?

I have 2 SUBMIT button in a form one is display:hidden and one is display:block if user click on SUBMIT button (display:block) then another SUBMIT button {display:hidden} should also submitted. Is it possible with jquery? ...