{
    "componentChunkName": "component---src-templates-single-blog-js",
    "path": "/news/differences-between-html-and-css/",
    "result": {"data":{"wpPost":{"id":"cG9zdDo1ODcy","content":"\n<p>There are two fundamental languages for building any website: HTML and CSS. What&#8217;s their difference? Let&#8217;s dig in and find out.</p>\n\n\n\n<h2>Keeping It Simple &#8211; What is the difference between HTML and CSS?</h2>\n\n\n\n<p>HTML and CSS, while both being programming languages, are used for different purposes. HTML is the language that is used to create a web page, including text, links and images. It is also what you use when editing content on your website. CSS, on the other hand, has two main functions: it controls how elements of a webpage look like (elements include fonts, colours and sizes) as well as how they behave in certain circumstances- for example if an element should be fixed or scroll with the rest of the page).</p>\n\n\n\n<h3>What is HTML?</h3>\n\n\n\n<figure class=\"wp-block-image\"><span class=\"wp-image-5873 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:50%\"></span><img aria-hidden=\"true\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAAsTAAALEwEAmpwYAAACCUlEQVQozy2SO2/TUBTHvcSPOI4feThGaREFqVIlJD4HC7A1vtf32o6dUqoMXRASnRqVRIIOsCPlayS559oBFoRATLAwUKbOLCAkfNENXc5wnr//X0fpZdBOwU14Ly+cGPy8bKXcptAdFhaBdsK8BJoUOilrUubFEGTMJuBS5megdFMWZGBT2Dlat4dlkPP+wzcWYVujlY4LP+P9EehotTUCO+Y7R+tbh6yVltuHaydmik2YGTEtZHUMDcLVkDUpGPRd+/Gld/K7dfLLO/6h4cLAzIi4TYt6xE3CG6SwKSjdIbcp0xH387UZgZswLy06T3/eeSX2zqu98+r2S+E/uXQTrmPezUo3KSzKmwQcCooXgxNzA/NevjYJdyhrjb9eeyZuzqpgInoTcWNWBWfCyt4baNUdll5aNgi00lJetgjUI/4fphZyEy+t8bfOqXgwr+7Nxf25uPta+BPROPikh0sVgRoyA4OOpU2KE4OXFhqGTlbWI+7GzD34GJyJ3edVb1IFk7+7L0Rw+qcev9XRykkKi3A75u1hIbEbBFQEtRA0DGoIGuI6Ys7xxfWZ6E+r/lRsT0Xz0Rd1sJRckVSuYdDR5rJNwYy4GoKBQUNXEqT5+ef6+MIcf9fTD9pgKZNI0tZCGQ28McwkckZFoCO5QtssVhFog0Vtf6HtL7TBUpU4V2OyJPvlI/0Dshf5ZMIJbT8AAAAASUVORK5CYII=\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/74790a1baaf05f2241b32d6d5fd9aaf1/85b06/635de980-586d-11ea-9220-1a3211239c30.png 256w,\n/static/74790a1baaf05f2241b32d6d5fd9aaf1/bc282/635de980-586d-11ea-9220-1a3211239c30.png 512w,\n/static/74790a1baaf05f2241b32d6d5fd9aaf1/f1720/635de980-586d-11ea-9220-1a3211239c30.png 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/74790a1baaf05f2241b32d6d5fd9aaf1/85b06/635de980-586d-11ea-9220-1a3211239c30.png 256w,\n/static/74790a1baaf05f2241b32d6d5fd9aaf1/bc282/635de980-586d-11ea-9220-1a3211239c30.png 512w,\n/static/74790a1baaf05f2241b32d6d5fd9aaf1/f1720/635de980-586d-11ea-9220-1a3211239c30.png 1024w\" src=\"/static/74790a1baaf05f2241b32d6d5fd9aaf1/f1720/635de980-586d-11ea-9220-1a3211239c30.png\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/74790a1baaf05f2241b32d6d5fd9aaf1/85b06/635de980-586d-11ea-9220-1a3211239c30.png 256w,\n/static/74790a1baaf05f2241b32d6d5fd9aaf1/bc282/635de980-586d-11ea-9220-1a3211239c30.png 512w,\n/static/74790a1baaf05f2241b32d6d5fd9aaf1/f1720/635de980-586d-11ea-9220-1a3211239c30.png 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/74790a1baaf05f2241b32d6d5fd9aaf1/85b06/635de980-586d-11ea-9220-1a3211239c30.png 256w,\n/static/74790a1baaf05f2241b32d6d5fd9aaf1/bc282/635de980-586d-11ea-9220-1a3211239c30.png 512w,\n/static/74790a1baaf05f2241b32d6d5fd9aaf1/f1720/635de980-586d-11ea-9220-1a3211239c30.png 1024w\" src=\"/static/74790a1baaf05f2241b32d6d5fd9aaf1/f1720/635de980-586d-11ea-9220-1a3211239c30.png\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span><figcaption>It looks simple from the image, but it&#8217;s quite the opposite.</figcaption></figure>\n\n\n\n<p>HTML is an acronym of &#8220;HyperText Markup Language,&#8221; which is used for creating web pages and web applications. HTML stands for HyperText Markup Language, which is basically the language of webpages. It&#8217;s used by browsers to interpret text formatting and display them as well as embedded objects or images. This includes headers, paragraphs, lists, links/buttons etc. The code itself is written in lowercase letters with no spaces separating them (e.g., h1). It is free to use and doesn&#8217;t require any license.</p>\n\n\n\n<h4>What is CSS?</h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"wp-image-5875 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:56.25%\"></span><img aria-hidden=\"true\" src=\"data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAALABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAUDBP/EABUBAQEAAAAAAAAAAAAAAAAAAAMC/9oADAMBAAIQAxAAAAGrg5qOmDT/xAAbEAACAQUAAAAAAAAAAAAAAAABEgACAxMhMf/aAAgBAQABBQIneSCXStTFBz//xAAVEQEBAAAAAAAAAAAAAAAAAAACEP/aAAgBAwEBPwFKf//EABYRAAMAAAAAAAAAAAAAAAAAAAECEP/aAAgBAgEBPwELP//EABoQAAIDAQEAAAAAAAAAAAAAAAABEUFhAhD/2gAIAQEABj8CgvPOYsb0R//EABsQAQADAQADAAAAAAAAAAAAAAEAESExQWFx/9oACAEBAAE/IaahXueIWXgXitlg7f2MtU4Y6bWrnYaL1P/aAAwDAQACAAMAAAAQ5D//xAAXEQEBAQEAAAAAAAAAAAAAAAABABEx/9oACAEDAQE/EMVI5f/EABYRAQEBAAAAAAAAAAAAAAAAAAEAEf/aAAgBAgEBPxDYGb//xAAdEAEAAgICAwAAAAAAAAAAAAABESEAMUFRkcHh/9oACAEBAAE/EBFuJQKTEuIxqrVDw3SQ03eAIpd7YtZM5yT9xawmZFIdnveABoAeM//Z\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/9ecf8f5320870ab2904a2ea8c63e28a4/b95e4/5038219-1592866794232-16x9-1.jpg 256w,\n/static/9ecf8f5320870ab2904a2ea8c63e28a4/1779b/5038219-1592866794232-16x9-1.jpg 512w,\n/static/9ecf8f5320870ab2904a2ea8c63e28a4/87945/5038219-1592866794232-16x9-1.jpg 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/9ecf8f5320870ab2904a2ea8c63e28a4/b95e4/5038219-1592866794232-16x9-1.jpg 256w,\n/static/9ecf8f5320870ab2904a2ea8c63e28a4/1779b/5038219-1592866794232-16x9-1.jpg 512w,\n/static/9ecf8f5320870ab2904a2ea8c63e28a4/87945/5038219-1592866794232-16x9-1.jpg 1024w\" src=\"/static/9ecf8f5320870ab2904a2ea8c63e28a4/87945/5038219-1592866794232-16x9-1.jpg\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/9ecf8f5320870ab2904a2ea8c63e28a4/b95e4/5038219-1592866794232-16x9-1.jpg 256w,\n/static/9ecf8f5320870ab2904a2ea8c63e28a4/1779b/5038219-1592866794232-16x9-1.jpg 512w,\n/static/9ecf8f5320870ab2904a2ea8c63e28a4/87945/5038219-1592866794232-16x9-1.jpg 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/9ecf8f5320870ab2904a2ea8c63e28a4/b95e4/5038219-1592866794232-16x9-1.jpg 256w,\n/static/9ecf8f5320870ab2904a2ea8c63e28a4/1779b/5038219-1592866794232-16x9-1.jpg 512w,\n/static/9ecf8f5320870ab2904a2ea8c63e28a4/87945/5038219-1592866794232-16x9-1.jpg 1024w\" src=\"/static/9ecf8f5320870ab2904a2ea8c63e28a4/87945/5038219-1592866794232-16x9-1.jpg\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span><figcaption>If you think of HTML as the instructions/product, CSS is the packaging design it comes in</figcaption></figure>\n\n\n\n<p>CSS is a stylesheet language used to describe the presentation of a document in HTML format. It is independent of HTML and can be used with any XML-based markup language. The separation of HTML from CSS makes it easier to maintain sites and share style sheets across pages, and tailor pages to different environments. To style your HTML elements, you&#8217;ll use CSS properties that you set a value for. You then attach these properties to an HTML tag or class. CSS is used to make your HTML code look good and if you want your website to look good, use CSS.</p>\n\n\n\n<h5>Advantages of HTML</h5>\n\n\n\n<ul><li>HTML is a universal language that can be used to create web pages, emails, and other documents</li><li>You don&#8217;t need expensive software or design programs like Photoshop or InDesign in order to use HTML</li><li>The latest version of HTML (HTML5) allows designers more creative freedom when designing their layouts.</li></ul>\n\n\n\n<h5>Advantages of CSS</h5>\n\n\n\n<ul><li>CSS is easier to maintain</li><li>You can change the layout of your website without having to worry about breaking other parts</li><li>It&#8217;s more flexible than HTML for responsive design</li><li>CSS code is cleaner and faster, especially when it comes to working in teams</li><li>The syntax is simpler and less complicated than HTML</li></ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"wp-image-5877 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:66.796875%\"></span><img aria-hidden=\"true\" src=\"data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAANABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAABQABBP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAXAkeMRsj//EABwQAAICAgMAAAAAAAAAAAAAAAIRARMAAxIUMv/aAAgBAQABBQIpQ943bCDZzykUPn//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAEDAQE/AT//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAECAQE/AT//xAAYEAEBAQEBAAAAAAAAAAAAAAABAGEhMf/aAAgBAQAGPwJS8I2TLqxf/8QAGxABAAICAwAAAAAAAAAAAAAAAQARITFBYXH/2gAIAQEAAT8h2ooWU1afIIlmAxEhjhcNwPWI6I0FT//aAAwDAQACAAMAAAAQQC//xAAVEQEBAAAAAAAAAAAAAAAAAAAQEf/aAAgBAwEBPxCH/8QAFhEBAQEAAAAAAAAAAAAAAAAAABEB/9oACAECAQE/ELiP/8QAHRABAQACAwADAAAAAAAAAAAAAREAITFBYVFxsf/aAAgBAQABPxCrhCXjRcSV+8V/chcij6XJky12CcTj3DiGu0fTrIFgAPwaz//Z\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/0e80955eec9b47c31cd91eea782c812b/b95e4/pexels-negative-space-92904-scaled.jpg 256w,\n/static/0e80955eec9b47c31cd91eea782c812b/1779b/pexels-negative-space-92904-scaled.jpg 512w,\n/static/0e80955eec9b47c31cd91eea782c812b/87945/pexels-negative-space-92904-scaled.jpg 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/0e80955eec9b47c31cd91eea782c812b/b95e4/pexels-negative-space-92904-scaled.jpg 256w,\n/static/0e80955eec9b47c31cd91eea782c812b/1779b/pexels-negative-space-92904-scaled.jpg 512w,\n/static/0e80955eec9b47c31cd91eea782c812b/87945/pexels-negative-space-92904-scaled.jpg 1024w\" src=\"/static/0e80955eec9b47c31cd91eea782c812b/87945/pexels-negative-space-92904-scaled.jpg\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/0e80955eec9b47c31cd91eea782c812b/b95e4/pexels-negative-space-92904-scaled.jpg 256w,\n/static/0e80955eec9b47c31cd91eea782c812b/1779b/pexels-negative-space-92904-scaled.jpg 512w,\n/static/0e80955eec9b47c31cd91eea782c812b/87945/pexels-negative-space-92904-scaled.jpg 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/0e80955eec9b47c31cd91eea782c812b/b95e4/pexels-negative-space-92904-scaled.jpg 256w,\n/static/0e80955eec9b47c31cd91eea782c812b/1779b/pexels-negative-space-92904-scaled.jpg 512w,\n/static/0e80955eec9b47c31cd91eea782c812b/87945/pexels-negative-space-92904-scaled.jpg 1024w\" src=\"/static/0e80955eec9b47c31cd91eea782c812b/87945/pexels-negative-space-92904-scaled.jpg\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span><figcaption>CSS and HTML both have unique features, which compliment each other for best results</figcaption></figure>\n\n\n\n<h6>What Is the Difference Between The Languages Conclusion</h6>\n\n\n\n<p>HTML and CSS are often used in tandem for web design. In fact, one usually follows the other to bring together all of the elements on a page. HTML is primarily concerned with providing structures while CSS handles styling by adding colour, size, spacing etc., to content within those structures that have been outlined using HTML codes; hence why it&#8217;s called Cascading Style Sheets!</p>\n\n\n\n<p>HTML has long been considered as more versatile than its counterpart because it can be formatted into hyperlinks or tables whereas formatting via pure CSS does not allow this type of flexibility but rather allows you only access styles like font-size/font-weight which do nothing when trying to produce an interactive table from scratch.</p>\n\n\n\n<p>If you want to chat this through with us to find out what we can do in terms of coding and the languages used for your site (whilst also making it more carbon-friendly might we add!) then <a href=\"https://codeandcreate.co.uk/contact/\" target=\"_blank\" rel=\"noreferrer noopener\">get in touch</a> with us today. </p>\n\n\n\n<p></p>\n","slug":"differences-between-html-and-css","date":"14/06/21","title":"What Is the Difference Between HTML and CSS?","featuredImage":{"node":{"localFile":{"publicURL":"/static/828e775a2a199a65347f82392566d4f9/pexels-cottonbro-4065876-scaled.jpg"},"altText":"Digital programming languages offer different features- so what are they?"}},"author":{"node":{"name":"Josie Moran","slug":"jm"}},"seo":{"metaDesc":"HTML and CSS work together to create sites, but what do they actually mean, and do? And how are they different to each other?","title":"What Is the Difference Between HTML and CSS? - Code and Create"}}},"pageContext":{"id":"cG9zdDo1ODcy","postId":5872,"prevPost":{"id":"cG9zdDo1ODg4","databaseId":5888,"slug":"websites-contribute-to-climate-change"},"nextPost":{"id":"cG9zdDo1NzU2","databaseId":5756,"slug":"what-is-the-app-developer"}}},
    "staticQueryHashes": []}