{"id":7847,"date":"2022-09-22T08:42:31","date_gmt":"2022-09-22T08:42:31","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=7847"},"modified":"2022-09-22T08:42:31","modified_gmt":"2022-09-22T08:42:31","slug":"html-introduction-2","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/09\/22\/html-introduction-2\/","title":{"rendered":"HTML Introduction"},"content":{"rendered":"\n<p>HTML (HyperText Markup Language) is a primary markup language for creating websites. It consists of a series of codes used to structure texts, images, and other content to be displayed in the browser.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"html-versions-2\">HTML Versions<\/h2>\n\n\n\n<p>HTML was first developed by British physicist&nbsp;Tim Berners-Lee&nbsp;in 1990. Since that time, there have been many versions of HTML.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><thead><tr><th>Version<\/th><th>Year<\/th><\/tr><\/thead><tbody><tr><td>HTML<\/td><td>1991<\/td><\/tr><tr><td>HTML+<\/td><td>1993<\/td><\/tr><tr><td>HTML 2.0<\/td><td>1995<\/td><\/tr><tr><td>HTML 3.2<\/td><td>1997<\/td><\/tr><tr><td>HTML 4.01<\/td><td>1999<\/td><\/tr><tr><td>XHTML 1.0<\/td><td>2000<\/td><\/tr><tr><td>HTML5<\/td><td>2012<\/td><\/tr><tr><td>XHTML5<\/td><td>2013<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"basic-html-concepts-5\">Basic HTML Concepts<\/h2>\n\n\n\n<p>Elements,&nbsp;tags, and&nbsp;attributes&nbsp;are basic concepts in HTML.<\/p>\n\n\n\n<p>HTML element is a main structural unit of a web page. HTML tags are used to define HTML elements, and attributes provide additional information about these elements.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"html-tags-7\">HTML Tags<\/h2>\n\n\n\n<p>HTML tags are used to structure website content (text, hyperlinks, images, media, etc). Tags are not displayed in the browsers, they only \u201cinstruct\u201d browsers how to show the content of the web page.<\/p>\n\n\n\n<p>There are over 100 tags in HTML, and you can find them in our HTML tutorial.<\/p>\n\n\n\n<p>HTML tags are written in angle brackets (e.g&nbsp;&lt;html&gt;).<\/p>\n\n\n\n<p>Most of HTML tags comes in pairs, like &lt;p&gt; &lt;\/p&gt; tags. The first tag in a pair called the start (opening) tag, and the second tag is the end (closing) tag. The information is written between opening and closing tags.<\/p>\n\n\n\n<p>However, there are unpaired, or empty tags, which only have opening tag. (for ex.&nbsp;&lt;img\/&gt;).<\/p>\n\n\n\n<p>Let\u2019s consider an example.<\/p>\n\n\n\n<p>If you need to define a paragraph (which is an element ) you should use&nbsp;&lt;p&gt;&nbsp;tag. The content of the paragraph you should write between opening (&lt;p&gt;) and closing (&lt;\/p&gt;) tags.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-9\">Example<\/h3>\n\n\n\n<p>This is a paragraph between opening &lt;p&gt; and closing &lt;\/p&gt; tags.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"html-attributes-11\">HTML Attributes<\/h2>\n\n\n\n<p>HTML attributes are added to an HTML element to provide additional information about it. For example, if you define an image with &lt;img\/&gt; tag, you can use&nbsp;src,&nbsp;height,&nbsp;width&nbsp;attributes to provide information about its source, height, width correspondingly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"structure-of-an-html-document-13\">Structure of an HTML Document<\/h2>\n\n\n\n<p>The&nbsp;&lt;!DOCTYPE html&gt;&nbsp;declaration specifies the HTML version used in the document. Every HTML document should start with this declaration so that the browsers can render the page compliant with HTML standards.<\/p>\n\n\n\n<p>There exist several types of &lt;!DOCTYPE&gt; defined for each HTML version.<\/p>\n\n\n\n<p>All the content on the webpage is written between &lt;html&gt; &lt;\/html&gt; tags. The &lt;html&gt; element is used to give information to the browsers that it is an HTML document.<\/p>\n\n\n\n<p>The&nbsp;&lt;head&gt;&nbsp;element contains metadata (data about the HTML document), character set, document title, styles, etc. This data is not shown to viewers.<\/p>\n\n\n\n<p>The&nbsp;&lt;title&gt;&nbsp;displays the title of the website in the browser tab when the page is loaded. The title is written between &lt;title&gt; &lt;\/title&gt; tags.<\/p>\n\n\n\n<p>The&nbsp;&lt;body&gt;&nbsp;element contains the content of the webpage (text, images, videos, etc). The content is written between &lt;body&gt; &lt;\/body&gt;.<\/p>\n\n\n\n<p>Heading elements contain different types of headings. There are six heading levels &#8211;&nbsp;&lt;h1&gt;-&lt;h6&gt;, where &lt;h1&gt; is the most important and &lt;h6&gt; least important tags.<\/p>\n\n\n\n<p>The &lt;p&gt; element contains paragraphs of the text. The content is written between &lt;p&gt; and &lt;\/p&gt; tags.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-15\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE HTML&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\"&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;h1&gt;The most important heading.&lt;\/h1&gt;\n    &lt;p&gt; The first paragraph.&lt;\/p&gt;\n    &lt;h2&gt; Subheading&lt;\/h2&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"result-17\">Result<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.w3docs.com\/uploads\/media\/default\/0001\/01\/d3a115194092d1ffac032960e6cb6c1e920d95fd.png\" alt=\"structure-example\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML (HyperText Markup Language) is a primary markup language for creating websites. It consists of a series of codes used to structure texts, images, and other content to be displayed in the browser. HTML Versions HTML was first developed by British physicist&nbsp;Tim Berners-Lee&nbsp;in 1990. Since that time, there have been many versions of HTML. Version [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[285],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/7847"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=7847"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/7847\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=7847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=7847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=7847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}