{"id":6048,"date":"2021-07-12T02:00:00","date_gmt":"2021-07-12T00:00:00","guid":{"rendered":"https:\/\/alvarotrigo.com\/epa\/how-to-create-a-youtube-video-background-with-css\/"},"modified":"2024-02-08T00:31:43","modified_gmt":"2024-02-07T23:31:43","slug":"how-to-create-a-youtube-video-background-with-css","status":"publish","type":"post","link":"https:\/\/alvarotrigo.com\/blog\/how-to-create-a-youtube-video-background-with-css\/","title":{"rendered":"How to create a YouTube video background with CSS"},"content":{"rendered":"\n<p>Using an embedded YouTube video as a background is a common technique in nowadays websites. <a href=\"https:\/\/alvarotrigo.com\/blog\/background-video-css\/\">You can use the HTML5 video tag to create a background video<\/a>. However, that would mean hosting a video online somewhere. And I don\u2019t know you, but in my case, I always try to avoid that option. Youtube video embeds are a good alternative to self-hosted videos. They save bandwidth and they load super fast. But, since they are in an <code>iframe<\/code>, they can be a bit more tricky to deal with. In this tutorial, we&#8217;ll be going over how to create a YouTube video background for our website.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"getting-the-html-for-the-embedded-youtube-video\">Getting the HTML for the embedded Youtube video<\/h2>\n\n\n<p>The first thing we have to do is grabbing the embed code of the YouTube video that we want to display in the background. Just go to your chosen video and click on the \u201cshare\u201d button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" data-src=\"https:\/\/alvarotrigo.com\/blog\/assets\/imgs\/YouTube-share-img.jpeg\" alt=\"YouTube Share\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p>Several options will pop up. Click on the \u201cembed\u201d one.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" data-src=\"https:\/\/alvarotrigo.com\/blog\/assets\/imgs\/YouTube-embed.jpeg\" alt=\"YouTube Embed\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p>This will open up a new box on your screen with the code for the video you want to embed. Disable the \u201cShow player controls\u201d in the embed options and then click on the \u201ccopy\u201d button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" data-src=\"https:\/\/alvarotrigo.com\/blog\/assets\/imgs\/YouTube-embed-code.jpeg\" alt=\"YouTube Embed Code\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p>Now create a <code>div<\/code> container and paste there your embed code.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div<\/span> <span class=\"hljs-attr\">class<\/span>=<span class=\"hljs-string\">\"video-container\"<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">iframe<\/span> <span class=\"hljs-attr\">width<\/span>=<span class=\"hljs-string\">\"560\"<\/span> <span class=\"hljs-attr\">height<\/span>=<span class=\"hljs-string\">\"315\"<\/span> <span class=\"hljs-attr\">src<\/span>=<span class=\"hljs-string\">\"https:\/\/www.youtube-nocookie.com\/embed\/Yj2iELI6OeI?controls=0\"<\/span> <span class=\"hljs-attr\">title<\/span>=<span class=\"hljs-string\">\"YouTube video player\"<\/span> <span class=\"hljs-attr\">frameborder<\/span>=<span class=\"hljs-string\">\"0\"<\/span> <span class=\"hljs-attr\">allow<\/span>=<span class=\"hljs-string\">\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"<\/span> <span class=\"hljs-attr\">allowfullscreen<\/span>&gt;<\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">iframe<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">div<\/span>&gt;<\/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\">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>We will remove all the unnecessary properties, which are all except <code>controls=0<\/code>  (the  <code>width<\/code> and <code>height<\/code> properties also have to be removed) Finally we will add two extra properties: <code>autoplay=1<\/code>, <code>mute=1<\/code> and <code>playsinline=1<\/code>.<\/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\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div<\/span> <span class=\"hljs-attr\">class<\/span>=<span class=\"hljs-string\">\"video-container\"<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">iframe<\/span> <span class=\"hljs-attr\">src<\/span>=<span class=\"hljs-string\">\"https:\/\/www.youtube.com\/embed\/Yj2iELI6OeI?&amp;autoplay=1&amp;mute=1&amp;playsinline=1\"<\/span>&gt;<\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">iframe<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">div<\/span>&gt;<\/span>\n<\/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>Notice how the parameter <code>playsinline<\/code> is required in order to play inline videos in iOS and other mobile devices. More on the <a href=\"https:\/\/developers.google.com\/youtube\/player_parameters#playsinline\" target=\"_blank\" rel=\"noopener nofollow\">Youtube IFrame Player API<\/a>.<\/p>\n\n\n\n<p>The final result is a <code>video-container<\/code> div that has an <code>iframe<\/code> which contains the source of the YouTube video. This video will autoplay on mute when one of our users visits our webpage.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"centering-the-youtube-video-background-with-css\">Centering the YouTube video background with CSS<\/h2>\n\n\n<p>To make the <code>iframe<\/code> a fullpage YouTube video background we&#8217;ll be applying some CSS properties to the parent <code>video-container<\/code> as well as the <code>iframe<\/code>:<\/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\"><span class=\"hljs-selector-class\">.video-container<\/span>{\n  <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-number\">100vw<\/span>;\n  <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-number\">100vh<\/span>;\n}\n    \n<span class=\"hljs-selector-tag\">iframe<\/span> {\n  <span class=\"hljs-attribute\">position<\/span>: absolute;\n  <span class=\"hljs-attribute\">top<\/span>: <span class=\"hljs-number\">50%<\/span>;\n  <span class=\"hljs-attribute\">left<\/span>: <span class=\"hljs-number\">50%<\/span>;\n  <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-number\">100vw<\/span>;\n  <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-number\">100vh<\/span>;\n  <span class=\"hljs-attribute\">transform<\/span>: <span class=\"hljs-built_in\">translate<\/span>(-<span class=\"hljs-number\">50%<\/span>, -<span class=\"hljs-number\">50%<\/span>);\n}\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>The CSS properties applied on the parent container scale it 100% of the screen viewport&#8217;s height and width. The <code>iframe<\/code> which is inside is also scaled to 100% of the screen viewport&#8217;s height and width.<\/p>\n\n\n\n<p>The <code>iframe<\/code> will have an absolute position that will allow us to position the <code>iframe<\/code> exactly where we want it. In this case, it&#8217;s placed on top of the parent container. The positioning attributes <code>top<\/code> and <code>left<\/code> are used to set the location of the upper left corner of the <code>iframe<\/code> in the center of the screen.<\/p>\n\n\n\n<p>To get our YouTube video background centered, we use <code>transform<\/code> to apply a negative top margin of half the video&#8217;s height, and a negative left margin of half the video&#8217;s width. This will offset the <code>iframe<\/code> relative to the element (not the parent container) centering the YouTube video background vertically and horizontally.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"making-our-video-fullscreen\">Making our video fullscreen<\/h2>\n\n\n<p>As you can see now, our YouTube video is placed in the center of the screen but it has not been scaled to be the full width of our website. To do we so will use the <code>aspect-ratio<\/code> media feature:<\/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\"><span class=\"hljs-keyword\">@media<\/span> (<span class=\"hljs-attribute\">min-aspect-ratio:<\/span> <span class=\"hljs-number\">16<\/span>\/<span class=\"hljs-number\">9<\/span>) {\n  <span class=\"hljs-selector-class\">.video-container<\/span> <span class=\"hljs-selector-tag\">iframe<\/span> {\n    <span class=\"hljs-comment\">\/* height = 100 * (9 \/ 16) = 56.25 *\/<\/span>\n    <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-number\">56.25vw<\/span>;\n  }\n}\n    \n<span class=\"hljs-keyword\">@media<\/span> (<span class=\"hljs-attribute\">max-aspect-ratio:<\/span> <span class=\"hljs-number\">16<\/span>\/<span class=\"hljs-number\">9<\/span>) {\n  <span class=\"hljs-selector-class\">.video-container<\/span> <span class=\"hljs-selector-tag\">iframe<\/span> {\n    <span class=\"hljs-comment\">\/* width = 100 \/ (9 \/ 16) = 177.777777 *\/<\/span>\n    <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-number\">177.78vh<\/span>;\n  }\n}\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<p>The aspect ratio is the width to height ratio of the viewport. <strong>16<\/strong>:<strong>9<\/strong> denotes a width of 16 units and a height of 9 units. 16:9 is the standard widescreen aspect ratio that is used on the web. Generally, most videos are shot in this aspect ratio.<br>\nThe 16:9 aspect ratio corresponds to 56.25 of the viewport&#8217;s height and 177.78 of the viewport&#8217;s width. To create a 16:9 ratio, we must divide 9 by 16 (0.5625 or 56.25%). This allows the browser to determine the video&#8217;s dimensions based on the width of its parent container. This will maintain the aspect ratio of the Youtube video as it scales to fit the background of the webpage.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"adding-overlay-text-on-top-of-our-video\">Adding overlay text on top of our video<\/h2>\n\n\n<p>The text to be displayed over our background Youtube video is put inside a separate <code>div<\/code> like so:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div<\/span> <span class=\"hljs-attr\">id<\/span>=<span class=\"hljs-string\">\"text\"<\/span>&gt;<\/span>    \n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">h1<\/span>&gt;<\/span>Use a youtube video as a full screen background with CSS<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">h1<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">div<\/span>&gt;<\/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\">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>The CSS is applied on the <code>text<\/code> div to move it along with any of its contents on top of the video:<\/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\"><span class=\"hljs-selector-id\">#text<\/span>{\n  <span class=\"hljs-attribute\">position<\/span>: absolute;\n  <span class=\"hljs-attribute\">color<\/span>: <span class=\"hljs-number\">#FFFFFF<\/span>;\n  <span class=\"hljs-attribute\">left<\/span>: <span class=\"hljs-number\">50%<\/span>;\n  <span class=\"hljs-attribute\">top<\/span>: <span class=\"hljs-number\">50%<\/span>;\n  <span class=\"hljs-attribute\">transform<\/span>: <span class=\"hljs-built_in\">translate<\/span>(-<span class=\"hljs-number\">50%<\/span>, -<span class=\"hljs-number\">50%<\/span>);\n}\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>We have applied the same CSS properties as we did on the <code>iframe<\/code> to center the <code>text-div<\/code> in the center of our webpage. You&#8217;ll want to make sure that the text which is placed on top of our YouTube video background has high contrast so that it can easily be read.<\/p>\n\n\n\n<p>You can also place other elements such as <a href=\"https:\/\/alvarotrigo.com\/blog\/best-css-button-hover-effects\/\">hover buttons<\/a> and use the same CSS properties to place them on top of our YouTube video background.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"adding-the-youtube-embedded-loop-option\">Adding the Youtube embedded loop option<\/h2>\n\n\n<p>If you use a short video you&#8217;ll notice how the related videos show once the video is finished. To avoid this we have to use a little trick. Adding the parameter <code>loop=1<\/code> to the source of the video is no longer enough, we have to add more parameter and this is the <code>playlist<\/code> one to which we will assign the ID of the youtube video.<\/p>\n\n\n\n<p>So, if we have <a href=\"https:\/\/www.youtube.com\/watch?v=Yj2iELI6OeI\" target=\"_blank\" rel=\"noopener nofollow\">this video<\/a> we should look for its id, which is the code after the <code>\/embed\/<\/code> part or after <code>?v=<\/code> when accessing the video throught youtube. Then, we simply paste it on our <code>playlist<\/code> param:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">&amp;playlist=Yj2iELI6OeI&amp;loop=1\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><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>Our final embedded video shoul look like this:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\"> <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">iframe<\/span> <span class=\"hljs-attr\">src<\/span>=<span class=\"hljs-string\">\"https:\/\/www.youtube.com\/embed\/Yj2iELI6OeI?controls=0&amp;autoplay=1&amp;mute=1&amp;playsinline=1&amp;playlist=Yj2iELI6OeI&amp;loop=1\"<\/span>&gt;<\/span>\n <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">iframe<\/span>&gt;<\/span>\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><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<h2 class=\"wp-block-heading\" id=\"result\">Result<\/h2>\n\n\n<p>And here&#8217;s the result: a beautifull full-screen video using Youtube!<\/p>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_vYmKxYB\" data-src=\"\/\/codepen.io\/anon\/embed\/vYmKxYB?height=450&amp;theme-id=1&amp;slug-hash=vYmKxYB&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed vYmKxYB\" title=\"CodePen Embed vYmKxYB\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n<p>Creating a YouTube video background is one of the simplest solutions to make a difference and stand out from your web competitors. Users who enter your website will be immersed in a unique visual experience that will not easily forget.<\/p>\n\n\n\n<p>This technique can be quite impressive with full-screen videos on websites using <a href=\"https:\/\/alvarotrigo.com\/fullPage\/\">fullPage.js<\/a>. Check out <a href=\"https:\/\/alvarotrigo.com\/fullPage\/examples\/videoBackground.html\">this fullscreen videos example<\/a>!<\/p>\n\n\n\n<p>Now that you have learned how to create a YouTube video background, it is your time to \u201cshow off\u201d! If you plan to start a business, creating a landing page with a YouTube video background would be an easy solution that will cause at the same time a great impression on your possible customers. Share with us your websites when you finish. We would love to see them!<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"related-articles%3A\">Related articles:<\/h2>\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/background-video-css\/\">How to create a video background with CSS<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/how-to-create-a-fullscreen-video-with-css-and-html\/\">How to create a fullscreen video with CSS and HTML<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/download-youtube-video-chromebook\/\">How to download a Youtube video on Chromebook<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will learn how to set a fullscreen Youtube video as a background using CSS and HTML<\/p>\n","protected":false},"author":1,"featured_media":6047,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[106],"tags":[9,17,67],"class_list":["post-6048","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","tag-css","tag-web","tag-web-design"],"acf":[],"_links":{"self":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts\/6048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/comments?post=6048"}],"version-history":[{"count":4,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts\/6048\/revisions"}],"predecessor-version":[{"id":9578,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts\/6048\/revisions\/9578"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/media\/6047"}],"wp:attachment":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/media?parent=6048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/categories?post=6048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/tags?post=6048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}