0
HTML style
What is the difference If I give the html tag itself style e.g: <style> html { font-size:16px; } </style> or give the same style to the body tag. > Is it correct to give the html tag ( <html> ) style ? and how the style will be applaied.??
6 Respostas
+ 11
The <html> tag tells the browser that this is an HTML document.
The <html> tag represents the root of an HTML document.
The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> tag).
In the video he put it <html lang=“en”> that means that the whole html document is im english.
Is that what you want?
https://developer.paciellogroup.com/blog/2016/06/using-the-html-lang-attribute/
+ 8
<html> tag is the root of the whole html document.
You cannot change the style. The tag do not display in the output.
+ 5
html element selector vs :root pseudo-class:
https://stackoverflow.com/questions/15899615/whats-the-difference-between-css3s-root-pseudo-class-and-html
For illustrative purposes:
https://css-tricks.com/almanac/selectors/r/root/
0
html cannot be styled
but there does exist a container for body, it is a pseudo element referenced by :root
see this Q&A for details:
https://www.sololearn.com/discuss/1672632/?ref=app
0
https://youtu.be/T7PnWnTgusc in this tutorial he add style to html tag, I'm confused : / ⚜️JTLZ⚜️[#Never Give Up!] Gordon
0
I know that, but see the video in 28:20m please. you will understand what I mean ⚜️JTLZ⚜️[#Never Give Up!] Exam Going On :(