<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Brazil /int/ Simulator</title> <style> body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #ffdc00, #009c3b); color: #222; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; text-align: center; } #game-container { background: white; max-width: 600px; padding: 20px; border-radius: 15px; box-shadow: 0 0 15px rgba(0,0,0,0.3); } #message { min-height: 140px; font-size: 1.1rem; margin-bottom: 20px; white-space: pre-wrap; } #next-btn, #scream-btn { padding: 10px 20px; font-weight: bold; font-size: 1rem; margin: 5px; border: none; border-radius: 8px; cursor: pointer; user-select: none; } #next-btn { background-color: #007700; color: white; } #next-btn:disabled { background-color: #999; cursor: default; } #scream-btn { background-color: #cc0000; color: white; } #result { font-size: 1.3rem; font-weight: bold; margin-top: 20px; } </style> </head> <body> <div id="game-container"> <h1>Brazil /int/ Simulator</h1> <div id="message">Press "Next" to start the conversation.</div> <button id="next-btn">Next</button> <button id="scream-btn">JUST SHUT UP ALREADY NOBODY CARES!</button> <div id="result"></div> </div> <script> // Conversation lines mimicking stereotypical Brazil /int/ user style const conversation = [ "Oi, brother! You no understand Brazil like me, you never see Carnaval like this, it is best in the world!", "You think your country have good futebol? No way! Brazil have Pelé, Neymar... you have who?", "Listen, the samba is more than dance, is life, is passion, is our soul! You only copy, never original!", "You know about the Amazon? It is our lungs! But the gringo media just want to destroy us with lies.", "You watch Hollywood? That’s imperialist propaganda! Brazil make better movies with more heart.", "And the food! Feijoada, coxinha, pão de queijo... what you eat? Burgers? Pathetic!", "Our music make the world dance: Bossa Nova, MPB, Funk carioca. You stuck with your boring pop.", "We survived dictatorship, crisis, and still we smile and party every day. What your country do?", "I tell you the truth: Brazil is future. The world will see, but you too blind to notice.", "Now, you no scream 'JUST SHUT UP ALREADY NOBODY CARES!' or you lose! Keep calm, brother." ]; let index = -1; const messageEl = document.getElementById('message'); const nextBtn = document.getElementById('next-btn'); const screamBtn = document.getElementById('scream-btn'); const resultEl = document.getElementById('result'); nextBtn.addEventListener('click', () => { index++; if (index < conversation.length) { messageEl.textContent = conversation[index]; } else { messageEl.textContent = "You survived the Brazilian /int/ onslaught! Parabéns!"; nextBtn.disabled = true; screamBtn.disabled = true; resultEl.textContent = "🎉 You WIN! 🎉"; } }); screamBtn.addEventListener('click', () => { messageEl.textContent = "You gave up! The Brazil /int/ has overwhelmed you..."; nextBtn.disabled = true; screamBtn.disabled = true; resultEl.textContent = "💥 YOU LOSE! 💥"; }); </script> </body> </html>
Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML
. You can also specify the stylesheet information in styles.css
tab and scripts information in scripts.js
tab and start coding.
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.
body{
padding: 25px;
}
.title {
color: #228B22;
font-family: Candara;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>