<%--
Created by IntelliJ IDEA.
User: dell
Date: 2020/10/30
Time: 22:01
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
</head>
<body>
<form action="test1.jsp">
<input type="text" name="name">
<input type="submit">
</form>
</body>
</html>
<%--
Created by IntelliJ IDEA.
User: dell
Date: 2020/10/31
Time: 18:03
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
<style>
.big {
font-size: 36px;
}
</style>
</head>
<body>
<%
out.print("<h1>" + "把字体变大" + "</h1>");
out.print("<a href=\"http://www.baidu.com/\" class=\"big\">"+request.getParameter("name")+"</a>");
%>
<a href="https://www.baidu.com/"> <h1>123456</h1> </a>
</body>
</html>
在字符串中写入HTML标签,注意引号要使用反斜杠 \ 将其转义