{"id":1695,"date":"2024-12-21T08:49:51","date_gmt":"2024-12-21T08:49:51","guid":{"rendered":"https:\/\/donhit.com\/en\/?p=1695"},"modified":"2025-02-06T04:17:11","modified_gmt":"2025-02-06T04:17:11","slug":"cups-to-ml","status":"publish","type":"post","link":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/","title":{"rendered":"Cups to mL Converter"},"content":{"rendered":"<p><center><div class=\"converter-container\">\r\n        <h2>Cups to Milliliters Converter<\/h2>\r\n        <div class=\"input-group\">\r\n            <label for=\"cups\">Enter Cups:<\/label>\r\n            <input \r\n                type=\"number\" \r\n                id=\"cups\" \r\n                placeholder=\"Enter value in cups\"\r\n                step=\"0.01\"\r\n                min=\"0\"\r\n            >\r\n            <div class=\"error\" id=\"error\">Please enter a valid number greater than 0<\/div>\r\n        <\/div>\r\n        \r\n        <button onclick=\"convert()\">Convert<\/button>\r\n        \r\n        <div class=\"result\" id=\"result\">\r\n            0 cups = 0 mL\r\n        <\/div>\r\n        \r\n        <p class=\"info-text\">\r\n            1 Cup = 236.588 mL\r\n        <\/p>\r\n    <\/div>\r\n\r\n    <script>\r\n        const cupsInput = document.getElementById('cups');\r\n        const resultDiv = document.getElementById('result');\r\n        const errorDiv = document.getElementById('error');\r\n\r\n        \/\/ Convert on Enter key press\r\n        cupsInput.addEventListener('keypress', function(event) {\r\n            if (event.key === 'Enter') {\r\n                convert();\r\n            }\r\n        });\r\n\r\n        \/\/ Clear error on input change\r\n        cupsInput.addEventListener('input', function() {\r\n            errorDiv.style.display = 'none';\r\n        });\r\n\r\n        function convert() {\r\n            const cups = parseFloat(cupsInput.value);\r\n            \r\n            if (!cupsInput.value || isNaN(cups) || cups < 0) {\r\n                errorDiv.style.display = 'block';\r\n                return;\r\n            }\r\n\r\n            const milliliters = cups * 236.588;\r\n            resultDiv.textContent = `${cups} ${cups === 1 ? 'cup' : 'cups'} = ${milliliters.toFixed(2)} mL`;\r\n        }\r\n    <\/script><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1695","post","type-post","status-publish","format-standard","hentry","category-convert"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cups to mL Converter - DonHit<\/title>\n<meta name=\"description\" content=\"Converting cups to milliliters is critical when following recipes that originate from different regions, as the size of a &quot;cup&quot; can vary\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cups to mL Converter - DonHit\" \/>\n<meta property=\"og:description\" content=\"Converting cups to milliliters is critical when following recipes that originate from different regions, as the size of a &quot;cup&quot; can vary\" \/>\n<meta property=\"og:url\" content=\"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/\" \/>\n<meta property=\"og:site_name\" content=\"DonHit - World of Tools\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-21T08:49:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-06T04:17:11+00:00\" \/>\n<meta name=\"author\" content=\"DonHit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DonHit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cups to mL Converter - DonHit","description":"Converting cups to milliliters is critical when following recipes that originate from different regions, as the size of a \"cup\" can vary","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/","og_locale":"en_US","og_type":"article","og_title":"Cups to mL Converter - DonHit","og_description":"Converting cups to milliliters is critical when following recipes that originate from different regions, as the size of a \"cup\" can vary","og_url":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/","og_site_name":"DonHit - World of Tools","article_published_time":"2024-12-21T08:49:51+00:00","article_modified_time":"2025-02-06T04:17:11+00:00","author":"DonHit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DonHit","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/#article","isPartOf":{"@id":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/"},"author":{"name":"DonHit","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"headline":"Cups to mL Converter","datePublished":"2024-12-21T08:49:51+00:00","dateModified":"2025-02-06T04:17:11+00:00","mainEntityOfPage":{"@id":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/"},"wordCount":10,"commentCount":0,"publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"articleSection":["Conversion Calculators"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/donhit.com\/en\/convert\/cups-to-ml\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/","url":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/","name":"Cups to mL Converter - DonHit","isPartOf":{"@id":"https:\/\/donhit.com\/en\/#website"},"datePublished":"2024-12-21T08:49:51+00:00","dateModified":"2025-02-06T04:17:11+00:00","description":"Converting cups to milliliters is critical when following recipes that originate from different regions, as the size of a \"cup\" can vary","breadcrumb":{"@id":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/donhit.com\/en\/convert\/cups-to-ml\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/donhit.com\/en\/convert\/cups-to-ml\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/donhit.com\/en\/"},{"@type":"ListItem","position":2,"name":"Conversion Calculators","item":"https:\/\/donhit.com\/en\/category\/convert\/"},{"@type":"ListItem","position":3,"name":"Cups to mL Converter"}]},{"@type":"WebSite","@id":"https:\/\/donhit.com\/en\/#website","url":"https:\/\/donhit.com\/en\/","name":"DonHit - World of tools","description":"","publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/donhit.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148","name":"DonHit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","contentUrl":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","width":400,"height":267,"caption":"DonHit"},"logo":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/"},"description":"DonHit is a website designed to provide useful tools for everyone. Its primary goal is to support and empower the community. All the tools available on the site are completely free to use.","sameAs":["https:\/\/donhit.com\/en"],"url":"https:\/\/donhit.com\/en\/author\/admin_don\/"}]}},"_links":{"self":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/comments?post=1695"}],"version-history":[{"count":3,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1695\/revisions"}],"predecessor-version":[{"id":2048,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1695\/revisions\/2048"}],"wp:attachment":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/media?parent=1695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/categories?post=1695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/tags?post=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}