semantic-markup

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> ...

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...

Why <big> is not in HTML 5 Tag list while <small> is?

Shouldn't both be removed? or is it means we should use <small>? Why <big> is removed but <small> is not? What is the problem with <big> which is not a problem of <small>? http://www.w3schools.com/html5/html5_reference.asp ...

HTML Tags: Presentational vs Structural

In this list (these are HTML 5 supported) tell me which tag is presentational and which is not. I found many different views on many articles , if some think any tag is presentational but some don't think.For example: in HTML 5 specification they don't think is presentational. <abbr> <address> <area> <b> <bdo> <blockquote> <br> ...

What is the actual meaning of seperation of content and presentation?

What is the actual meaning of separation of content and presentation? Is it just mean to avoid inline css? Does it mean that the design should be able to manipulated without chaning the HTML? Can we really make any change in design from CSS only? If we want to change the size of images then we will have to go to in HTML code If we w...

Wrong example of nested <ul> <li> on very well known web design tutorial site

http://www.webdesignfromscratch.com/html-css/html-lists.php on this page's example of nested Unordered lists <ul> list's code is not validating on W3C validation this is a code of this page http://www.webdesignfromscratch.com/html-css/html-lists.php <ul> <li>Item one</li> <li>Item two</li> <li>Watch, you can easily nest list item...

How to give option to add css classes/IDs to content to in CMS's WYSIWYG content builder/editor to non-technical client?

How to give option to add css classes/IDs to content to in CMS's content WYSIWYG builder/editor to non- technical client who doesn't know html, css but knows MS Word. some time to make content according to design XHTML tags not enough. use of css classes needed. Should we give only css .classes to user or #Id can be given also? and ...

is it necessary to have <th> in any table?

is it necessary to have <th> in any table? even if table has no heading? table has 3 other tag <thead> <tbody> <tfoot> is it necessary to use all even if i have nothing for table footer. Firefox by default add all these in code. and is it necessary , <th> always should be in a <thead> and if i have a heading in content received from c...

is it ok to use and repeate same text in alt=“…” and Title“…” for <img> which is not a link, screen reader users?

<img src=”young-girl-in-red-gown.jpg” alt=”young girl in red gown” title=”Young girl in red gown”/> Is my above example a good example? Should it be always like this? In above example i used image file name, alt text and title almost same. although it's just a image not image inside <a> Is it ok to use same text as Al...

What is the most semantic way to display a street address in HTML?

I have an address that is going to be displayed on a webpage, but it is not the address for the author of the page. How should this be coded to be semantic given the w3c recommendation of: The ADDRESS element may be used by authors to supply contact information for a document or a major part of a document such as a form. This element...

What is this attribute "headerindex="5h"?

I saw this on a CMS(sitecore) based Asp.net 2.0 Webform based site. <a class="boardTextLink " id="boardTextLink6" headerindex="5h"> is it semantically correct and w3c valid? Can we make and use custom attributes like this? Is it good practice? ...

What would be the correct markup in this situation (page title and "rootline")?

So, in my current project, when you navigate to the "team" page, which has the path /home/about/company/team/ the header of the page looks like this: /home/about/company/ <--- this is what i call the "rootline" TEAM <-- this is the title of the current page ... content goes here ... My current markup looks like ...

In XHTML/HTML which elements has semantic value , which are presentitional and which are not in both category?

In XHTML/HTML which elements has semantic value , which are presentational and which are not in both category? And who decide which tag is semantic, presentational? W3C or web developer with their own terms? What is the difference between structural and semantic mark-up? Is DIV and span not semantic , if yes then why we use ? ...

Which method is prefered to just show 2 links vertically?

Which method is preferred to just show 2 links vertically, one over another? in content page (not as a navigation). This (although i don't need bullets) <p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown ...

Should we always consider how page will look without CSS?

If yes then presentational elements would be helpful in this condition so should we use those? <b>…</b> , <i>…</i>, <big>…</big>, <small>…</small>, <tt>…</tt>, <hr /> These are valid tags ...

When we should use <dl> over <ul>?

In what scenarios we should go for <dl> not <ul>? Does it matter for screen reader user <ul> or <dl>? does screen reader software notify user about content is in <ul> or <dl>? ...

Is it ok to use cellpadding="2" cellspacing="2" in <table>?

Is it ok to use cellpadding="2" cellspacing="2" in ? of these are not recommnded by W3C and not right according to web standards? What are alternative in CSS? Update and is it also ok to use <td align="right" valign="top">? My question is in terms of separation of content and presentation and w3c recommendations. Update: Accordin...

Please explain rowspan and colspan, col and colgroup

Can anyone explain rowspan and colspan, col and colgroup? And are these W3C valid and semantically correct? Under which circumstances are these useful? ...

What is the benefit to add W3C logo in site?

http://www.w3.org/QA/Tools/Icons If my code is valid then Should i add logo to all my personal and client sites.? Should i add logo to client sites and tell to client these are good to have? If code is valid but semantically correct even can we use logo? What is benefit and purpose to add these logos for XHTML, CSS accessibility. And w...

Mapping words to numbers with respect to definition

As part of a larger project, I need to read in text and represent each word as a number. For example, if the program reads in "Every good boy deserves fruit", then I would get a table that converts 'every' to '1742', 'good' to '977513', etc. Now, obviously I can just use a hashing algorithm to get these numbers. However, it would be mo...