{"id":26932,"date":"2024-11-14T15:23:55","date_gmt":"2024-11-14T14:23:55","guid":{"rendered":"https:\/\/www.digitizer.rs\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/"},"modified":"2024-11-14T15:43:51","modified_gmt":"2024-11-14T14:43:51","slug":"what-are-block-and-inline-elements-in-html-and-css","status":"publish","type":"post","link":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/","title":{"rendered":"What are block and inline elements in HTML and CSS?"},"content":{"rendered":"<div class=\"wpb-content-wrapper\">[vc_row full_width=&#8221;stretch_row&#8221; css=&#8221;.vc_custom_1587386989437{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221;][vc_column][vc_column_text css=&#8221;.vc_custom_1613587382944{padding-top: 50px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]<span style=\"color: #333333;\">In HTML, block and <em>inline<\/em> elements are the building blocks of web pages, each building block having a default display value. In the text, we have shown the basic characteristics of block and <em>inline<\/em> elements. <\/span><\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff6600;\"><strong>Block and inline elements<\/strong><\/span><\/h1>\n<p><span style=\"color: #333333;\">Block elements only appear within an element  &lt;Body&gt;  and use the provided HTML tag as a tag to define a section, for example  &lt;giant&gt;  or  &lt;p&gt;. Po\u010dinju u novim redovima, zauzimaju celu \u0161irinu stranice i mogu sadr\u017eati ugra\u0111ene elemente ili ponekad drugi nivo bloka elementi. <\/span><\/p>\n<p><span style=\"color: #333333;\"><em>An inline<\/em> element is a presentation feature that uses a provided HTML tag as an HTML tag to define a section, for example&lt; sleep&gt; or&lt; and&gt; . They do not start on a new line, occupy only the space bounded by the tags that define the element, and can only contain other embedded elements. <\/span><\/p>\n<p><span style=\"color: #333333;\">Now, keep in mind that while the understanding of block and <em>inline<\/em> elements is still relevant, the differences between block and <em>inline<\/em> elements are gone through HTML 4.01. These two categories have since been replaced by a different set of content categories. <\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #ff6600;\"><strong>How are block and inline elements different?<\/strong><\/span><\/h3>\n<p><span style=\"color: #333333;\">Knowing the difference between <em>inline<\/em> elements and block elements will help you immensely with your CSS and styling. Because each of these elements behaves in a particular way, it will be easier to get them to do what you want them to do if you have a good understanding of how they work. <\/span><\/p>\n<p><span style=\"color: #333333;\">If you don&#8217;t understand the different rules that apply to <em>inline<\/em> elements versus block elements, HTML and CSS can be incredibly frustrating. For example, block elements can contain other block-level elements as well as <em>inline<\/em> elements. However, <em>inline<\/em> elements can contain only <em>inline<\/em> elements.  <\/span><\/p>\n<p><span style=\"color: #333333;\">Which would mean that in  &lt;giant&gt;  element we can insert any element, regardless of whether it is a block or <em>an inline<\/em> dock, in <em>an inline<\/em> element for example   &lt;sleep&gt;  we can insert only <em>inline<\/em> elements e.g.  &lt;a&gt;,  &lt;and&gt;  etc.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #ff6600;\"><strong>What is the difference between embedded and block elements?<\/strong><\/span><\/h3>\n<p><span style=\"color: #333333;\">When examining embedded elements against a block, you&#8217;ll notice that embedded elements are usually text-based and block-level elements are usually structural.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #ff6600;\"><strong>Inline<\/strong> <strong>elements<\/strong><\/span><\/h2>\n<p><span style=\"color: #333333;\"><em>Inline<\/em> elements don&#8217;t start on a new line, meaning they line up next to each other on the same line if there&#8217;s enough room for them, because we can&#8217;t apply a CSS top and bottom margin rule to them, and we can&#8217;t give them a width or height. But, they can still be styled with left\/right margins as well as padding. <\/span><\/p>\n<ul>\n<li><span style=\"color: #333333;\">They only occupy the space limited by the tags that define the element.<\/span><\/li>\n<li><span style=\"color: #333333;\">It does not start on a new line.<\/span><\/li>\n<li><span style=\"color: #333333;\">They take as much width as needed.<\/span><\/li>\n<li><span style=\"color: #333333;\">They do not interrupt the flow of content.<\/span><\/li>\n<li><span style=\"color: #333333;\">They can only contain data.<\/span><\/li>\n<li><span style=\"color: #333333;\">May contain other <em>inlines<\/em><\/span><\/li>\n<li><span style=\"color: #333333;\">They are specified by CSS in the flow layout.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #333333;\">Some common <em>inline<\/em> elements are:<\/span><\/p>\n<p><span style=\"color: #333333;\">&lt;a&gt;&lt; button&gt;&lt; cite&gt;&lt;code&gt; &lt;given&gt; &lt;em&gt; &lt;and&gt; &lt;select&gt; &lt;sleep&gt; &lt;time&gt; &lt;the video&gt;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #333333;\">The image below shows the behavior of <em>inline<\/em> elements. All have a yellow border applied so you can see the width of the elements. <\/span>[\/vc_column_text][vc_single_image image=&#8221;23814&#8243; css_animation=&#8221;fadeIn&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1613583237711{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; img_hover=&#8221;fade-out&#8221;][vc_column_text css=&#8221;.vc_custom_1613586991601{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]<span style=\"color: #333333;\">As we can see in the image above, we made a couple of <em>inline<\/em> elements in the editor more precisely&lt; sleep&gt; tags in which we put numbers. In order to better see the behavior <em>of inline<\/em> elements, we gave each one 100% width and a certain height. <\/span>[\/vc_column_text][vc_single_image image=&#8221;23815&#8243; css_animation=&#8221;fadeIn&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1613583318474{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; img_hover=&#8221;fade-out&#8221;][vc_column_text css=&#8221;.vc_custom_1613586684114{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]<span style=\"color: #333333;\">As we talked about in the previous part of the blog, <em>inline<\/em> elements ignore the given width and height and occupy the width they think they should and line up next to each other. This gives us an indication that we need to pay attention to the rules of writing these elements in order to write CSS as easily as possible. <\/span><\/p>\n<p><span style=\"color: #333333;\"><strong> <\/strong><\/span><\/p>\n<h2><span style=\"color: #ff6600;\"><strong>Block elements<\/strong><\/span><\/h2>\n<p><span style=\"color: #333333;\">By default, a block-level element occupies the entire width of its parent container. When it reaches the edge of the container, it will drop below the other elements. So even if you only have one paragraph in&lt; body&gt; , it will still occupy the full width of the browser. That is, unless you set the body width. This also means that if you have short sentences in separate paragraph marks, each paragraph starts on a new line.    <\/span><\/p>\n<ul>\n<li><span style=\"color: #333333;\">They only appear within the element&lt; Body&gt; .<\/span><\/li>\n<li><span style=\"color: #333333;\">They start in a new row.<\/span><\/li>\n<li><span style=\"color: #333333;\">They occupy the entire width of the page<\/span><\/li>\n<li><span style=\"color: #333333;\">Have a line break before and after the element.<\/span><\/li>\n<li><span style=\"color: #333333;\">It can also contain <em>inline<\/em><\/span><\/li>\n<li><span style=\"color: #333333;\">Sometimes it can contain other block elements.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #333333;\">Some of the most common block elements are:<\/span><\/p>\n<p><span style=\"color: #333333;\">&lt;address&gt; &lt;article&gt; &lt;giant&gt; &lt;h1&gt; &lt;header&gt; &lt;li&gt; &lt;main&gt; &lt;nav&gt; &lt;ol&gt; &lt;p&gt; <\/span><span style=\"color: #333333;\">&lt;boards&gt;&lt; str&gt;<\/span>[\/vc_column_text][vc_single_image image=&#8221;23816&#8243; css_animation=&#8221;fadeIn&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1613586840654{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; img_hover=&#8221;fade-out&#8221;][vc_column_text css=&#8221;.vc_custom_1613586425223{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]<span style=\"color: #333333;\">In the image below we can see 4 block elements in the form of paragraphs.<\/span>[\/vc_column_text][vc_single_image image=&#8221;23817&#8243; css_animation=&#8221;fadeIn&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1613586854716{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; img_hover=&#8221;fade-out&#8221;][vc_column_text css=&#8221;.vc_custom_1613586348392{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]<span style=\"color: #333333;\">We can conclude that block elements behave the total opposite <em>of inline<\/em> elements, which means that they occupy the full width of the page, start on a new line and accept CSS rules such as width, height, margins and padding.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">For more news and interesting stories from digital marketing,<\/span> <span style=\"color: #ff6600;\"><a style=\"color: #ff6600;\" href=\"https:\/\/www.digitizer.rs\/en\/news-stories\/\"><span style=\"font-weight: 400;\">visit our blog page<\/span><\/a><\/span> <span style=\"font-weight: 400;\">or<\/span> <span style=\"color: #ff6600;\"><a style=\"color: #ff6600;\" href=\"https:\/\/www.instagram.com\/webdigitizer\/\"><span style=\"font-weight: 400;\">follow our Instagram profile.<\/span><\/a><\/span><\/span>[\/vc_column_text][\/vc_column][\/vc_row][vc_row full_width=&#8221;stretch_row&#8221;][vc_column][vc_single_image source=&#8221;external_link&#8221; custom_src=&#8221;https:\/\/www.digitizer.rs\/blog\/digitizer-line.jpg&#8221;][vc_column_text]<em><span style=\"color: #333333;\">Made by Milo\u0161 Stojanovi\u0107 &#8211; Senior Web Developer @Digitizer<\/span><\/em>[\/vc_column_text][\/vc_column][\/vc_row][vc_row full_width=&#8221;stretch_row&#8221; css=&#8221;.vc_custom_1587387018476{padding-top: 30px !important;padding-right: 30px !important;padding-bottom: 30px !important;padding-left: 30px !important;}&#8221;][vc_column][vc_btn title=&#8221;Back to News &amp; Stories&#8221; color=&#8221;black&#8221; align=&#8221;center&#8221; i_icon_fontawesome=&#8221;fa fa-bars&#8221; add_icon=&#8221;true&#8221; link=&#8221;url:https%3A%2F%2Fwww.digitizer.rs%2Fnews-stories%2F|title:Back%20to%20NEWS%20%26amp%3B%20STORIES|&#8221;][\/vc_column][\/vc_row]\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221; css=&#8221;.vc_custom_1587386989437{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221;][vc_column][vc_column_text css=&#8221;.vc_custom_1613587382944{padding-top: 50px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]In HTML, block and inline elements are the building blocks of web pages, each building block having a default display value. In the text, we have shown the basic characteristics of block and inline elements. &nbsp; Block and inline elements Block elements&hellip;<\/p>\n","protected":false},"author":10,"featured_media":23818,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4384],"tags":[4378,4388,4398,4403,4407,4380,4412,4376,4411],"post_series":[],"class_list":["post-26932","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website","tag-content-en","tag-digital-en","tag-google-en","tag-internet-en","tag-online-en","tag-search-en-2","tag-web-design-en","tag-website-optimization-en-2","tag-wordpress-en","entry","has-media"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What are block and inline elements in HTML and CSS? - Digitizer<\/title>\n<meta name=\"description\" content=\"In HTML, block and inline elements are the building blocks of web pages, each with a default display value. Read about the basic characteristics of block and inline elements.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are block and inline elements in HTML and CSS? - Digitizer\" \/>\n<meta property=\"og:description\" content=\"In HTML, block and inline elements are the building blocks of web pages, each with a default display value. Read about the basic characteristics of block and inline elements.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/\" \/>\n<meta property=\"og:site_name\" content=\"Digitizer\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webdigitizer\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-14T14:23:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-14T14:43:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg\" \/>\n<meta name=\"author\" content=\"nebojsa.radovanovic@digitizer.rs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"What are block and inline elements in HTML and CSS? - Digitizer\" \/>\n<meta name=\"twitter:description\" content=\"In HTML, block and inline elements are the building blocks of web pages, each with a default display value. Read about the basic characteristics of block and inline elements.\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"nebojsa.radovanovic@digitizer.rs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/\"},\"author\":{\"name\":\"nebojsa.radovanovic@digitizer.rs\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#\\\/schema\\\/person\\\/25e8bb23e8c57d47a985e7a45c11a753\"},\"headline\":\"What are block and inline elements in HTML and CSS?\",\"datePublished\":\"2024-11-14T14:23:55+00:00\",\"dateModified\":\"2024-11-14T14:43:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/\"},\"wordCount\":1234,\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg\",\"keywords\":[\"content\",\"digital\",\"google\",\"internet\",\"online\",\"search\",\"web design\",\"website optimization\",\"wordpress\"],\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/\",\"name\":\"What are block and inline elements in HTML and CSS? - Digitizer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg\",\"datePublished\":\"2024-11-14T14:23:55+00:00\",\"dateModified\":\"2024-11-14T14:43:51+00:00\",\"description\":\"In HTML, block and inline elements are the building blocks of web pages, each with a default display value. Read about the basic characteristics of block and inline elements.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg\",\"contentUrl\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg\",\"width\":1024,\"height\":535},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/what-are-block-and-inline-elements-in-html-and-css\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"News &#038; Stories\",\"item\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"What are block and inline elements in HTML and CSS?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/\",\"name\":\"Digitizer\",\"description\":\"Google Ads - Social - Email Marketing - Web Design - Video Editing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#organization\",\"name\":\"Digitizer\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/Digitizer-digitalni-marketing-izrada-dizajn-sajtova-graficki-motion-dizajn.jpg\",\"contentUrl\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/Digitizer-digitalni-marketing-izrada-dizajn-sajtova-graficki-motion-dizajn.jpg\",\"width\":1000,\"height\":466,\"caption\":\"Digitizer\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webdigitizer\",\"https:\\\/\\\/www.instagram.com\\\/webdigitizer\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webdigitizer\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/digitizer\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#\\\/schema\\\/person\\\/25e8bb23e8c57d47a985e7a45c11a753\",\"name\":\"nebojsa.radovanovic@digitizer.rs\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g\",\"caption\":\"nebojsa.radovanovic@digitizer.rs\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What are block and inline elements in HTML and CSS? - Digitizer","description":"In HTML, block and inline elements are the building blocks of web pages, each with a default display value. Read about the basic characteristics of block and inline elements.","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:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/","og_locale":"en_US","og_type":"article","og_title":"What are block and inline elements in HTML and CSS? - Digitizer","og_description":"In HTML, block and inline elements are the building blocks of web pages, each with a default display value. Read about the basic characteristics of block and inline elements.","og_url":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/","og_site_name":"Digitizer","article_publisher":"https:\/\/www.facebook.com\/webdigitizer","article_published_time":"2024-11-14T14:23:55+00:00","article_modified_time":"2024-11-14T14:43:51+00:00","og_image":[{"url":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg","type":"","width":"","height":""}],"author":"nebojsa.radovanovic@digitizer.rs","twitter_card":"summary_large_image","twitter_title":"What are block and inline elements in HTML and CSS? - Digitizer","twitter_description":"In HTML, block and inline elements are the building blocks of web pages, each with a default display value. Read about the basic characteristics of block and inline elements.","twitter_misc":{"Written by":"nebojsa.radovanovic@digitizer.rs","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/#article","isPartOf":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/"},"author":{"name":"nebojsa.radovanovic@digitizer.rs","@id":"https:\/\/www.digitizer.rs\/en\/#\/schema\/person\/25e8bb23e8c57d47a985e7a45c11a753"},"headline":"What are block and inline elements in HTML and CSS?","datePublished":"2024-11-14T14:23:55+00:00","dateModified":"2024-11-14T14:43:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/"},"wordCount":1234,"publisher":{"@id":"https:\/\/www.digitizer.rs\/en\/#organization"},"image":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg","keywords":["content","digital","google","internet","online","search","web design","website optimization","wordpress"],"articleSection":["Website"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/","url":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/","name":"What are block and inline elements in HTML and CSS? - Digitizer","isPartOf":{"@id":"https:\/\/www.digitizer.rs\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/#primaryimage"},"image":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg","datePublished":"2024-11-14T14:23:55+00:00","dateModified":"2024-11-14T14:43:51+00:00","description":"In HTML, block and inline elements are the building blocks of web pages, each with a default display value. Read about the basic characteristics of block and inline elements.","breadcrumb":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/#primaryimage","url":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg","contentUrl":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-block-i-inline-elementi-u-html-i-css.jpg","width":1024,"height":535},{"@type":"BreadcrumbList","@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.digitizer.rs\/en\/"},{"@type":"ListItem","position":2,"name":"News &#038; Stories","item":"https:\/\/www.digitizer.rs\/en\/news-stories\/"},{"@type":"ListItem","position":3,"name":"What are block and inline elements in HTML and CSS?"}]},{"@type":"WebSite","@id":"https:\/\/www.digitizer.rs\/en\/#website","url":"https:\/\/www.digitizer.rs\/en\/","name":"Digitizer","description":"Google Ads - Social - Email Marketing - Web Design - Video Editing","publisher":{"@id":"https:\/\/www.digitizer.rs\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.digitizer.rs\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.digitizer.rs\/en\/#organization","name":"Digitizer","url":"https:\/\/www.digitizer.rs\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitizer.rs\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.digitizer.rs\/pictures\/Digitizer-digitalni-marketing-izrada-dizajn-sajtova-graficki-motion-dizajn.jpg","contentUrl":"https:\/\/www.digitizer.rs\/pictures\/Digitizer-digitalni-marketing-izrada-dizajn-sajtova-graficki-motion-dizajn.jpg","width":1000,"height":466,"caption":"Digitizer"},"image":{"@id":"https:\/\/www.digitizer.rs\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webdigitizer","https:\/\/www.instagram.com\/webdigitizer\/","https:\/\/www.tiktok.com\/@webdigitizer","https:\/\/www.linkedin.com\/company\/digitizer"]},{"@type":"Person","@id":"https:\/\/www.digitizer.rs\/en\/#\/schema\/person\/25e8bb23e8c57d47a985e7a45c11a753","name":"nebojsa.radovanovic@digitizer.rs","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g","caption":"nebojsa.radovanovic@digitizer.rs"}}]}},"_links":{"self":[{"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/posts\/26932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/comments?post=26932"}],"version-history":[{"count":0,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/posts\/26932\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/media\/23818"}],"wp:attachment":[{"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/media?parent=26932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/categories?post=26932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/tags?post=26932"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/post_series?post=26932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}