{"id":9117,"date":"2022-07-29T14:20:22","date_gmt":"2022-07-29T21:20:22","guid":{"rendered":"https:\/\/coderpad.io\/?p=9117"},"modified":"2023-06-07T14:05:29","modified_gmt":"2023-06-07T21:05:29","slug":"an-overview-of-five-css-math-functions","status":"publish","type":"post","link":"https:\/\/coderpad.io\/blog\/development\/an-overview-of-five-css-math-functions\/","title":{"rendered":"An Overview of Five CSS Math Functions"},"content":{"rendered":"\n<p>CSS math functions are one of the powerful features of CSS. They are special CSS values that enable front-end developers to perform mathematical calculations and basic arithmetic directly within their CSS stylesheets.<\/p>\n\n\n\n<p>CSS has five math functions that allow you to perform basic arithmetic operations\u2014addition, subtraction, multiplication, comparison, and division on <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Learn\/CSS\/Building_blocks\/Values_and_units#numbers_lengths_and_percentages\" target=\"_blank\" rel=\"noopener\">CSS numeric units<\/a> such as numbers (for example, 10, 0.8, -6), lengths (<code>px<\/code>, <code>rem<\/code>, <code>vw<\/code>), and percentages (50%), with the ability to interpolate between these units. These functions enable the browser to dynamically compute and update the value for any CSS property these functions are passed to.<\/p>\n\n\n\n<p>The math functions available in CSS are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code><a href=\"#calc\">calc()<\/a><\/code><\/li>\n\n\n\n<li><code><a href=\"#clamp\">clamp()<\/a><\/code><\/li>\n\n\n\n<li><code><a href=\"#max\">max()<\/a><\/code><\/li>\n\n\n\n<li><code><a href=\"#min\">min()<\/a><\/code><\/li>\n\n\n\n<li><code><a href=\"#abs\">abs()<\/a><\/code><\/li>\n<\/ul>\n\n\n\n<p>This article will introduce you to these math functions and explore some of their practical use cases. Let\u2019s dive in!<\/p>\n\n\n<aside class=\"\n    cta-banner\n     cta-banner--bg-blue      cta-banner--has-media \"\ndata-block-name=\"cta-banner\">\n    <div class=\"inner\">\n        <div class=\"content\">\n                            <h2 class=\"headline\">Learn how to run front-end developer interviews that don&#8217;t suck<\/h2>\n            \n                            <div class=\"cta-buttons\">\n                                    <a href=\"https:\/\/coderpad.io\/blog\/interviewing\/5-tips-for-interviewing-frontend\/\" class=\"button  js-cta--read-our-guide\" data-ga-category=\"CTA\" data-ga-label=\"Learn how to run front-end developer interviews that don&#039;t suck|Read our guide\">Read our guide<\/a>\n                                <\/div>\n                    <\/div>\n                    <div class=\"media\">\n                <img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"342\" src=\"https:\/\/coderpad.io\/wp-content\/uploads\/2022\/08\/Illustration-of-man-with-beard-popping-out-of-computer-chat.png\" class=\"attachment-large size-large\" alt=\"\" srcset=\"https:\/\/coderpad.io\/wp-content\/uploads\/2022\/08\/Illustration-of-man-with-beard-popping-out-of-computer-chat.png 432w, https:\/\/coderpad.io\/wp-content\/uploads\/2022\/08\/Illustration-of-man-with-beard-popping-out-of-computer-chat-300x238.png 300w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\" \/>\n            <\/div>\n            <\/div>\n<\/aside>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"calc\">Combine values using calc()<\/h2>\n\n\n\n<p>The CSS <code>calc()<\/code> function lets us perform basic arithmetic\u2014addition (+), subtraction (-), division (\/), and multiplication (*) on numbers and <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Learn\/CSS\/Building_blocks\/Values_and_units#lengths\" target=\"_blank\" rel=\"noopener\">CSS length units<\/a>. It takes a single mathematical expression as its parameter, computes the value, and returns the result as a single value.<\/p>\n\n\n\n<p>A common use case for using the <code>calc()<\/code> function is to combine different units to create values that are impossible to represent with traditional CSS units. For example, you might want a website&#8217;s main section to take up most of the viewport height except for the height of the navigation bar. You can use the <code>calc()<\/code> function to accomplish this by subtracting the navigation bar height from the viewport height.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css shcb-wrap-lines\"><span class=\"hljs-selector-tag\">nav<\/span> {\n      <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-number\">8rem<\/span>;\n}\n\n<span class=\"hljs-selector-tag\">main<\/span> {\n      <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-built_in\">calc<\/span>(<span class=\"hljs-number\">100vh<\/span> - <span class=\"hljs-number\">12rem<\/span>)\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Here, the navigation bar has a height of 8rem, and the main tag is given a height of the entire screen, minus <code>12rem<\/code>. This automatically puts a margin of <code>4rem<\/code> between the navigation bar and the main contents of the website \u2014 another use case of the <code>calc()<\/code> function.<\/p>\n\n\n\n<p>Now no matter how long or short the viewport height is, the main tag will always be <code>12rem<\/code> shorter than the full height of the screen.<\/p>\n\n\n<div\n\tclass=\"sandbox-embed responsive-embed  sandbox-embed--full-width\"\n\tstyle=\"padding-top: 125%\"\ndata-block-name=\"coderpad-sandbox-embed\">\n\t<iframe src=\"https:\/\/embed.coderpad.io\/sandbox?question_id=223262&#038;use_question_button\" width=\"640\" height=\"800\" loading=\"lazy\" aria-label=\"Try out the CoderPad sandbox\"><\/iframe>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"clamp\">Restrict numerical values with clamp()<\/h2>\n\n\n\n<p>The CSS <code>clamp()<\/code> function lets us define a range of possible values for a CSS property. These values are evaluated and applied as the width and height of the viewport change.<\/p>\n\n\n\n<p>The <code>clamp()<\/code> function accepts three comma-separated expressions as its parameters. The first is the minimum or lowest value of the range, the middle is the preferred value, and the third is the maximum value of the range.<\/p>\n\n\n\n<p>Syntax:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml shcb-wrap-lines\">clamp(<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">mininum-value<\/span>&gt;<\/span>, <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">target-value<\/span>&gt;<\/span>, <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">maximum-value<\/span>&gt;<\/span>)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>For each parameter, you can use different CSS length units (<code>px<\/code>, <code>rem<\/code>, <code>em<\/code>, etc.). CSS then applies them accordingly as the size of the viewport changes.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css shcb-wrap-lines\"><span class=\"hljs-selector-tag\">h2<\/span> { \n    <span class=\"hljs-attribute\">font-size<\/span>: <span class=\"hljs-built_in\">clamp<\/span>(<span class=\"hljs-number\">1.75rem<\/span>, <span class=\"hljs-number\">5vw<\/span>, <span class=\"hljs-number\">3.5rem<\/span>)\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In the code above, the <code>clamp()<\/code> function is used to set a range of values for the <code>h2<\/code> element <code>font-size<\/code>. The order of <code>clamp()<\/code> values can be interpreted as the minimum allowed value for the <code>h2<\/code> font-size is <code>1.75rem<\/code>, the ideal size should be <code>5vw<\/code> (i.e., 5% of the viewport), and the maximum allowed value is <code>3.5rem<\/code>.<\/p>\n\n\n<div\n\tclass=\"sandbox-embed responsive-embed \"\n\tstyle=\"padding-top: 125%\"\ndata-block-name=\"coderpad-sandbox-embed\">\n\t<iframe src=\"https:\/\/embed.coderpad.io\/sandbox?question_id=223263&#038;use_question_button\" width=\"640\" height=\"800\" loading=\"lazy\" aria-label=\"Try out the CoderPad sandbox\"><\/iframe>\n<\/div>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/d2h1bfu6zrdxog.cloudfront.net\/wp-content\/uploads\/2022\/07\/img_62e4495fbf1ce.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>This means that on large screens where <code>5vw<\/code> of the viewport may be larger than the maximum allowed value \u2014 <code>3.5rem<\/code>, rather than exceeding that value, <code>3.5rem<\/code> is used as the target value. And on smaller screens where <code>5vw<\/code> of the viewport is smaller than the minimum allowed value, <code>1.5rem<\/code> is used.<\/p>\n\n\n\n<p>That is to say, as the element is resized across viewports, its value will grow and shrink across that range. But it will always compute to a value within the range of <code>1.75rem<\/code> to <code>3.5rem<\/code>.<\/p>\n\n\n\n<p>A significant benefit of the <code>clamp()<\/code> function is that it reduces the need for media queries. Instead of heavily relying on media queries to control your CSS values across viewports, it lets you can set up, to a degree, a responsive transition of values for a CSS property.<\/p>\n\n\n\n<p>You can also use arithmetic operators on any of the three expressions passed to the clamp, min, and max functions, just as you would using the <code>calc()<\/code> function.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css shcb-wrap-lines\"><span class=\"hljs-selector-tag\">aside<\/span> {\n    <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-built_in\">clamp<\/span>(<span class=\"hljs-number\">100vw<\/span> - <span class=\"hljs-number\">70%<\/span>, <span class=\"hljs-number\">50rem<\/span>, <span class=\"hljs-number\">70%<\/span>)\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id=\"max\">Get the larger of two numbers with max()<\/h2>\n\n\n\n<p>The <code>max()<\/code> function is a method that compares values and returns the largest value. It takes one or more comma-separated expressions as its parameter and applies the most positive value from the list as the value of the CSS property.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css shcb-wrap-lines\"><span class=\"hljs-selector-tag\">div<\/span> {\n     <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-built_in\">max<\/span>(<span class=\"hljs-number\">90vw<\/span>, <span class=\"hljs-number\">460px<\/span>);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In the code above, using the <code>max()<\/code> function, we instruct the browser to set the div&#8217;s width to the largest value \u2014 <code>90vw<\/code> on wider viewports. On smaller or zoomed-in viewports where <code>90vw<\/code> is the smaller value, <code>460px<\/code> will be used.<\/p>\n\n\n<div\n\tclass=\"sandbox-embed responsive-embed \"\n\tstyle=\"padding-top: 125%\"\ndata-block-name=\"coderpad-sandbox-embed\">\n\t<iframe src=\"https:\/\/embed.coderpad.io\/sandbox?question_id=223265&#038;use_question_button\" width=\"640\" height=\"800\" loading=\"lazy\" aria-label=\"Try out the CoderPad sandbox\"><\/iframe>\n<\/div>\n\n\n\n<p>As the viewport resizes, the max function picks the largest (most positive) expression value in the list as the value of the CSS property.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"min\">Use min() to get the smallest number in a set<\/h2>\n\n\n\n<p>The CSS math function <code>min()<\/code> is the opposite of the <code>max()<\/code> function. It takes one or more comma-separated expressions as its parameter, then applies the smallest (most negative) value from the list as the value of the CSS property.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css shcb-wrap-lines\"><span class=\"hljs-selector-tag\">div<\/span> {\n     <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-built_in\">min<\/span>(<span class=\"hljs-number\">90vw<\/span>, <span class=\"hljs-number\">460px<\/span>);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>These are the same values passed to the <code>max()<\/code> function in the section above. However, they work differently here. On the broader viewports, <code>460px<\/code> will be used as the div&#8217;s width because it is the smaller value of the two options, and on smaller viewports where <code>460px<\/code> is the larger value, <code>90vw<\/code> will be used. This means that the div&#8217;s width will never exceed one of these values, and the browser will always select the minimum value from the list at any given time.<\/p>\n\n\n<div\n\tclass=\"sandbox-embed responsive-embed \"\n\tstyle=\"padding-top: 125%\"\ndata-block-name=\"coderpad-sandbox-embed\">\n\t<iframe src=\"https:\/\/embed.coderpad.io\/sandbox?question_id=223266&#038;use_question_button\" width=\"640\" height=\"800\" loading=\"lazy\" aria-label=\"Try out the CoderPad sandbox\"><\/iframe>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"abs\">Get the absolute value of an expression with abs()<\/h2>\n\n\n\n<p>The last of the math functions and much less known, <code>abs()<\/code>. The <code>abs()<\/code> function takes a single expression as its argument and returns the absolute value of that expression (i.e., the value of the expression without regard to its sign).<\/p>\n\n\n\n<p>Syntax:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css shcb-wrap-lines\"><span class=\"hljs-selector-tag\">h1<\/span> {\n    <span class=\"hljs-attribute\">margin<\/span>: <span class=\"hljs-built_in\">abs<\/span>()\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>A common use case of the <code>abs()<\/code> function is to ensure that a value is always positive. For example, say you start working on a large CSS codebase with a lot of custom properties. You might not know which properties are positive or negative. To get the absolute value of a property, you can wrap it in the <code>abs()<\/code> function to convert its value, whether negative, to a positive one.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css shcb-wrap-lines\"><span class=\"hljs-selector-tag\">body<\/span> {\n      <span class=\"hljs-attribute\">font-size<\/span>: <span class=\"hljs-built_in\">abs<\/span>( var( --base-font ) );\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>As of the time of writing, the <code>abs()<\/code> function is still in experimental mode and not yet widely supported across all browsers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Helpful reminders and usage notes<\/h2>\n\n\n\n<p>Here are some additional guidelines you should follow when using CSS math functions.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <code>+<\/code> and <code>-<\/code> operators<strong>must be surrounded <\/strong>by<strong> <\/strong><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Glossary\/Whitespace\" target=\"_blank\" rel=\"noopener\">whitespaces<\/a>. For example, the expression <code>calc(20% -8px)<\/code> will be parsed as a percentage followed by a negative length \u2014 resulting in an invalid expression \u2014 while <code>calc(20% - 8px)<\/code> is a percentage followed by a subtraction operator and a length value.<\/li>\n\n\n\n<li>The * and \/ operators do not require whitespace, however, adding it for consistency is both allowed and recommended.<\/li>\n\n\n\n<li>Divisions by zero will result in an error generated by the HTML parser.<\/li>\n\n\n\n<li>For lengths, you can&#8217;t use 0 to mean 0px (or another length unit); instead, you must use the number with the unit: <code>margin-top: calc(0px + 2rem);<\/code> is valid, while <code>margin-top: calc(0 + 2rem);<\/code> is invalid.<\/li>\n<\/ul>\n\n\n\n<p>In this article, you have learned all about the five math functions in CSS, how they work, and how you can use them to declare responsive and dynamic values in your stylesheets to build responsive and math-driven UIs. We encourage you to try them out in your next project.<\/p>\n\n\n\n<p>If you\u2019d like to read more informative articles from our blog, check out the related posts below:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/coderpad.io\/blog\/development\/what-you-never-learned-about-javascript-functions\/\">What You Never Learned about JavaScript Functions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/coderpad.io\/blog\/development\/everything-you-need-to-know-about-all-11-css-filters\/\">Everything You Need to Know about All 11 CSS Filters<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/coderpad.io\/blog\/development\/reduce-angular-bundle-size-with-santosh-yadav\/\">Dev Discussions: How to Reduce your Angular Bundle Size with Google Developers Expert Santosh Yadav<\/a><\/li>\n<\/ul>\n\n\n\n<p><a href=\"https:\/\/twitter.com\/Victor_codejs\" target=\"_blank\" rel=\"noopener\"><em>Victor<\/em><\/a><em> is a frontend developer and technical writer interested in the JAMStack. and has a knack for breaking down developer concepts to understandable bits for others.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS math functions are one of the powerful features of CSS. They are special CSS values that enable front-end developers to perform mathematical calculations and basic arithmetic directly within their CSS stylesheets. CSS has five math functions that allow you to perform basic arithmetic operations\u2014addition, subtraction, multiplication, comparison, and division on CSS numeric units such [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[9],"tags":[],"persona":[29],"blog-programming-language":[62],"keyword-cluster":[],"class_list":["post-9117","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development"],"acf":[],"_links":{"self":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts\/9117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/comments?post=9117"}],"version-history":[{"count":27,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts\/9117\/revisions"}],"predecessor-version":[{"id":34588,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts\/9117\/revisions\/34588"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/media\/9140"}],"wp:attachment":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/media?parent=9117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/categories?post=9117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/tags?post=9117"},{"taxonomy":"persona","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/persona?post=9117"},{"taxonomy":"blog-programming-language","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/blog-programming-language?post=9117"},{"taxonomy":"keyword-cluster","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/keyword-cluster?post=9117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}