Mastering Cross-Browser HTML: Tips and Tutorials for Compatibility

  • Context: HTML/CSS 
  • Thread starter Thread starter Poop-Loops
  • Start date Start date
  • Tags Tags
    Html
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
Poop-Loops
Messages
732
Reaction score
1
I'm making a web page for my professor's project (or remaking, that is) and I when I started I didn't know any HTML. He doesn't either, so it doesn't really matter. I almost had a good page down for the home page, and then I checked it in a different browser, and it was all messed up. I've been trying to figure out ways to make code compatible with all browsers, but I can't wrap my head around what's going on with the more complicated code.

Is there any quick way I can make sure my stuff works on all browsers? Or some good tutorials on that? I've tried www.html.net[/url] and [url]www.w3schools.com[/URL] and it didn't help much.

Thanks.
 
Last edited by a moderator:
Physics news on Phys.org
The code is almost certainly compatible across browsers.
The way the page LOOKS might not be. It might not even look the same on the sam e browser on the same computer if you select large screen fonts or expand the browser window.

If you need the page to look a certain way then using just html and hoping the screen is the same isn't enough, you need to look at CSS ( cascading style sheets) . Html was designed to markup content not layout.

Again w3schools are the best on line tutorials.
 
ive had countless cases where pages have rendered incorrectly in firefox an have been fine in IE.

Its most frustrating, something as simple as the persons text size can make a HUGE difference. Its odd
 
The thing about modern CSS/div based design is the div's are typically very independent of each other (if done correctly), so it's usually not that much of a stretch to add adaptations for older/non-standards-compliant browsers. Often, HTML help sites and the like tend to stress older HTML 4.01 standards, which means nasty ugly tables. W3Schools is a good reference however. I suggest you check out the following sites for good ideas on proper XHTML+CSS form:

http://www.alistapart.com/
http://www.glish.com/css/
http://www.stylegala.com/
 
Last edited by a moderator: