
{"id":4654,"date":"2021-05-03T00:00:00","date_gmt":"2021-05-02T22:00:00","guid":{"rendered":"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/uncategorized\/what-is-html-a-beginners-guide\/"},"modified":"2023-05-10T19:44:39","modified_gmt":"2023-05-10T17:44:39","slug":"what-is-html-a-beginners-guide","status":"publish","type":"post","link":"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/web-development\/what-is-html-a-beginners-guide\/","title":{"rendered":"What is HTML? A Beginner\u2019s Guide"},"content":{"rendered":"<p>Essentially, HTML is a basic programming language used for creating websites. If you\u2019re considering a career in web design or development, knowing this language is an absolute must<em>\u2014<\/em>but even in other professions, like digital marketing<strong>,<\/strong> a bit of HTML can come in handy.<\/p>\n<p>Once you\u2019ve got the hang of it, writing and working with HTML is a breeze. If you\u2019ve never touched it, however, it can seem like one of the internet\u2019s biggest mysteries.<\/p>\n<p>In this post, we\u2019ll provide the ultimate introduction to basic HTML.<\/p>\n<p>Before we start, <strong>don\u2019t panic.<\/strong>\u00a0This guide is aimed at anyone and everyone<em>\u2014<\/em>no tech knowledge required!<\/p>\n<p>Ready to get started with HTML? Let\u2019s go.<\/p>\n<ol>\n<li><a href=\"#what-does-html-mean\">What does HTML mean?<\/a><\/li>\n<li><a href=\"#how-does-html-work\">How does HTML work?<\/a><\/li>\n<li><a href=\"#writing-html-the-basics\">Writing HTML: The basics<\/a><\/li>\n<li><a href=\"#learning-html-what-next\">Learning HTML: What next?<\/a><\/li>\n<\/ol>\n<h3><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"600\" class=\"alignnone wp-image-9570 size-full\" src=\"http:\/\/careerfoundry.inbearbeitung.de\/en\/wp-content\/uploads\/2021\/05\/HTML_opens_the_door_to_frontend_development.jpg\" alt=\"A web developer sits at their workstation, looking at HTML code and markup on two screens.\" title=\"\" srcset=\"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-content\/uploads\/2021\/05\/HTML_opens_the_door_to_frontend_development.jpg 1200w, https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-content\/uploads\/2021\/05\/HTML_opens_the_door_to_frontend_development-300x150.jpg 300w, https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-content\/uploads\/2021\/05\/HTML_opens_the_door_to_frontend_development-1024x512.jpg 1024w, https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-content\/uploads\/2021\/05\/HTML_opens_the_door_to_frontend_development-768x384.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/h3>\n<h2 id=\"what-does-html-mean\">1. What does HTML mean?<\/h2>\n<p>HTML stands for Hypertext Markup Language<em>\u2014<\/em>and, as previously mentioned, it\u2019s a computer language used for the creation of websites. HTML describes how a document should be displayed by an internet browser. It was created by physicist Tim Berners-Lee in the late 1990s and, like all programming languages, has been continuously revised and updated over the years.<\/p>\n<p><strong>Hypertext<\/strong><\/p>\n<p>This is basically text that contains links to other texts. You can click on these links to jump to other pages or sections of text.<\/p>\n<p><strong>Markup<\/strong><\/p>\n<p>This part refers to HTML tags and the text inside them. We\u2019ll talk more about tags later.<\/p>\n<p><strong>Language<\/strong><\/p>\n<p>Finally, HTML is a <strong>language<\/strong><em>\u2014<\/em>pretty self-explanatory, right?<\/p>\n<h2 id=\"how-does-html-work\">2. How does HTML work?<\/h2>\n<p>Quite simply, HTML works by telling the internet browser how to display the page.<\/p>\n<p>First, the author uses a <strong>basic text editor<\/strong> on the computer (such as TextEdit for Mac) to create their HTML document. The author then fills their HTML document with a series of HTML elements, using HTML tags.<\/p>\n<h3>What are HTML tags?<\/h3>\n<p>Essentially, HTML tags are markers which tell the browser how the enclosed text should be displayed. Here&#8217;s a simple example:<\/p>\n<p><code>&lt;b&gt;This text should be bold.&lt;\/b&gt;<\/code><\/p>\n<p>In this case, <code>&lt;b&gt;<\/code> and <code>&lt;\/b&gt;<\/code> are the HTML tags. They are marking the enclosed text as \u201cbold\u201d<em>\u2014<\/em>hence, the \u201cmarkup\u201d element of HTML. We\u2019ll explain how to actually write tags in the next section.<\/p>\n<p>Once the document is complete, the author saves it as a html file and opens it in their internet browser. The browser then reads the file and follows the instructions to render the page in a certain way<em>\u2014<\/em>as provided by the HTML tags.<\/p>\n<p>So, when you use the \u201cbold\u201d tags, you\u2019re essentially telling the browser to display this sentence in bold: <code>&lt;b&gt;This text should be bold.&lt;\/b&gt;<\/code><\/p>\n<p>When the browser reads this, it knows to display the sentence as described: <strong>This text should be bold.<\/strong><\/p>\n<p>Of course, the HTML tags themselves are not displayed in the browser (unless you make a mistake writing them!).<\/p>\n<h2 id=\"writing-html-the-basics\">3. Writing HTML: The basics<\/h2>\n<h3 id=\"brtags\">Tags<\/h3>\n<p>HTML tags are written inside angle brackets, and tend to come in pairs<em>\u2014<\/em>so, they consist of both an opening and a closing tag.<\/p>\n<p>For example, the <code>&lt;p&gt;<\/code>\u00a0tag is used to indicate a new paragraph. The opening tag is written as follows: <code>&lt;p&gt;<\/code>. After this tag, you write your paragraph. To finish, add your closing tag, which is the same as the opening tag but with a forward slash. In this case, it would be: <code>&lt;\/p&gt;<\/code>.<\/p>\n<p>A pair of tags with text enclosed is known as an element. Here are some examples of common HTML elements and their corresponding tags:<\/p>\n<p><code>&lt;h1&gt;This is a heading&lt;\/h1&gt;<\/code><\/p>\n<p><code>&lt;p&gt;This is a paragraph&lt;\/p&gt;<\/code><\/p>\n<p><code>&lt;b&gt;This is a bold sentence&lt;\/b&gt;<\/code><\/p>\n<p><code>&lt;i&gt;This is an italic sentence&lt;\/i&gt;<\/code><\/p>\n<p>Most HTML tags follow this open-and-closing pattern, but there are also some tags which only need an opening tag to be valid. These are known as <strong>singleton tags<\/strong>, and include things like <code>&lt;br&gt;<\/code> to indicate a line break, and <code>&lt;img&gt;<\/code> for including an image. The browser will understand and act on these tags without the need for a closing tag.<\/p>\n<style type=\"text\/css\">.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }<\/style>\n<div class=\"embed-container\"><iframe src=\"https:\/\/www.youtube.com\/embed\/3leKYvYL5aw\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<h6 id=\"nbsp-2\"><\/h6>\n<h3 id=\"attributes\">Attributes<\/h3>\n<p>You can also assign attributes to your HTML elements. Attributes provide extra information about the text contained within the tags. For example, if you wanted to hyperlink the phrase \u201cmy website\u201d in your HTML document, you would first use the tag pairs <strong>&lt;a&gt;<\/strong> and <strong>&lt;\/a&gt;<\/strong> to specify that the text should be linked. To tell the browser where the text should be linked to<em>\u2014<\/em>i.e. the link address<em>\u2014<\/em>you use the <strong>href attribute<\/strong>. Attributes, like the text, are always enclosed within the tags:<\/p>\n<p><strong>HTML:<\/strong> <code>&lt;a href=\u201dhttps:\/\/www.google.com\u201d&gt;My website&lt;\/a&gt;<\/code><\/p>\n<p><strong>Displayed as:<\/strong> <a href=\"https:\/\/www.google.com\" target=\"_blank\" rel=\"nofollow noopener\" data-schema-attribute=\"\">My website<\/a><\/p>\n<p>This is just a very simple introduction<em>\u2014<\/em>you\u2019ll learn more about attributes as you delve deeper into HTML, but for now we\u2019ll stick to the very basics.<\/p>\n<h3 id=\"writing-a-html-document\">Writing a HTML document<\/h3>\n<p>When writing your HTML document, you need to tell the browser that it\u2019s dealing with a HTML file<em>\u2014<\/em>otherwise, it won\u2019t be able to display the page. Each HTML doc must therefore contain the &lt;html&gt; and &lt;body&gt; tags. Don\u2019t forget to close these tags at the very end of the document!<\/p>\n<p>Here\u2019s an example of what your HTML document might look like in the text editor:<\/p>\n<pre><code>&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;This is the title of my html document&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n&lt;h1&gt;This is a large heading&lt;\/h1&gt;\r\n&lt;p&gt;This is the first paragraph.&lt;\/p&gt;\r\n&lt;b&gt;&lt;p&gt;This is the second paragraph, which will be displayed in bold.&lt;\/p&gt;&lt;\/b&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<p>To make sure that you\u2019ve written your HTML correctly, you can use the <a href=\"https:\/\/www.w3schools.com\/html\/tryit.asp?filename=tryhtml_basic\" target=\"_blank\" rel=\"noopener\">W3schools Tryit Editor tool<\/a>. Simply enter your HTML and click \u201crun\u201d and you can see how your HTML would be displayed in the browser.<\/p>\n<p><img decoding=\"async\" src=\"\/en\/wp-content\/uploads\/old-blog-uploads\/versions\/screen-shot-2018-03-16-at-1-32-34-pm---x----1423-283x---.png\" alt=\"\" title=\"\"><\/p>\n<h2 id=\"learning-html-what-next\">4. Learning HTML: What next?<\/h2>\n<p>There\u2019s loads more you can do with HTML<em>\u2014<\/em>from embedding images to defining the styles and colors of different page elements.<\/p>\n<p>When it comes to creating professional, fully functional websites, HTML goes hand in hand with CSS and JavaScript. <a href=\"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/web-development\/what-is-css\/\" target=\"_blank\" rel=\"noopener\">CSS stands for Cascading Style Sheets<\/a>, and is used to style the HTML elements of your webpage. <a href=\"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/web-development\/introduction-to-javascript\/\" data-schema-attribute=\"\">JavaScript is another programming language<\/a> which enables you to introduce interactive elements to your basic webpage. Together, HTML, CSS and JavaScript form the foundation for standard web technologies.<\/p>\n<p>Before moving on to the more complex topics of CSS and <a href=\"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/web-development\/how-long-does-it-take-to-learn-javascript\/\" target=\"_blank\" rel=\"noopener\">JavaScrip<\/a>t, make sure you\u2019re completely comfortable with HTML. <a href=\"https:\/\/www.w3schools.com\/html\/html_intro.asp\" target=\"_blank\" rel=\"noopener\" data-schema-attribute=\"\">W3schools<\/a> provides a comprehensive guide to each and every aspect of HTML, and you can also complete practice exercises and take their HTML quiz to check your progress.<\/p>\n<p>Ready for more? Check out some of these articles:<\/p>\n<ul>\n<li><a href=\"\/en\/blog\/web-development\/a-beginners-guide-to-the-10-most-popular-programming-languages\/\">Our Beginner\u2019s Guide to the 10 Most Popular Programming Languages<\/a><\/li>\n<li><a href=\"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/web-development\/intro-to-swift\/\">Swift: A Step-By-Step Guide<\/a><\/li>\n<li><a href=\"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/web-development\/python-real-examples\/\">13 Real-World Examples of Python in Web Development<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>HTML is one of the most important languages on the web &#8211; but what exactly is it, and how does it work? Find out in our ultimate beginner&#8217;s guide.<\/p>\n","protected":false},"author":5,"featured_media":13074,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-4654","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development"],"acf":{"homepage_category_featured":false},"modified_by":"Rash SEO","_links":{"self":[{"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/posts\/4654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/comments?post=4654"}],"version-history":[{"count":1,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/posts\/4654\/revisions"}],"predecessor-version":[{"id":25422,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/posts\/4654\/revisions\/25422"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/media\/13074"}],"wp:attachment":[{"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/media?parent=4654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/categories?post=4654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/tags?post=4654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}