gpt4 book ai didi

java - 杂散 "html"开始标记

转载 作者:行者123 更新时间:2023-11-30 06:12:38 25 4
gpt4 key购买 nike

正在处理我的 servlet 项目。在index.html 文件中,我有 Stray "html"start tag 错误。问题出在这部分代码中:

<%@ page contentType = "text/html"; charset = "UTF-8" language = "java"%>
<html>
<head>

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>

<link rel="stylesheet" type="text/css" href="public.styles/style.css">
</head>
<body>

也许有人知道如何解决它?

最佳答案

您在html中使用了jsp标签 我认为这其中有一些错误。

在jsp中-

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>

html 格式

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

关于java - 杂散 "html"开始标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49898982/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com