Valid to use (anchor tag) without href attribute?

I’ve been using Twitter Bootstrap to build a site, and a lot of its functionality depends on wrapping things in <a>, even if they’re just going to execute Javascript. I’ve had problems with the href=”#” tactic that Bootstrap’s documentation recommends, so I was trying to find a different solution. But then I tried just removing … Read more

CSS/HTML: What is the correct way to make text italic?

What is the correct way to make text italic? I have seen the following four approaches: <i>Italic Text</i> <em>Italic Text</em> <span class=”italic”>Italic Text</span> <span class=”footnote”>Italic Text</span> <i> This is the “old way”. <i> has no semantic meaning and only conveys the presentational effect of making the text italic. As far as I can see, this … Read more

input type=”submit” Vs button tag are they interchangeable? [duplicate]

This question already has answers here: Difference between <input type=’button’ /> and <input type=’submit’ /> (8 answers) Closed 11 months ago. input type=”submit” and button tag are they interchangeable? or if there is any difference then When to use input type=”submit” and when button ? And if there is no difference then why we have … Read more

Should I use tag for icons instead of ? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago. Improve this question Facebook’s HTML and Twitter Bootstrap HTML (before v3) both use the <i> tag to display icons. … Read more