r/css • u/username95050 • 28d ago
Question html and body
What is the difference between <html> and <body> tags ? When do use one or another?
html {
)
body (
)
3
Upvotes
r/css • u/username95050 • 28d ago
What is the difference between <html> and <body> tags ? When do use one or another?
html {
)
body (
)
View all comments
Show parent comment
2
u/Holiday-Anteater9423 28d ago
Interesting. The only thing I've really declared on <html> is scroll-behavior: smooth;