Home >Web Front-end >HTML Tutorial >I have seen that the things written in the head will be transferred to the body in this forum, no more than 3_html/css_WEB-ITnose

I have seen that the things written in the head will be transferred to the body in this forum, no more than 3_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:361150browse

This post was last edited by shanglei005166 on 2012-10-16 13:43:38

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>aaaa</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">body{ padding: 0; margin: 0;}</style></head><body>  bbbbbbbbbbbbbb</body></html>


Then review the element in the chrome browser as shown below:

The result is that the words are not in the top grid because there is a br tag. And why does the content in the head tag run into the body?

Reply to discussion (solution)

100db36a723c770d327fc0aef2ce13b1
93f0f5c25f18dab9d176bd4f6de5d30e
b2386ffb911b14667cb8f0f91ea547a7aaaa6e916e0f7d1e588d4f442bf645aedb2f
97f2b6ae5f4f65bc7d15c6c9b9e8be8c
080b747a20f9163200dd0a7d304ba388
body{ padding: 0; margin : 0;}
531ac245ce3e4fe3d50054a55f265927
9c3bca370b5104690d9ef395f2c5f8d1
6c04bd5ca3fcae76e30b72ad730ca86d
bbbbbbbbbbbbbb
36cc49f0c466276486e50c850b7e4956
73a6ac4ed44ffec12cee46588e518a5e


It’s not for this reason. I’ve tried this before. It’s for some other reasons. I can’t explain it in just a few words. But I still want to thank you for your answer. Points will be awarded for your post.

The original poster What’s the reason? I’ve encountered it too

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn