{"id":422,"date":"2024-05-06T07:11:03","date_gmt":"2024-05-06T07:11:03","guid":{"rendered":"https:\/\/worldseotool.com\/?page_id=422"},"modified":"2024-05-06T07:11:03","modified_gmt":"2024-05-06T07:11:03","slug":"youtube-seo-tool","status":"publish","type":"page","link":"https:\/\/shoptips24.com\/tools\/youtube-seo-tool\/","title":{"rendered":"YouTube SEO Tool"},"content":{"rendered":"\n\n<style>\nbody {\n    font-family: Arial, sans-serif;\n    background-color: #f4f4f4;\n}\n\n.container {\n    max-width: 600px;\n    margin: 50px auto;\n    padding: 20px;\n    background-color: #fff;\n    border-radius: 10px;\n    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n}\n\ninput[type=\"text\"], textarea {\n    width: 100%;\n    padding: 10px;\n    margin-bottom: 10px;\n    border: 1px solid #ccc;\n    border-radius: 5px;\n    box-sizing: border-box;\n}\n\nbutton {\n    display: block;\n    width: 100%;\n    padding: 10px;\n    background-color: #007bff;\n    color: white;\n    border: none;\n    border-radius: 5px;\n    cursor: pointer;\n}\n\nbutton:hover {\n    background-color: #0056b3;\n}\n\n#result {\n    margin-top: 20px;\n    font-size: 20px;\n    font-weight: bold;\n    text-align: center;\n}\n\n.red {\n    color: red;\n}\n\n.orange {\n    color: orange;\n}\n\n.green {\n    color: green;\n}\n\n.msg {\n    margin-top: 2px;\n    padding: 10px;\n    border-radius: 5px;\n    background-color: #f8d7da;\n    border: 1px solid #f5c6cb;\n    color: #721c24;\n}\n<\/style>\n\n<body>\n    <div class=\"container\">\n        <h1>YouTube SEO Tool<\/h1>\n        <label for=\"videoTitle\">Video Title (Max 100 Characters):<\/label>\n        <input id=\"videoTitle\" maxlength=\"100\" placeholder=\"Enter your video title\" type=\"text\" \/>\n\n        <label for=\"videoDescription\">Video Description (Max 500 Characters):<\/label>\n        <textarea id=\"videoDescription\" maxlength=\"500\" placeholder=\"Enter your video description\" rows=\"4\"><\/textarea>\n\n        <label for=\"hashtags\">Hashtags (Max 10, Separate by commas):<\/label>\n        <input id=\"hashtags\" placeholder=\"Enter hashtags\" type=\"text\" \/>\n\n        <button id=\"analyzeBtn\">Analyze<\/button>\n\n        <div id=\"result\"><\/div>\n        <div class=\"msg\" id=\"hashtagMsg\" style=\"display: none;\">Please include # in your hashtags.<\/div>\n    <\/div>\n\n    <script>\n        document.getElementById('analyzeBtn').addEventListener('click', function() {\n            const title = document.getElementById('videoTitle').value.trim();\n            const description = document.getElementById('videoDescription').value.trim();\n            let hashtags = document.getElementById('hashtags').value.trim();\n\n            let score = 0;\n            let message = '';\n\n            \/\/ Check title length\n            if (title.length > 100) {\n                message += \"Title length should be less than or equal to 100 characters.\\n\";\n            } else if (title.length < 1) {\n                message += \"Please enter video title.\\n\";\n            } else {\n                score += 25;\n            }\n\n            \/\/ Check description length and starting title\n            if (description.length > 500) {\n                message += \"Description length should be less than or equal to 500 characters.\\n\";\n            } else if (description.length < 1) {\n                message += \"Please enter video description.\\n\";\n            } else if (!description.toLowerCase().includes(title.toLowerCase())) {\n                message += \"Description should contain video title.\\n\";\n            } else {\n                score += 25;\n            }\n\n            \/\/ Check hashtags\n            const hashtagCount = hashtags.split(',').filter(tag => tag.trim() !== '').length;\n            if (hashtagCount > 10) {\n                message += \"Maximum 10 hashtags are allowed.\\n\";\n            } else if (hashtagCount < 1) {\n                message += \"Please enter at least one hashtag.\\n\";\n            } else {\n                \/\/ Check if # is included\n                if (!hashtags.toLowerCase().includes('#')) {\n                    document.getElementById('hashtagMsg').style.display = 'block';\n                    return;\n                } else {\n                    document.getElementById('hashtagMsg').style.display = 'none';\n                    score += 25;\n                }\n            }\n\n            \/\/ Show result\n            const resultDiv = document.getElementById('result');\n            if (message !== '') {\n                resultDiv.className = '';\n                resultDiv.textContent = message;\n            } else {\n                resultDiv.textContent = score;\n                if (score <= 50) {\n                    resultDiv.className = 'red';\n                } else if (score <= 70) {\n                    resultDiv.className = 'orange';\n                } else {\n                    resultDiv.className = 'green';\n                }\n            }\n        });\n    <\/script>\n<\/body><div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjuF4Mne1tokd1PGYJeC1F3_-nyQ-erHiTjzR7-Y8YLZamnJk4gnCJxVsVsOHzv2qJC2ZTRVInr_vW_yQ0wydoCdUaZG_RqBWefO00XgMFOBW5Jfh4F08YYl6N1tuamOiX2zb7Dmn_Prokmsw8JY7L2iaYkQyO63xo6kmdFSvp0k6daSz_8Bmz6Piuwm88\/s512\/website.png\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img fetchpriority=\"high\" decoding=\"async\" border=\"0\" data-original-height=\"512\" data-original-width=\"512\" height=\"320\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjuF4Mne1tokd1PGYJeC1F3_-nyQ-erHiTjzR7-Y8YLZamnJk4gnCJxVsVsOHzv2qJC2ZTRVInr_vW_yQ0wydoCdUaZG_RqBWefO00XgMFOBW5Jfh4F08YYl6N1tuamOiX2zb7Dmn_Prokmsw8JY7L2iaYkQyO63xo6kmdFSvp0k6daSz_8Bmz6Piuwm88\/s320\/website.png\" width=\"320\" \/><\/a><\/div><br \/>\n","protected":false},"excerpt":{"rendered":"<p>YouTube SEO Tool Video Title (Max 100 Characters): Video Description (Max 500 Characters): Hashtags (Max 10, Separate by commas): Analyze&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-422","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":0,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages\/422\/revisions"}],"wp:attachment":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/media?parent=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}