HTML标签的来源是什么? [英] What is the source of tags of HTML

查看:105
本文介绍了HTML标签的来源是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是HTML和所有编码的新手,所以我的老师问我一个问题,他把这个< p>,< / p>制作一个段落并问我该标签如何知道该怎么做以及他来自哪里来源当时我给了他愚蠢的答案,比如文件保存在反手上但是之后他给了我这个任务所以我需要知道所有关于它的任务和抱歉的坏英语

谢谢



我尝试过:



我试着谷歌但我不知道该怎么写谷歌

I am new in HTML and all the coding thing so my teacher ask me a question he put this < p >,</ p > to make a paragraph and ask me that how that tag knows what to do and where he comes from whats its source at that time i gave him stupid answers like files saves on backhand but after that he gave me assignment on this so i need to know all about it to make a assignment and sorry for the bad English
THANKS

What I have tried:

I try to google it but i dont know what to write on google

推荐答案

标签确保创建一个新段落,因为HTML规范(由W3C构建)如此说明: HTML5( w3.org) [ ^ ]。具体部分: 4.4.1 p元素 - HTML5 [ ^ ]。br />


标签实际上并不知道该做什么,因为HTML只是一种标记语言,并且不会知道任何东西。但是,您的网络浏览器确实知道< p> 的含义,因为浏览器会遵循我链接的HTML规范。因此,您的浏览器将其呈现为新段落。
The tag makes sure a new paragraph is created, because the HTML specification (constructed by the W3C) says so: HTML5 (w3.org)[^]. Specific part: 4.4.1 The p element — HTML5[^].

The tag doesn't actually "know what to do", because HTML is just a markup language and doesn't "know" anything by itself. However, your web browser does know what <p> means, because browsers follow the HTML spec that I linked. So your browser renders it as a new paragraph.


尝试 HTML - Wikipedia [ ^ ],这将增加您的知识,一般来说,关于您的知识将会这样做。
Try HTML - Wikipedia[^], which will increase your knowledge, in general, about what you will be doing.


引用:

该标签如何知道该怎么做

how that tag knows what to do



标签一无所知,什么都不做。知道和做的是浏览器,html页面只是文本。浏览器将标签视为呈现页面的方向。



此网站是关于wen应用程序的教程网站,该网站允许您进行实验。

W3Schools在线网络教程 [ ^ ]


这篇关于HTML标签的来源是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆