Php head标记中所有链接、脚本和元标记的正确名称是什么

Php head标记中所有链接、脚本和元标记的正确名称是什么,php,html,Php,Html,因此,我使用PHP通过使用以下代码将所有链接、脚本和元标记包含在head标记中: <?php include(Config::get('file/html_headers')); ?> 因为我想给这个“htmlHeaders”文件命名,以便其他程序员理解,这个文件名应该命名为什么?我不知道这些标签从绝对意义上说被称为什么。它们是html标题吗 以下是htmlHeaders.php的内容 <!-- Latest compiled and minified Bootstrap C

因此,我使用PHP通过使用以下代码将所有链接、脚本和元标记包含在head标记中:

<?php include(Config::get('file/html_headers')); ?>
因为我想给这个“htmlHeaders”文件命名,以便其他程序员理解,这个文件名应该命名为什么?我不知道这些标签从绝对意义上说被称为什么。它们是html标题吗

以下是htmlHeaders.php的内容

<!-- Latest compiled and minified Bootstrap CSS -->
<link rel="stylesheet" type="text/css" href="http://bootswatch.com/darkly/bootstrap.css">
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<!-- Latest compiled and minified Bootstrap JavaScript
     MUST BE LOADED AFTER jQuery -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Font Awesome -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<!-- Now Doing Some Cleaning Up -->
<!--
Fix Bootstrap's Grid Issues
Apply "flex" class to div with class = "row"
Example: <div class="row flex"><div class="col-lg-12"></div></div>
-->
<style type="text/css">
    .flex {
        display: flex;
        flex-wrap: wrap;
    }
</style>
<!-- Ensuring Proper Rendering & Touch Zooming on Mobile Devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Improving Cross-Browser Rendering -->
<link rel="stylesheet" type="text/css" href="https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css">

.flex{
显示器:flex;
柔性包装:包装;
}

JavaScript和CSS类型的东西称为“资产”

如果您包含PHP代码,那么这只是网站上的一个标题。从您的代码来看,PHP脚本似乎创建了包含资产的HTML。

W3School将它们称为“head元素”,因为它们是出现在
标记中的元素。W3CHTML规范说,它是“不被视为文档内容的数据”,您可以简单地将其缩短为“非文档内容”。我通常直接将该文件称为
\uuuuuuheadcontents.
或仅称为
\uuuuuuuhead.
,我个人认为

不过,关于其他答案和评论,我想说:

  • 它们不是“头”,在HTTP中,头是在HTML之前发送的东西,比如cookies、etag等等,这个词在HTTP中的意思是特定的东西。如果你称之为标题,在某个时候你会后悔,因为它会引起混乱

  • 它们不是“资产”。资产意味着“额外的外部文件”,包括CSS和外部JS以及图像;例如,meta和title标记不是资产,资产可以在
    标记之外引用

  • 文档元呢?本质上,
    中的任何内容都描述了当前文档,因此是元文档


    另外,在搜索引擎优化领域,人们会把
    元标签的内容称为。

    我不知道这是否是你想听到的,但你只把它称为“头”(正如标签所暗示的那样),我不认为它们有任何通用名称,只是把它们称为
    ,元素是标签,就像HTML中的其他任何东西一样。我称之为
    resources
    基于Muhammad Ibnuh所说的,也许将文件命名为htmlHeadResources,这应该足以衡量其内容。我选择将文件命名为headContents.php!
    <!-- Latest compiled and minified Bootstrap CSS -->
    <link rel="stylesheet" type="text/css" href="http://bootswatch.com/darkly/bootstrap.css">
    <!-- jQuery -->
    <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
    <!-- Latest compiled and minified Bootstrap JavaScript
         MUST BE LOADED AFTER jQuery -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <!-- Font Awesome -->
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
    <!-- Now Doing Some Cleaning Up -->
    <!--
    Fix Bootstrap's Grid Issues
    Apply "flex" class to div with class = "row"
    Example: <div class="row flex"><div class="col-lg-12"></div></div>
    -->
    <style type="text/css">
        .flex {
            display: flex;
            flex-wrap: wrap;
        }
    </style>
    <!-- Ensuring Proper Rendering & Touch Zooming on Mobile Devices -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Improving Cross-Browser Rendering -->
    <link rel="stylesheet" type="text/css" href="https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css">