<!DOCTYPE html> <html> <head> <title>Google Ads Keyword Tool</title> <style> body { font-family: Arial, sans-serif; background-color: #f8f8f8; color: #202124; padding: 20px; } .container { max-width: 600px; margin: 0 auto; } h1 { text-align: center; color: #202124; } input { width: 100%; padding: 10px; margin: 10px 0; box-sizing: border-box; border-radius: 4px; border: 1px solid #ddd; } button { background-color: #4285f4; color: white; padding: 10px 20px; margin: 10px 0; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #2b7de9; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } table, th, td { border: 1px solid #ddd; } th, td { text-align: left; padding: 8px; } th { background-color: #4285f4; color: white; } </style> </head> <body> <div class="container"> <h1>Google Ads Keyword Tool</h1> <div id="keywordContainer"> <input type="text" class="keyword" placeholder="Enter your keyword here"> </div> <button onclick="addKeyword()">Add Another Keyword</button> <button onclick="generateMatches()">Generate Matches</button> <button onclick="resetAll()">Reset All</button> <table id="outputTable"> <tr> <th>Match Type</th> <th>Keyword</th> </tr> </table> </div> <script> var keywordCount = 1; function addKeyword() { var keywordContainer = document.getElementById('keywordContainer'); var newInput = document.createElement('input'); newInput.type = 'text'; newInput.className = 'keyword'; newInput.placeholder = 'Enter your keyword here'; keywordContainer.appendChild(newInput); keywordCount++; } function generateMatches() { var keywords = document.getElementsByClassName('keyword'); var outputTable = document.getElementById('outputTable'); // Clear the table outputTable.innerHTML = '<tr><th>Match Type</th><th>Keyword</th></tr>'; for (var i = 0; i < keywords.length; i++) { var keyword = keywords[i].value; if (keyword) { var exactMatch = '[' + keyword + ']'; var phraseMatch = '"' + keyword + '"'; var broadMatch = keyword; outputTable.innerHTML += '<tr><td>Exact</td><td>' + exactMatch + '</td></tr>' + '<tr><td>Phrase</td><td>' + phraseMatch + '</td></tr>' + '<tr><td>Broad</td><td>' + broadMatch + '</td></tr>'; } } } function resetAll() { var keywordContainer = document.getElementById('keywordContainer'); keywordContainer.innerHTML = '<input type="text" class="keyword" placeholder="Enter your keyword here">'; keywordCount = 1; var outputTable = document.getElementById('outputTable'); outputTable.innerHTML = '<tr><th>Match Type</th><th>Keyword</th></tr>'; } </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>