1. Which tag contains the visual part of the web page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

1. Which tag contains the visual part of the web page?

25th May 2018, 1:04 PM
Amarjeet Kumar
Amarjeet Kumar - avatar
6 Answers
+ 6
<body> is probably what you're thinking of. As the tag name implies, it's the body of the document. Honestly though, your question isn't exactly clear. Technically, your CSS file is also part of the visual part of the web page. What exactly are you trying to do? I feel like there is another question you're really trying to ask.
25th May 2018, 1:11 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 6
<head> contains meta informations and scripts. <body> contains visual part of a website such as p, img, a, video
25th May 2018, 1:13 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 3
Fata1 Err0r You're not wrong. I've misunderstood what you said. Sorry for that.
25th May 2018, 5:51 PM
Vikash Pal
Vikash Pal - avatar
+ 2
Thanks
25th May 2018, 1:13 PM
Amarjeet Kumar
Amarjeet Kumar - avatar
+ 2
Fata1 Err0r Body tag contains visual part of the webpage. CSS only defines how it should look.
25th May 2018, 5:05 PM
Vikash Pal
Vikash Pal - avatar
+ 1
@Vikash Pal How something looks is part of its "visual part," which is why I said 'technically' when speaking about CSS. I'm aware of the two though, that's why I touched on both since the question wasn't exactly clear. For all I know, he could have been talking about images and wanted to know about the <img> tag, but called it visual part. A better way of asking the question would be to ask what tag contains a web page's visual elements or something of that nature. Regardless, I think all of us here got him pointed in the right direction, which is what matters most. Thanks for providing that extra bit of clarity though. Maybe I presented my own information poorly as well, so thank you.
25th May 2018, 5:46 PM
Fata1 Err0r
Fata1 Err0r - avatar