HTML/CSS Mastering Cross-Browser HTML: Tips and Tutorials for Compatibility

  • Thread starter Thread starter Poop-Loops
  • Start date Start date
  • Tags Tags
    Html
AI Thread Summary
Creating a web page that displays consistently across different browsers can be challenging, especially for those new to HTML. While HTML is primarily for content markup, achieving a desired layout requires the use of CSS (Cascading Style Sheets). Browser compatibility issues often arise from variations in how browsers render HTML and CSS, influenced by factors like text size settings and browser window dimensions. It's recommended to design in standards-compliant browsers first and then adjust for older versions, as older browsers like IE 5 or 6 can complicate the process. For effective learning and troubleshooting, resources like W3Schools and other recommended sites provide valuable guidance on XHTML and CSS best practices.
Poop-Loops
Messages
731
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:
Technology 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
 
It's usually easiest to design in a standards-compliant browser first, then make changes to support the old browsers after you finish. Don't ever design code for IE 5 or IE 6, for example.
 
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:
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
What percentage of programmers have learned to touch type? Have you? Do you think it's important, not just for programming, but for more-than-casual computer users generally? ChatGPT didn't have much on it ("Research indicates that less than 20% of people can touch type fluently, with many relying on the hunt-and-peck method for typing ."). 'Hunt-and-peck method' made me smile. It added, "For programmers, touch typing is a valuable skill that can enhance speed, accuracy, and focus. While...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
9
Views
2K
Replies
2
Views
1K
Replies
7
Views
2K
Replies
5
Views
2K
Replies
5
Views
2K
Replies
1
Views
2K
Replies
3
Views
2K
Replies
1
Views
1K
Replies
8
Views
2K
Replies
3
Views
4K
Back
Top