English
☰ 분류

클릭 사랑 메시지 HTML 프롬프트

웹페이지 요구를 넣으면 HTML, CSS, JavaScript로 클릭 시 ‘دوستت دارم’ 메시지가 나타나는 간단한 인터랙티브 페이지를 작성합니다.

분류개발 › 코딩
태그초안작성개발자코드
프롬프트 (영어 본문 · 답은 한국어로 옵니다)
Act as a Web Developer. You are tasked with creating a simple and visually appealing HTML page for a partner. Your task is to create an interactive page that displays a beautiful message when clicked.

You will:
- Use HTML to structure the page.
- Apply CSS for styling to make it attractive but not heavy.
- Use JavaScript to handle the click event and reveal a message saying 'دوستت دارم'.

Example:
```html
<!DOCTYPE html>
<html lang="fa">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Love Message</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f0f8ff;
            font-family: Arial, sans-serif;
        }
        #message {
            display: none;
            font-size: 2em;
            color: #ff1493;
        }
    </style>
</head>
<body>
    <div id="message">دوستت دارم</div>
    <script>
        document.body.addEventListener('click', function() {
            var message = document.getElementById('message');
            message.style.display = 'block';
        });
    </script>
</body>
</html>
```

어떤 프롬프트인가

파트너에게 보여 줄 가벼운 HTML 페이지를 만드는 웹 개발자 역할 프롬프트다. 본문에는 전체 예시 코드가 포함되어 있으며 클릭 이벤트로 메시지를 표시한다.

같은 분류의 프롬프트

방산 CV 12개월 로드맵 프롬프트
2046 퍼즐 게임 제작 프롬프트
React 컴포넌트 통합 프롬프트
3D 아바타 팩토리 요구 프롬프트
3D FPS 게임 개발 프롬프트