웹 프로그래밍/HTML
[HTML] 코드 및 문장 그대로 나타내기 <pre> 태그
산을넘는다
2020. 6. 11. 10:42
<pre> 태그를 쓰면, 공백과 줄바꿈이 그대로 표현된다.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h2>LottoMain.java</h2>
<pre>
class Account {
Random r = new Random();
private String name;
private int money;
}
</pre>
</body>
</html>