{
  "Introduction to HTML": [
    {
      "title": "HTML Introduction",
      "description": "HTML is short abbreviation of hypertext markup language.HTML is used to design web pages and applications. It primarily builds static webpages and serves as the structural skeleton for modern websites and web applications.",
      "sub_description": "What is HTML?In simple terms, HTML is the fundamental building block used to design and organize website content.",
      "additional_info": "Breaking down the term HyperText Markup Language:",
      "content": [
        {
          "type": "list",
          "items": [
            "<b>HyperText:</b> This refers to a system that links different pieces of text, allowing users to navigate between sections of the same page or to different web pages effortlessly.",
            "<b>Markup Language:</b> A computer language that applies structure and formatting to a text document using tags. These tags are processed by a browser or software to display the content in a particular format."
          ]
        },
        {
          "type": "heading",
          "level": "",
          "text": ""
        },
        {
          "type": "textarea",
          "text": "<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title>Webcooks HtML Tutorial</title>\n\t</head>\n\t<body>\n\t\t<h1>HTML Tutorial</h1>\n\t\t<p>Let's learn about HTML.</p>\n\t</body>\n</html>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Tags used:"
        },
        {
          "type": "list",
          "items": [
            "&lt;!DOCTYPE html&gt; is used to declare the document as an HTML5 document",
            "&lt;html&gt; A root element of an HTML page is &lt;html&gt;",
            "&lt;title&gt; is the element used to display the title on the browser’s title bar for an HTML document",
            "&lt;body&gt; This tag contains all visible elements like headings, paragraphs, images etc. It is the body of the HTML page which contains all the visible content for the HTML document that makes a webpage."
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "HTML Element:"
        },
        {
          "type": "paragraph",
          "text": "An html element starts with an opening tag, some content and a closing tag."
        },
        {
          "type": "list",
          "items": [
            "The opening tag consists of the element's name enclosed in angle brackets. It marks the beginning of the element and where its effects take place.",
            "A closing tag is the same as an opening tag except a forward slash precedes the element name. It marks the end of the element and stops its effects.",
            "The content refers to what’s inside the element, which could be text, other elements, or a mix of both."
          ]
        },
        {
          "type": "textarea",
          "text": "<p>\n\tThis is a paragraph.\n</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "What are HTML Attributes?"
        },
        {
          "type": "paragraph",
          "text": "HTML elements may include attributes to provide extra information regarding an element. Attributes are included in the opening tag and have the name-value format. HTML attributes are typically optional but can add useful information to elements."
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in\">Visit Webcooks</a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "HTML Features:"
        },
        {
          "type": "paragraph",
          "text": "HTML is a text-based language used to build web pages. It has several important features that make it popular for web development:"
        },
        {
          "type": "list",
          "items": [
            "<b>Standard Language:</b> HTML is the standard for creating and structuring web pages.It uses elements like headings, paragraphs, lists, and tables to mark up the content.",
            "<b>Supports Multimedia:</b>  HTML supports text, images, audio, and video; all of them create web pages rich, interactive, and exciting.",
            "<b>Works with Other Technologies:</b>  HTML can be combined with CSS for their styling and JavaScript for adding more functionality to web pages.",
            "<b>Browser Compatibility:</b> Web pages created with HTML can be viewed on any browser or device, making it highly versatile.",
            "<b>Constantly Evolving:</b> HTML is an open standard, regularly updated by developers to improve and add new features."
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Cons of HTML: "
        },
        {
          "type": "paragraph",
          "text": "Here are some disadvantages of using HTML:"
        },
        {
          "type": "list",
          "items": [
            "<b>Text-Based:</b> HTML is a text-based language, which can sometimes make it difficult to read and write code.",
            "<b>Limited for Complex Tasks:</b> HTML alone isn’t powerful enough to handle advanced features and interactivity in modern web pages.",
            "<b>Challenging to Maintain:</b> As websites grow larger, maintaining and updating HTML code can become more difficult."
          ]
        }
      ]
    },
    {
      "title": "HTML Comments",
      "description": "HTML comments - add notes or explanations that are not displayed by the browser, and therefore invisible to users. These comments are helpful for developers to explain parts of the code, organize the structure, or leave reminders.",
      "sub_description": "Also can be used to temporarily hide content like heading tags from being displayed.This way, the code remains visible to the developer, but the content is hidden from users.",
      "additional_info": "Comments can span across multiple lines for detailed explanations.<br>Syntax:<br>&lt;!--Comment text content--&gt;",
      "content": [
        {
          "type": "textarea",
          "text": "<!-- This is a comment -->"
        },
        {
          "type": "paragraph",
          "text": "<b>There are two types of comments:</b><br><li>Single-line Comment</li><li>Multi-line Comment</li>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Single line Comment:"
        },
        {
          "type": "paragraph",
          "text": "A single-line comment is used to comment out a short piece of text or code. It begins with &lt;!-- and ends with --&gt;."
        },
        {
          "type": "textarea",
          "text": "<!-- This is a single line comment -->"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Multi line Comment:"
        },
        {
          "type": "paragraph",
          "text": "A multi-line comment is used when you need to add more detailed explanations that span multiple lines.It begins with &lt;!-- and ends with --&gt;, everything between these tags which the browser will ignore."
        },
        {
          "type": "textarea",
          "text": "<!-- This is a  \n\t Multi line\n\t\t comment -->"
        }
      ]
    }
  ],
  "HTML Basics": [
    {
      "title": "HTML Title",
      "description": "The &lt;title&gt; tag defines the title of an HTML document.Generally, it is displayed at the top of a browser window or in the tab in which a web page is opened. This gives a short description of the content or topic of a site, and hence helps users to know what its content is about.",
      "sub_description": "The &lt;title&gt; tag is to be placed inside the <head> section of an HTML file. Apart from being visible in the browser tab, the title is also important for SEO (Search Engine Optimization), as search engines use the title to understand and rank the webpage in search results.",
      "additional_info": "Syntax:<br>&lt;head&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt; Document’ title&lt;/title&gt;<br>&lt;/head&gt;",
      "content": [
        {
          "type": "textarea",
          "text": "<!DOCTYPE html>\n<html>\n<head>\n\t<title>HTML Title</title>\n</head>\n<body>\n\n\tYour website content...\n\n</body>\n</html>"
        }
      ]
    },
    {
      "title": "HTML Headings",
      "description": "HTML headings are used to describe headings or subheadings on an HTML page. There are six heading tags in HTML: &lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, &lt;h4&gt;, &lt;h5&gt;, and &lt;h6&gt;.The size of the heading varies from the biggest at &lt;h1&gt;, through to &lt;h6&gt;. ",
      "sub_description": " As headings, they are block-level elements, meaning they begin at the start of a line and span across the full width of the parent element. ",
      "additional_info": "Headings are an amazing element both in terms of UX experience as well as search engine optimization (SEO).While search engines will make use of headings to understand how a piece of material is structured and what the content is about, users often skim headings to get a quick overview of the layout of the page.",
      "content": [
        {
          "type": "list",
          "items": [
            "&lt;h1&gt; should be reserved for the main heading or title of the page.",
            "&lt;h2&gt; is for section headings.",
            "&lt;h3&gt;, &lt;h4&gt;, &lt;h5&gt;, and &lt;h6&gt; follow in decreasing importance, helping to organize content in a hierarchical structure."
          ]
        },
        {
          "type": "textarea",
          "text": "<h1>Heading 1</h1>\n<h2>Heading 2</h2>\n<h3>Heading 3</h3>\n<h4>Heading 4</h4>\n<h5>Heading 5</h5>\n<h6>Heading 6</h6>"
        }
      ]
    },
    {
      "title": "HTML Paragraph",
      "description": "The HTML <p> tag defines paragraphs in web pages. As it is a block-level element, the paragraph will always start a line. This ensures that text within a &lt;p&gt; tag is separated from other elements on the page, creating a clear and organized structure.",
      "sub_description": "One of the useful features of HTML paragraphs is that they automatically remove any extra spaces or blank lines between words or sentences. This ensures that the text remains clean and properly formatted without manual adjustments.",
      "additional_info": "Overall, the &lt;p&gt; tag is essential for organizing content into readable sections, enhancing the structure and appearance of web pages.",
      "content": [
        {
          "type": "textarea",
          "text": "<p>This is a paragraph.</p>\n<p>This is second paragraph.</p>"
        }
      ]
    },
    {
      "title": "HTML Styles",
      "description": "The style attribute is used to apply inline styling to an HTML element, allowing you to customize its appearance directly. This attribute can control various visual properties such as text color, font size, background color, and more.",
      "sub_description": "For example, the style attribute can be used to change the color of text, adjust the font-size, or set a specific background-color for an element. ",
      "additional_info": "The style attribute allows you to quickly add CSS styling to individual elements without creating a separate stylesheet, offering flexibility in how content is presented. However, for larger projects, it's typically better to use external or internal stylesheets for easier maintenance.",
      "content": [
        {
          "type": "textarea",
          "text": "<h1 style=\"color:red;\">This is a heading</h1>\n<p style=\"font-size:10px;\">This is a paragraph</p>"
        },
        {
          "type": "heading",
          "level": "2",
          "text": "Color property: "
        },
        {
          "type": "paragraph",
          "text": "In HTML, color attribute in style attribute is used to declare the color of the text inside an element. You can apply any color by specifying the name of the color, using hexadecimal values, RGB values, or other color formats."
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Ways to Set Color: "
        },
        {
          "type": "list",
          "items": [
            "<b>Color Names:</b> Common colors like red, blue, green, etc.",
            "<b>Hexadecimal Codes:</b> Colors can be expressed with hex codes, like #ff0000 for red.",
            "<b>RGB (Red, Green, Blue):</b> Define colors using rgb(255, 0, 0) format, where each number represents the intensity of red, green, and blue."
          ]
        },
        {
          "type": "textarea",
          "text": "<h1 style=\"color:red;\">This is a heading</h1>\n<h1 style=\"color:#ff0000;\">This is a heading</h1>\n<h1 style=\"color:rgb(255, 0, 0);\">This is a heading</h1>"
        },
        {
          "type": "heading",
          "level": "2",
          "text": "Background-color property:"
        },
        {
          "type": "paragraph",
          "text": "In HTML, the background-color attribute in style attribute declares the background color of an element.This property allows you to change the background color of elements like paragraphs, divs, headers, and more, enhancing the visual appearance of your web page."
        },
        {
          "type": "heading",
          "level": "4",
          "text": " Background color can be specified in several ways:"
        },
        {
          "type": "list",
          "items": [
            "<b>Color Names:</b> Use predefined color names like red, blue, or green.",
            "<b>Hex Codes:</b> Use hexadecimal color codes such as #ff0000 for red. RGB: Define colors using RGB values such as rgb(255, 0, 0) for red.",
            "<b>RGB Values:</b> Define colors using RGB values, such as rgb(255, 0, 0) for red.",
            "<b>RGBA:</b> The same as RGB but with an added alpha value for transparency, such as rgba(255, 0, 0, 0.5)."
          ]
        },
        {
          "type": "textarea",
          "text": "<div style=\"background-color:red;\">This is a div</div>\n<div style=\"background-color:#ff0000;\">This is a div</div>\n<div style=\"background-color:rgb(255, 0, 0);\">This is a div</div>"
        },
        {
          "type": "heading",
          "level": "2",
          "text": "Font-size:"
        },
        {
          "type": "paragraph",
          "text": "The font-size property in the style attribute serves to give the size of text for an HTML element. This means you can modify how big or small the text will look on a web page and at the same time improve readability and design. "
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Font size can be set using several units of measurement:"
        },
        {
          "type": "list",
          "items": [
            "<b>Pixels (px):</b> A fixed size. For example, font-size: 16px; will render the text at 16 pixels.",
            "<b>Ems (em):</b>Relative size, proportional to the parent element's font size. For example, font-size: 1.5em; means the text will be 1.5 times the size of its parent element’s font size.",
            "<b>Percentages (%):</b> Another relative size, where font-size: 120%; means the text will be 120% of the parent element’s font size.",
            "<b>Rems (rem):</b> Similar to ems, but relative to the root (html) font size. For example, font-size: 2rem; would make the text twice the size of the root font size."
          ]
        },
        {
          "type": "textarea",
          "text": "<p style=\"font-size:20px\">Hello World</p>\n<p style=\"font-size:2em\">Hello World</p>\n<p style=\"font-size:20%\">Hello World</p>\n<p style=\"font-size:2rem\">Hello World</p>"
        }
      ]
    },
    {
      "title": "HTML Formatting",
      "description": "Formatting elements in HTML are used to style text and provide emphasis, helping to convey meaning and improve readability. These elements allow you to alter the appearance of text, such as making it bold or italicized, and are essential for creating visually engaging web pages.",
      "sub_description": "This adds special meaning to a text.This allowing it to stand out and communicate importance more effectively.",
      "additional_info": "HTML formatting elements:",
      "content": [
        {
          "type": "list",
          "items": [
            "<b>Bold text</b> - &lt;b&gt;&lt;/b&gt;",
            "<b>Strong text</b>- &lt;strong&gt;&lt;/strong&gt;",
            "<b>Italics text</b>- &lt;i&gt;&lt;/i&gt;",
            "<b>Emphasized text</b>- &lt;em&gt;&lt;/em&gt;",
            "<b>Smaller text</b>- &lt;small&gt;&lt;/small&gt;",
            "<b>Deleted text</b>- &lt;del&gt;&lt;/del&gt;",
            "<b>Inserted text</b>- &lt;ins&gt;&lt;/ins&gt;",
            "<b>Subscript text</b>- &lt;sub&gt;&lt;/sub&gt;",
            "<b>Superscript text</b>- &lt;sup&gt;&lt;/sup&gt;"
          ]
        },
        {
          "type": "paragraph",
          "text": "Below is a detailed explanation of each formatting element:"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Bold tag:"
        },
        {
          "type": "paragraph",
          "text": "This tag is used to make a text bold. This doesn’t add any importance to text.<br>Syntax:<br> &lt;b&gt;Content text&lt;/b&gt;"
        },
        {
          "type": "textarea",
          "text": "<b>This is bold text</b>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Strong tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;strong&gt; tag indicates that text is of significant importance. Unlike the &lt;b&gt; tag, which only styles text in bold, the &lt;strong&gt; tag implies a stronger meaning, making it ideal for emphasizing key points or critical information.<br>Syntax:<br> &lt;strong&gt;Content text&lt;/strong&gt;"
        },
        {
          "type": "textarea",
          "text": "<strong>This is strong text</strong>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Italic tag:"
        },
        {
          "type": "paragraph",
          "text": "This tag displays text inside the tag in italics. This changes the mood of the text inside the &lt;i&gt; &lt;/i&gt; tag.<br>Syntax:<br> &lt;i&gt;Content text&lt;/i&gt;"
        },
        {
          "type": "textarea",
          "text": "<i>This text is Italic</i>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Emphasized tag:"
        },
        {
          "type": "paragraph",
          "text": "This &lt;em&gt; tag is used to define emphasized text. Example: In font-size: 1.5em;, this means that the text will now be 1.5 times as large as the declared font size of the parent element. "
        },
        {
          "type": "textarea",
          "text": "<em>Emphasized Text</em>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Mark tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;mark&gt; tag is used to highlight or mark text that is important or relevant.By default, text enclosed in this tag appears with a yellowish background.<br>Syntax:<br>&lt;mark&gt;Content text&lt;/mark&gt;"
        },
        {
          "type": "textarea",
          "text": "<mark>This is Mark text</mark>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Small tag:"
        },
        {
          "type": "paragraph",
          "text": "This tag is used to display some of your texts in a reduced font size. This tag is often employed to present secondary information, such as disclaimers, footnotes, or copyright notices, without overwhelming the main content.<br>Syntax:<br>&lt;small&gt;Content text&lt;/small&gt;"
        },
        {
          "type": "textarea",
          "text": "<small>This text is Small</small>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Delete tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;del&gt; tag is used to display text that has been deleted, and to indicate this, a line is passed through the text. This tag is particularly useful for showing changes in documents, such as corrections or updates.<br>Syntax:<br>&lt;del&gt;Content text&lt;/del&gt;"
        },
        {
          "type": "textarea",
          "text": "<del>This text is deleted</del>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Insert tag: "
        },
        {
          "type": "paragraph",
          "text": "The &lt;ins&gt; tag is used to display text that has been inserted, and it is shown using an underline beneath the text. This tag is particularly helpful for indicating additions or updates to content, making it clear to readers what new information has been added.<br>Syntax:<br>&lt;ins&gt;Content text&lt;/ins&gt;"
        },
        {
          "type": "textarea",
          "text": "<ins>Content text</ins>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Superscript tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;sup&gt; tag is used to display text in superscript, which appears above the normal line and is usually in a smaller font size. This tag is commonly used for representing mathematical exponents, footnotes, or other annotations where the text needs to be raised relative to the baseline.<br>Syntax:<br>&lt;sup&gt;Content text&lt;/sup&gt;"
        },
        {
          "type": "textarea",
          "text": "<sup>Content text</sup>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Subscript tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;sub&gt; tag is used to define text in subscript. The text within the tag is displayed below the normal line and is sometimes shorter in font size. This tag is commonly utilized in mathematical expressions, chemical formulas, and annotations where the text needs to appear lower than the baseline.<br>Syntax:<br>&lt;sub&gt;Content text&lt;/sub&gt;"
        },
        {
          "type": "textarea",
          "text": "<sub>Content text</sub>"
        }
      ]
    },
    {
      "title": "Quotation and Citation Elements in HTML",
      "description": "In HTML, quotations and citations are used to display text taken from other sources. There are specific tags that help format these quotes properly, whether it's a short inline quote or a longer block of text.",
      "sub_description": "Using these tags correctly ensures that quotes are easy to read and that sources are clearly acknowledged.",
      "additional_info": "This includes tags which are used to display quotations and their variations like:",
      "content": [
        {
          "type": "list",
          "items": [
            "&lt;q&gt;",
            "&lt;blockqoute&gt;",
            "&lt;cite&gt;",
            "&lt;abbr&gt;",
            "&lt;bdo&gt;",
            "&lt;address&gt;"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;q&gt; tag:"
        },
        {
          "type": "paragraph",
          "text": "This tag is used to write short quotations in html. Browsers usually add double quotes(quotation) around the quotation."
        },
        {
          "type": "textarea",
          "text": "<q>About us - The Industrial Training Company In Amritsar<br>We, at Webcooks excel in training and nurturing young minds to develop dynamic websites and web apps with intuitive user interface without compromising their speed and efficiency during the peak hours.</q>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;blockquote&gt; tag:"
        },
        {
          "type": "paragraph",
          "text": "This tag is used for block-level long quotations. We can use cite attribute to define if the quote has been taken from another source. This is used to display quote from other sources also."
        },
        {
          "type": "textarea",
          "text": "<blockquote>About us - The Industrial Training Company In Amritsar<br>We, at Webcooks, excel in training and nurturing young minds to develop dynamic websites and web apps with intuitive user interfaces without compromising their speed and efficiency during peak hours.</blockquote>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;cite&gt; tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;cite&gt; element is used to reference the title of any creative work, such as books, movies, songs, paintings, or any other artistic or scholarly work. It helps to underlines titles in the form of making them conspicuous to ordinary text. Most browsers will display text within the &lt;cite&gt; tag in italics, making it visually clear that the text is a title or reference."
        },
        {
          "type": "textarea",
          "text": "<cite>Webcooks</cite> - The Industrial Training Company In Amritsar"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;abbr&gt; tag:"
        },
        {
          "type": "paragraph",
          "text": "The <abbr> element is used to define abbreviations or acronyms within your HTML content. This tag not only helps present shortened forms of words clearly but also provides a way to include additional information through the title attribute. This is particularly useful for translation systems, browsers, and search engines, which can interpret the full meaning of the abbreviation."
        },
        {
          "type": "textarea",
          "text": "<p><abbr title=\"Non-governmental organization\">NGO</abbr> is any non-profit, \n\t\tvoluntary group of individuals </p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;bdo&gt; tag:"
        },
        {
          "type": "paragraph",
          "text": "The bdo element is the acronym for Bi-Directional Override. It overrides the default flow of text in a web page to render properly when content contains languages that use different directions of text, such as Hebrew or Arabic. By using the dir attribute, you can force the text to be displayed from left to right (ltr) or right to left (rtl), regardless of the page's overall direction."
        },
        {
          "type": "textarea",
          "text": "<bdo dir=\"rtl\">This text is displayed right-to-left using the <bdo> tag.</bdo>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;address&gt; tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;address&gt; element is used to define contact information for the author, owner, or entity responsible for a document or article. This can include physical addresses, email addresses, phone numbers, URLs, or social media handles. It is typically used at the bottom of web pages or articles to provide user contact details."
        },
        {
          "type": "paragraph",
          "text": "Browsers usually display the content within the &lt;address&gt; tag in italics and add line breaks before and after the element, making it stand out from the rest of the text."
        },
        {
          "type": "textarea",
          "text": "<address>Webcooks: 23, IInd Floor, D-Block Ranjit Avenue, Near Starbucks, Amritsar (Punjab), 143001</address>"
        }
      ]
    },
    {
      "title": "HTML Colors",
      "description": "In HTML, colors can be specified using the style attribute within any HTML tag. Different colors can be assigned to different elements such as text, backgrounds, borders, etc. ",
      "sub_description": "Colors can be used to highlight interactive elements like buttons or links, guiding users towards key actions and improving the overall navigation experience.",
      "additional_info": "Colors can be defined in several ways, including color names, hexadecimal, RGB, or HSL.",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "There are three common ways to apply colors in HTML:"
        },
        {
          "type": "list",
          "items": [
            "Text Color",
            "Background Color",
            "Border Color"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Text Color:"
        },
        {
          "type": "paragraph",
          "text": "In HTML, the color of the text can be customized using the color property within the style attribute of any tag. This allows you to change the default text color to any color value, such as color names, hexadecimal values, or RGB codes."
        },
        {
          "type": "paragraph",
          "text": "Syntax: <br>&lt;h1 style=”color:red”&gt;Text content&lt;/h1&gt;"
        },
        {
          "type": "textarea",
          "text": "<h3 style=\"color:red\">Text content</h3>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Background Color:"
        },
        {
          "type": "paragraph",
          "text": "The background color of a particular HTML element can be defined using the property, called background-color in the style attribute for HTML.This property allows customization of the background for various HTML elements, such as paragraphs, divs, or the entire webpage."
        },
        {
          "type": "paragraph",
          "text": "Syntax: <br>&lt;h1 style=”background-color:yellow”&gt;Text content&lt;/h1&gt;"
        },
        {
          "type": "textarea",
          "text": "<div style=\"background-color:yellow\">Text content</div>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Border Color:"
        },
        {
          "type": "paragraph",
          "text": "HTML uses the border-color property in defining the color that would surround an HTML element.It is applied using the style attribute. However, before setting the border color, a border must first be defined. Both the border's width, style, and color can be defined simultaneously using the border shorthand property."
        },
        {
          "type": "paragraph",
          "text": "Syntax: <br>&lt;h1 style=”border:1px solid red”&gt;Text content&lt;/h1&gt;"
        },
        {
          "type": "textarea",
          "text": "<div style=\"border:2px solid red\">Text content</div>"
        },
        {
          "type": "heading",
          "level": "2",
          "text": "There are 3 ways to define colors in html:"
        },
        {
          "type": "list",
          "items": [
            "RGB(Red, green and blue)",
            "HEX(hexadecimal)",
            "HSL(Hue saturation and lightness)"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "RBG colors:"
        },
        {
          "type": "paragraph",
          "text": "The RGB color model in HTML is used to define colors based on a mixture of Red, Green, and Blue values.Every color is created by combining different levels of intensity for these three basic colors. That's to say, every color value, say red or green, is composed with an integer number that can run between 0 or no intensity, and 255 which is complete intensity."
        },
        {
          "type": "paragraph",
          "text": "Syntax: <br> rgb(red, green, blue)"
        },
        {
          "type": "textarea",
          "text": "<h1 style=\"color:rgb(255, 255, 255)\">Text content</h1>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "How RGB works?"
        },
        {
          "type": "list",
          "items": [
            "Red (R), Green (G), and Blue (B) values are combined to create a specific color.",
            "Integer ranging between 0-or fully transparent-and 1-full opacity.",
            "There are 16,777,216 possible color combinations (256 * 256 * 256) using the RGB model."
          ]
        },
        {
          "type": "paragraph",
          "text": "In addition to the standard RGB model, HTML supports RGBA, where the 'A' stands for Alpha, representing the color's opacity level. This allows control over the transparency of colors. The alpha value is a number between 0 (completely transparent) and 1 (fully opaque)."
        },
        {
          "type": "textarea",
          "text": " <h1 style=\"color:rgb(255, 0, 0)\">Text content</h1> "
        },
        {
          "type": "heading",
          "level": "4",
          "text": "HEX Colors:"
        },
        {
          "type": "paragraph",
          "text": "Hexadecimal (or Hex) color codes in HTML are used to define colors based on a # symbol followed by 6 characters. These characters represent the levels of Red, Green, and Blue (RGB), with each color being defined by two characters."
        },
        {
          "type": "paragraph",
          "text": "Syntax: <br> #rrggbb"
        },
        {
          "type": "textarea",
          "text": " <h1 style=\"color:#ff0000\">Text content</h1> "
        },
        {
          "type": "paragraph",
          "text": "In addition to the standard 6-character hex code for colors, an extended version with 8 characters can be used to define both the color and its opacity (transparency). The last two characters in the 8-character hex code represent the alpha (opacity) value, similar to the A in RGBA."
        },
        {
          "type": "textarea",
          "text": "<h1 style=\"background-color:#007BFF80\">Text content</h1>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "HSL Colors:"
        },
        {
          "type": "paragraph",
          "text": "HSL stands for Hue, Saturation, and Lightness. It is another alternative to RGB and Hexadecimal color models for defining colors in HTML. "
        },
        {
          "type": "list",
          "items": [
            "<b>H (Hue):</b>  It refers to the character of the color, and it is measured in degrees on the color wheel, from 0 degree to 360 degrees.",
            "<b>S (Saturation):</b> Indicates the intensity or vividness of the color.0% means the color is completely desaturated (gray).100% means the color is fully saturated (vibrant).",
            "<b>L (Lightness):</b> Refers to the brightness of the color.0% is completely black.100% is completely white."
          ]
        },
        {
          "type": "paragraph",
          "text": "Syntax: <br> hsl(0, 90% 20%)"
        },
        {
          "type": "textarea",
          "text": " <h1 style=\"color:hsl(0, 100%, 50%)\">Text content</h1>"
        },
        {
          "type": "paragraph",
          "text": "In the HSLA color model, 'A' stands for Alpha. Alpha defines transparency from full transparency to full opacity (0 through 1).This model extends HSL by adding transparency control."
        },
        {
          "type": "textarea",
          "text": "<h1 style=\"color:hsla(9, 100%, 64%, 0.6)\">Text content</h1>"
        }
      ]
    },
    {
      "title": "HTML Styles - CSS",
      "description": "CSS HTML styles determine the appearance and formatting on an HTML page. By applying styles, properties like font size, font color, background colors, margins, padding, and more can be customized for better visual presentation.",
      "sub_description": " Styles are usually written using CSS (Cascading Style Sheets), which allows for efficient control over the layout and design of multiple elements across a page or an entire website. Styles can be applied directly within an HTML tag using the 'style' attribute, in the head of the document using style tags, or by linking to an external CSS file.",
      "additional_info": "Styles applied to a parent element are \"cascaded\" down to child elements unless overridden. This makes it easier to maintain a consistent design throughout the webpage while also allowing for specific customizations where needed.",
      "content": [
        {
          "type": "",
          "text": "There are three ways to add css to an html document:"
        },
        {
          "type": "list",
          "items": [
            "Inline Styling",
            "Internal Styling",
            "External Styling"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Inline Styling"
        },
        {
          "type": "paragraph",
          "text": "Inline styling in HTML is used to apply styles directly to a specific element by adding the style attribute within the opening tag. This method allows for quick and specific styling but only affects the single element it is applied to."
        },
        {
          "type": "textarea",
          "text": "<h2 style=\"color:blue\">Text content</h2>\n<p style=\"font-size:20px\">Text content</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Internal Styling"
        },
        {
          "type": "paragraph",
          "text": "Internal styling, in HTML, is defined by assigning a style element within the head section of a single HTML document. This method allows for styling multiple elements within that specific document only. The styles are written inside the &lt;style&gt; tags."
        },
        {
          "type": "textarea",
          "text": "<!DOCTYPE html>\n<html>\n<head>\n<style>\nbody {background-color: powderblue;}\nh1 {color: red;}\np {font-size: 20px;}\n</style>\n</head>\n<body>\n\n\t<h1>This is a heading.</h1>\n\t<p>This is a paragraph.</p>\n\n</body>\n</html>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "External Styling"
        },
        {
          "type": "paragraph",
          "text": "External Styling in HTML External Styling is done in HTML by linking to an external CSS file in the head section of an HTML document.This method allows the same style rules to be applied across multiple HTML documents, ensuring consistency across a website. The CSS file is linked using the &lt;link&gt; tag."
        },
        {
          "type": "textarea",
          "text": "<!DOCTYPE html>\n<html>\n<head>\n\t<link rel=\"stylesheet\" href=\"file name.css\">\n</head>\n<body>\n\n\t<h1>This is a heading.</h1>\n\t<p>This is a paragraph.</p>\n\n</body>\n</html>"
        }
      ]
    },
    {
      "title": "HTML Images",
      "description": "Images can be inserted into a webpage or HTML document using the <img> tag. This tag allows for the inclusion of various image formats, such as JPEG, PNG, GIF, and SVG, enhancing the visual appeal of the content.",
      "sub_description": "The src attribute specifies the path to the source image file. This path can be an absolute URL (pointing to an image on the internet) or a relative URL (pointing to an image stored within the same website).",
      "additional_info": "Syntax:<br>&lt;img src=”url”&gt;",
      "content": [
        {
          "type": "textarea",
          "text": "<img src=\"https://www.webcooks.in/lms/assets/images/webcooks-image-300.jpeg\" alt=\"Comparison of Burger Layers to HTML and CSS Code Structure\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Alt Attribute:"
        },
        {
          "type": "paragraph",
          "text": "The alt attribute can be used in the &lt;img&gt; tag to describe an alternative text for an image.If the image fails to display due to an error, this text will appear in its place, providing information about what the image represents."
        },
        {
          "type": "textarea",
          "text": "<img src=\"https://www.webcooks.in/lms/assets/images/webcooks-image-300.jpeg\" alt=\"Comparison of Burger Layers to HTML and CSS Code Structure\">"
        },
        {
          "type": "heading",
          "level": "2",
          "text": "Height and width of image:"
        },
        {
          "type": "paragraph",
          "text": "There are two ways to specify height and width for an image:"
        },
        {
          "type": "list",
          "items": [
            "Using style attribute",
            "Using height and width attribute"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Using style attribute:"
        },
        {
          "type": "paragraph",
          "text": "This method employs inline CSS styling to define the height and width of the image. The properties are specified within the style attribute."
        },
        {
          "type": "textarea",
          "text": "<img style=\"height:100px; width:100px;\" src=\"https://www.webcooks.in/lms/assets/images/webcooks-image-300.jpeg\" alt=\"Comparison of Burger Layers to HTML and CSS Code Structure\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Using height and width attribute:"
        },
        {
          "type": "paragraph",
          "text": "The height and width attributes may also be used to define the image's size directly in the &lt;img&gt; tag."
        },
        {
          "type": "textarea",
          "text": "<img src=\"https://www.webcooks.in/lms/assets/images/webcooks-image-300.jpeg\" alt=\"Comparison of Burger Layers to HTML and CSS Code Structure\" height=\"100px\" width=\"100px\">"
        }
      ]
    },
    {
      "title": "HTML Links",
      "description": "In HTML, hyperlinks are created using the &lt;a&gt; (anchor) tag. These links allow users to navigate to other webpages or documents when clicked. The destination URL is specified using the href attribute inside the &lt;a&gt; tag.",
      "sub_description": "Syntax:<br>&lt;a href=”link-address”&gt;Link Text&lt;/a&gt;",
      "additional_info": "Link comes in three forms:",
      "content": [
        {
          "type": "list",
          "items": [
            "<b>Unvisted link:</b>  A link in the HTML document that the user has never visited yet. <br>By default, it is displayed as underlined and blue in color. This default style can be changed using CSS if needed.",
            "<b>Visited link:</b>A visited link in HTML is a hyperlink that a user has already clicked. By default, it is displayed in purple and is underlined. You can change this default style using CSS. ",
            "<b>Active link:</b>This graphical indication makes the users aware of the fact that the link is under activation. <br> By default, it is displayed in red and is typically underlined. This visual indication helps users recognize that the link is in the process of being activated. The default style can be modified using CSS."
          ]
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in/\" >Webcooks.in</a>"
        },
        {
          "type": "heading",
          "level": "2",
          "text": "Target attribute for links:"
        },
        {
          "type": "paragraph",
          "text": "By default, clicking on a link in HTML navigates to another document within the same browser window. To change this behavior and open the link in a new window or tab, the target attribute can be used."
        },
        {
          "type": "paragraph",
          "text": "The target attribute identifies which window a document or frame needs to open. There are four alternatives for the target attribute:"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "_self: "
        },
        {
          "type": "paragraph",
          "text": "It opens the link in the current browser window.This is the default behavior for all links.Syntax:<br>&lt;a href=”link-address” target=”_self”&gt;link text&lt;/a&gt;"
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in/\" target=\"_self\">Visit Webcooks</a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "_blank: "
        },
        {
          "type": "paragraph",
          "text": "This value opens the link in a new browser window or tab.Syntax:<br>&lt;a href=”link-address” target=”_blank”&gt;link text&lt;/a&gt;"
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in/\" target=\"_blank\">Visit Webcooks</a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "_parent: "
        },
        {
          "type": "paragraph",
          "text": "This opens the linked document in its parent frame.Syntax:<br>&lt;a href=”link-address” target=”_parent”&gt;link text&lt;/a&gt;"
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in/\" target=\"_parent\">Visit Webcooks</a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "_top: "
        },
        {
          "type": "paragraph",
          "text": "This value opens the link in the full body of the window, removing any frames.Syntax:<br>&lt;a href=”link-address” target=”_top”&gt;link text&lt;/a&gt;"
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in/\" target=\"_top\">Visit Webcooks</a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Absolute and relative urls:"
        },
        {
          "type": "paragraph",
          "text": "An absolute URL is the complete web address of a link, including the protocol, domain, and path.For example, “https://www.google.com” is an absolute URL that provides the full location of the website.<br>On the other hand, a relative URL contains only the path to a resource within the same website, while omitting the protocol and domain. This type of URL is useful for linking to internal pages or resources. For instance, if you have a webpage located at “https://www.example.com/about”, a relative URL to that page could simply be “/about”."
        },
        {
          "type": "textarea",
          "text": "<!-- Absolute URLs -->\n<a href=\"https://www.webcooks.in/\" target=\"_blank\">Visit Webcooks</a>\n\n<!-- Relative URLs -->\n<a href=\"https://www.webcooks.in/\">Visit Webcooks</a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Using image as a link:"
        },
        {
          "type": "paragraph",
          "text": "Use the &lt;img&gt; tag within the &lt;a&gt; tag: If you want to use an image as a hyperlink in HTML, place the <img> tag inside an &lt;a&gt;, or an anchor, tag.This allows users to click on the image to navigate to a specified URL. "
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in\" target=\"_blank\">\n\t<img src=\"https://www.webcooks.in/events\" alt=\"Webcooks Image\" width=\"150\" height=\"150\">\n</a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Linking an email address:"
        },
        {
          "type": "paragraph",
          "text": "Using mailto: within the href attribute creates a link that opens the user's default email program when clicked, allowing them to compose a new email. This is useful for providing a quick way to contact someone directly from a webpage."
        },
        {
          "type": "textarea",
          "text": "<a href=\"mailto:info@webcooks.in\">Send Email to Webcooks</a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Link titles:"
        },
        {
          "type": "paragraph",
          "text": "The title attribute in a link explains to the user what the destination is when the mouse cursor is moved over the hyperlink. This improves the user experience because it provides an explanation or information about the destination without clattering to the interface."
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in\" title=\"Visit Webcooks Website\">Webcooks</a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Button as a link:"
        },
        {
          "type": "paragraph",
          "text": "HTML buttons can act like links by using JavaScript. To make a button redirect to a webpage, add an onclick attribute with the desired URL. "
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in\" target=\"_blank\"><button type=\"button\">Explore Webcooks Events</button></a>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Bookmarking in html:"
        },
        {
          "type": "paragraph",
          "text": "Bookmarking in HTML allows users to jump to specific sections of a webpage using links. This is accomplished by creating an id for an HTML element and then linking to that id through the href attribute of an anchor tag."
        },
        {
          "type": "textarea",
          "text": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Bookmark Example - Webcooks</title>\n</head>\n<body>\n\n    <!-- Link to bookmark -->\n    <a href=\"#webcooksSection\">Go to Webcooks Section</a>\n\n    <p>This is some text. Scroll down to see the Webcooks bookmarked section.</p>\n\n    <p>More text to create some space...</p>\n    <p>Even more text to create space...</p>\n\n    <!-- Bookmark section -->\n    <h2 id=\"webcooksSection\">Webcooks About us Section</h2>\n    <p>Welcome to the Webcooks section of this webpage!</p>\n\n</body>\n</html>"
        }
      ]
    },
    {
      "title": "HTML Favicon",
      "description": "A favicon is the small image or icon appearing to the left of a browser tab or in the bookmark bar. It is commonly used to represent a website visually and often serves as the site's logo. Favicons help users quickly identify a website in a list of open tabs or bookmarks, improving recognition and user experience.",
      "sub_description": "The favicon is typically provided using the <link> tag in the <head> section of an HTML document. It usually points to an image file such as a .ico, .png, or .svg.",
      "additional_info": "Syntax: <br>&lt;link rel=”icon” href=”image address”&gt;",
      "content": [
        {
          "type": "textarea",
          "text": "<link rel=\"shortcut icon\" href=\"https://www.webcooks.in/assets/img/favicon.ico\" type=\"image/x-icon\">"
        }
      ]
    },
    {
      "title": "HTML Block and Inline elements",
      "description": "HTML elements can be classified into two: namely, block-level elements and inline elements.",
      "sub_description": "",
      "additional_info": "",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "Block-Level Elements:"
        },
        {
          "type": "paragraph",
          "text": "Block-level elements occupy the entire width of the parent element, always start on a new line. This means there will be a line break before and after these elements, creating a distinct separation from other content."
        },
        {
          "type": "paragraph",
          "text": "Some examples of block-level elements include &lt;div&gt;, &lt;h1&gt; to &lt;h6&gt;, &lt;p&gt;, and &lt;ul&gt;. These elements are typically used to structure the layout of a webpage and can contain other block or inline elements."
        },
        {
          "type": "textarea",
          "text": "<div>\n    <h1>Welcome to Webcooks</h1>\n    <p>This is a paragraph inside a block-level element. Block-level elements occupy the full width and start on a new line.</p>\n    <ul>\n        <li>Block-level elements create clear structure</li>\n        <li>They help in organizing the layout</li>\n        <li>Can contain both block and inline elements</li>\n    </ul>\n</div>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Inline-level Elements:"
        },
        {
          "type": "paragraph",
          "text": "Inline elements don't start on a new line and occupy no more than the width required. Inline elements do not have any line break both at the top and bottom of inline elements that permits them to flow nicely in the surrounding text."
        },
        {
          "type": "paragraph",
          "text": " Inline examples include elements such as &lt;span&gt;, &lt;a&gt;, &lt;b&gt;, and &lt;img&gt;. These elements are used primarily for styling or linking portions of text without disrupting the overall layout."
        },
        {
          "type": "textarea",
          "text": "<p>This is a paragraph with <span style='color:blue;'>inline-level elements</span> like <a href='https://www.webcooks.in'>links</a> and <strong>bold text</strong> inside. Inline elements do not start on a new line and only take up as much space as necessary.</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "The &lt;div&gt; Element:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;div&gt; element serves as a versatile container for grouping other HTML elements. As a block-level element, it takes up the full width of its parent container and starts on a new line. The &lt;div&gt; can be styled with CSS to modify attributes such as color, background, or positioning."
        },
        {
          "type": "textarea",
          "text": "<div style='background-color:lightgrey; padding:20px;'>This is a <div> element. It groups content and starts on a new line, taking up the full width of its container.</div>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "The &lt;span&gt; Element"
        },
        {
          "type": "paragraph",
          "text": "The &lt;span&gt; element is an inline, so that styles or attributes might be applied to a particular part of the text or text string. Unlike block-level elements, it does not create line breaks and only takes the necessary width. CSS can be applied to change the appearance of the text contained within a &lt;span&gt;, such as its color or font weight."
        },
        {
          "type": "textarea",
          "text": "<p>This is a sentence with a <span style='color:blue; font-weight:bold;'>highlighted text</span> using the <span> element.</p>"
        }
      ]
    }
  ],
  "HTML Id": [
    {
      "title": "HTML Id",
      "description": "The HTML id attribute is used to assign a unique identifier to any HTML element within a document. Every id should be unique, it should not be assigned for two elements at once.",
      "sub_description": "This uniqueness is essential for accurately targeting specific elements when applying styles or manipulating them with JavaScript. An id in HTML is referred as in CSS using the # followed by the id name.",
      "additional_info": "Syntax in html element:<br>&lt;tagname id=”Id_Name”&gt;&lt;/tagname&gt;",
      "content": [
        {
          "type": "textarea",
          "text": "<p id='webcooks'>This paragraph has a unique ID attribute called 'webcooks'.</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "CSS Styling with ID:"
        },
        {
          "type": "paragraph",
          "text": "When styling an element using its id in CSS, the id name is prefixed with a hash (#)."
        },
        {
          "type": "textarea",
          "text": "<style>#webcooks { color: blue; font-size: 20px; }</style>\n<p id='webcooks'>This text is styled using the 'webcooks' ID.</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Difference between Class and ID in HTML:"
        },
        {
          "type": "list",
          "items": [
            "<b>Class:</b> The class attribute can be assigned to multiple HTML elements, allowing them to share the same styles or be manipulated in bulk through JavaScript. It helps classify groups of like elements and can be reused throughout the document.",
            "<b>ID:</b> As the name of an id attribute puts it, that attribute is unique, meaning it can only be assigned to one element of the whole HTML document. It is typically used for specific, unique elements that need individual styling or manipulation."
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Bookmarking:"
        },
        {
          "type": "paragraph",
          "text": "Bookmarking in HTML allows users to navigate to specific sections of a webpage quickly. First, an id is given to the target html element that you want to be referred to. Then inside of a link () tag, it refers to that id in the href attribute with an # symbol and the value of the id."
        },
        {
          "type": "textarea",
          "text": "<h2 id='webcooks'>Webcooks Training Section</h2>\n<a href='#webcooks'>Jump to Webcooks Training Section</a>"
        }
      ]
    }
  ],
  "HTML Class": [
    {
      "title": "HTML Class",
      "description": "The class attribute in HTML is utilized to assign one or more classes to HTML elements. Apply the same class to several elements so you can easily apply homogenous styles across a web page. By defining styles in CSS for a particular class, all elements that have that class can inherit the same styling.",
      "sub_description": " There is also the added versatility of classes that enables manipulation using JavaScript in order to create dynamic interactions with elements on the page.",
      "additional_info": "To style a class, the class name is prefixed with a dot (.) in the CSS.",
      "content": [
        {
          "type": "textarea",
          "text": "<style>\n \tp.webcooks { color: blue; font-size: 20px; }\n</style>\n\n<p class='webcooks'>This paragraph is styled with the 'webcooks' class.</p>"
        },
        {
          "type": "paragraph",
          "text": "Multiple classes can be assigned to a single element by separating the class names with spaces:"
        },
        {
          "type": "textarea",
          "text": "<p class='webcooks courses events'>This paragraph is styled with multiple classes: webcooks, courses, and events.</p>",
          "showButton": false
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Accessing Elements with JavaScript"
        },
        {
          "type": "paragraph",
          "text": "JavaScript provides a method called getElementsByClassName to access elements based on their class names.This method returns an array-like collection of the elements that have the specified class.This allows developers to manipulate multiple elements simultaneously, enhancing the interactivity of web pages."
        },
        {
          "type": "textarea",
          "text": "<script>\n  // Accessing an element by its ID\n  var elementById = document.getElementById('webcooksElement');\n  \n  // Accessing elements by their class name\n  var elementsByClassName = document.getElementsByClassName('webcooks courses events');\n  \n  // Accessing elements by their tag name\n  var elementsByTagName = document.getElementsByTagName('div');\n  \n  // Accessing the first element that matches a CSS selector\n  var elementByQuerySelector = document.querySelector('.webcooks');\n</script>"
        }
      ]
    }
  ],
  "HTML iframe": [
    {
      "title": "HTML iframe",
      "description": "An iframe (Inline Frame) in HTML is used to embed external content like webpages, maps, videos, or other resources within a webpage. It allows the external content to be displayed inside a specified rectangular area on the current page.",
      "sub_description": "The iframe tag is self-contained, and it creates a separate browsing context within the parent page.",
      "additional_info": "Syntax:<br> &lt;iframe src=”url” title=”Content_description”&gt; &lt;/frame&gt;",
      "content": [
        {
          "type": "textarea",
          "text": "<iframe src=\"https://www.webcooks.in\" title=\"Webcooks Iframe\"></iframe>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Setting height and width of iframe:"
        },
        {
          "type": "paragraph",
          "text": "The size of an iframe can be adjusted to fit the desired dimensions of the content being embedded. There are two main ways to modify the height and width of an iframe:"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Using height and width attributes:"
        },
        {
          "type": "paragraph",
          "text": "The simplest way to set the size of an iframe is by specifying the height and width attributes directly in the iframe tag. These attributes take their values in pixels or percentages."
        },
        {
          "type": "textarea",
          "text": "<iframe src=\"https://www.webcooks.in\" width=\"800\" height=\"600\" title=\"Webcooks Iframe\" style=\"border:1px solid #000;\"></iframe>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Using style attribute with CSS:"
        },
        {
          "type": "paragraph",
          "text": "Another approach is to use the style attribute and apply CSS properties for height and width. This method offers more flexibility for styling."
        },
        {
          "type": "textarea",
          "text": "<iframe src=\"https://www.webcooks.in\" style=\"width: 800px; height: 600px; border: 1px solid #000;\" title=\"Webcooks Iframe\"></iframe>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Border of Iframe"
        },
        {
          "type": "paragraph",
          "text": "The border of an iframe can be customized or removed entirely, depending on the desired appearance. If widths and heights of iframes are in pixels, by default they have a border, which can be overridden by CSS."
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Setting a Border:"
        },
        {
          "type": "paragraph",
          "text": "To define the border for an iframe, CSS styling can be applied. You can change the border's color, size, and style (such as solid, dashed, or dotted) to achieve the desired effect."
        },
        {
          "type": "textarea",
          "text": "<iframe src=\"https://www.webcooks.in\" style=\"border: 2px solid #ff0000;\" title=\"Webcooks Iframe\"></iframe>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Removing the Border:"
        },
        {
          "type": "paragraph",
          "text": "In case a border is not required, just make the border property as none in the CSS styling."
        },
        {
          "type": "textarea",
          "text": "<iframe src=\"https://www.webcooks.in\" style=\"border: none;\" title=\"Webcooks Iframe\"></iframe>"
        }
      ]
    }
  ],
  "HTML File path": [
    {
      "title": "HTML File path",
      "description": "In web development, file paths are essential for locating and linking external resources such as stylesheets, JavaScript files, images, and other webpages within your website's folder structure. Understanding how to use file paths correctly ensures that your website's assets are properly connected and displayed.",
      "sub_description": "",
      "additional_info": "",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "What is a File Path?"
        },
        {
          "type": "paragraph",
          "text": "A file path is also referred to as the address or location of a file in your website's folder hierarchy. File paths are used in HTML to link external files, ensuring that the browser can retrieve and display these resources correctly."
        },
        {
          "type": "paragraph",
          "text": "There are two primary types of file paths in HTML:"
        },
        {
          "type": "list",
          "items": [
            "Absolute File Path",
            "Relative File Path"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Absolute File Path:"
        },
        {
          "type": "paragraph",
          "text": "An absolute file path provides the complete URL or location of a file from the root directory of the website or the internet. It is precise and does not depend on the current directory location, making it consistent regardless of where it's used within the website."
        },
        {
          "type": "paragraph",
          "text": "Suppose you want to link an external CSS stylesheet located on a different website or hosted at a specific URL."
        },
        {
          "type": "textarea",
          "text": "<link rel=\"stylesheet\" href=\"https://www.webcooks.in/styles.css\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Relative File Path:"
        },
        {
          "type": "paragraph",
          "text": "A relative file path is about the location of a file relative to the directory of the current document. Unlike absolute paths, relative paths are shorter and more flexible, especially when moving files within the website's folder structure."
        },
        {
          "type": "paragraph",
          "text": "Imagine you have a website with the following folder structure:"
        },
        {
          "type": "textarea",
          "text": "website/\n│\n├── index.html\n├── about.html\n├── css/\n│   └── styles.css\n├── js/\n│   └── scripts.js\n└── images/\n    └── logo.png",
          "showButton": false
        },
        {
          "type": "paragraph",
          "text": "To link the styles.css file from index.html, you would use a relative path."
        },
        {
          "type": "textarea",
          "text": "<link rel=\"stylesheet\" href=\"css/styles.css\">",
          "showButton": false
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Why Use Relative File Paths?"
        },
        {
          "type": "paragraph",
          "text": "Using relative file paths is generally considered a best practice for several reasons:"
        },
        {
          "type": "list",
          "items": [
            "<b>Portability:</b> Relative paths make it easier to move files and folders without breaking links. Since the paths are relative to the current file, relocating the entire project folder maintains the integrity of the links.",
            "<b>Simplicity:</b> Relative paths are shorter and easier to read, especially for files within the same project.",
            "<b>Development Convenience:</b> During development, relative paths allow you to test your website locally without relying on absolute URLs, which might not be accessible or might require an internet connection.",
            "<b>Consistency:</b> The use of relative paths ensures that links will be consistent from a development environment, through a staging, and eventually to a production server."
          ]
        }
      ]
    }
  ],
  "HTML Layout": [
    {
      "title": "HTML Layout",
      "description": "HTML Layout is a way to organize and structure a webpage to enhance user-friendly navigation. It allows the developers to split up sections and structure content meaningfully, thus allowing the users to access the proper information.",
      "sub_description": "",
      "additional_info": "",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "HTML Layout Elements"
        },
        {
          "type": "paragraph",
          "text": "Various HTML elements are used to structure a page effectively. Below are some commonly used elements:"
        },
        {
          "type": "list",
          "items": [
            "<b>&lt;header&gt;</b> - Defines the header for the page.",
            "<b> &lt;nav&gt;</b> - Creates navigation links.",
            "<b> &lt;section&gt; </b> - Defines sections in a document.",
            "<b> &lt;article&gt; </b> - It stands for independent, self-contained piece of content which can be reused.",
            "<b> &lt;aside&gt; </b> - Here, the content is aside from the main content, though it is mainly used in the case of sidebars.",
            "<b> &lt;footer&gt; </b> - Defines the footer for a document.",
            "<b> &lt;details&gt; </b> - Defines additional details that can be opened or closed on demand.",
            "<b> &lt;summary&gt;</b> - Here the heading for the &lt;details&gt; element."
          ]
        },
        {
          "type": "heading",
          "level": "2",
          "text": "Description of various layout elements:"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;header&gt; element:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;header&gt; element is used to create the header for a document. It often encompasses the title of the page, logo, navigation links, and sometimes the introduction for the page."
        },
        {
          "type": "textarea",
          "text": "<header>\n    <h1>Webcooks</h1>\n    <nav>\n        <ul>\n            <li><a href=\"#\">Home</a></li>\n            <li><a href=\"#\">About</a></li>\n            <li><a href=\"#\">Courses</a></li>\n            <li><a href=\"#\">Events</a></li>\n        </ul>\n    </nav>\n</header>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;nav&gt; element:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;nav&gt; element contains a block of navigation links, allowing users to navigate within the same page or to different pages on the site."
        },
        {
          "type": "textarea",
          "text": "<nav>\n    <ul>\n        <li><a href=\"index.html\">Home</a></li>\n        <li><a href=\"about.html\">About Webcooks</a></li>\n        <li><a href=\"courses.html\">Courses</a></li>\n        <li><a href=\"events.html\">Events</a></li>\n    </ul>\n</nav>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;section&gt; element: "
        },
        {
          "type": "paragraph",
          "text": "The &lt;section&gt; element defines a section in a document that contains a group of related elements. It can include text, images, videos, tables, and more."
        },
        {
          "type": "textarea",
          "text": "<section>\n    <h2>About Webcooks</h2>\n    <p>Webcooks is dedicated to providing the best training in web development.</p>\n    <img src=\"https://www.webcooks.in/assets/images/webcooks-logo.webp\" alt=\"Webcooks Logo\">\n</section>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;article&gt; element:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;article&gt; element defines an independent, self-contained piece of content.It often encompasses a post or an entry such as a blog post, news article, or any other standalone piece of information."
        },
        {
          "type": "textarea",
          "text": "<article>\n    <h2>Webcooks Blog Post</h2>\n    <p>Welcome to the Webcooks blog, where you can find the latest tips and tutorials on web development.</p>\n    <p>Stay tuned for more updates!</p>\n</article>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;aside&gt; element:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;aside&gt; element indicates that the content it encompasses is secondary to the primary content but should not be used as part of the main. This often functions as a sidebar."
        },
        {
          "type": "textarea",
          "text": "<aside>\n    <h3>Related Links</h3>\n    <ul>\n        <li><a href=\"https://www.webcooks.in\">Webcooks Home</a></li>\n        <li><a href=\"https://www.webcooks.in/courses\">Webcooks Courses</a></li>\n        <li><a href=\"https://www.webcooks.in/events\">Upcoming Events</a></li>\n    </ul>\n</aside>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;footer&gt; element:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;footer&gt; element defines the footer section for a document. Often it contains information such as the author's details, copyright notices, link to privacy policies, contact information, and so on."
        },
        {
          "type": "textarea",
          "text": "<footer>\n    <p>&copy; 2024 Webcooks. All rights reserved.</p>\n    <p>Contact us: <a href=\"mailto:info@webcooks.in\">info@webcooks.in</a></p>\n    <p><a href=\"https://www.webcooks.in/privacy-policy\">Privacy Policy</a></p>\n</footer>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;details&gt; element:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;details&gt; element is used to define additional details for a document, which can be shown or hidden as needed by the user."
        },
        {
          "type": "textarea",
          "text": "<details>\n    <summary>More About Webcooks</summary>\n    <p>Webcooks offers a variety of training courses in web development, focusing on practical skills and hands-on experience.</p>\n</details>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;summary&gt; element:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;summary&gt; element is used with the &lt;details&gt; element to define a heading for it. It acts as the visible title for the details."
        },
        {
          "type": "textarea",
          "text": "<details>\n    <summary>About Webcooks</summary>\n    <p>Webcooks specializes in web development training, helping individuals enhance their skills in creating dynamic websites.</p>\n</details>"
        }
      ]
    }
  ],
  "HTML Semantic tags": [
    {
      "title": "HTML Semantics tags",
      "description": "Semantic elements are HTML tags that explicitly define both what they represent to the browser and what they mean to developers. These tags help structure web content in a way that is meaningful, improving readability and accessibility for both users and search engines.",
      "sub_description": "These include semantic tags such as &lt;form&gt;, &lt;table&gt;, &lt;footer&gt;, &lt;header&gt;, and &lt;article&gt;.  These elements define the nature of the content within them, providing context.",
      "additional_info": "However, elements such as &lt;div&gt; and &lt;span&gt; contribute nothing to the meaning of the content that they contain.",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "Common HTML Semantic Elements:"
        },
        {
          "type": "list",
          "items": [
            "<b>&lt;article&gt;:</b> A standalone piece of content that is not aggregated as a part of another document or website; this could be a blog, a news article, or any other form of post.",
            "<b>&lt;aside&gt;</b>: Specifies auxiliary content for the main content, like a sidebar.",
            "<b>&lt;details&gt;</b>: Details that can be exposed on show/hide by the user.",
            "<b>&lt;figcaption&gt;</b>: Gives a title or description to the <figure> element.",
            "<b>&lt;figure&gt;</b>: Represents self-contained content, often images or illustrations.",
            "<b>&lt;footer&gt;</b>: This element contains a footer in a document or section in some applications, normally containing the author's information and copyright details and sometimes links.",
            "<b>&lt;header&gt;</b>: The header section of a document or section, often containing navigation links or a logo.",
            "<b>&lt;main&gt;</b>: Defines the primary content of a webpage, ensuring it’s unique and the main focus.",
            "<b>&lt;mark&gt;</b>: Highlights text for emphasis or importance.",
            "<b>&lt;nav&gt;</b>: Represents a section that contains navigation links.",
            "<b>&lt;section&gt;</b>: Defines a thematic grouping of content.",
            "<b>&lt;summary&gt;</b>: Provides a heading for the &lt;details&gt; element.",
            "<b>&lt;time&gt;</b>: Represents a specific time or date, useful for machine-readable date and time."
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;figure&gt; and &lt;figcaption&gt; Elements"
        },
        {
          "type": "list",
          "items": [
            "<b>&lt;figure&gt;</b>: This tag is used to label self-contained content like images, charts, diagrams that states something on its own. A &lt;figure&gt; typically holds content that is referenced in the main text but stands apart from it.",
            "<b>&lt;figcaption&gt;</b>: This element provides a title to any content found inside a &lt;figure&gt;.It may also be the first or the last child element of its parent &lt;figure&gt;."
          ]
        },
        {
          "type": "textarea",
          "text": "<figure>\n    <img src=\"https://www.webcooks.in/assets/images/webcooks-logo.webp\" alt=\"Webcooks Logo\">\n    <figcaption>Webcooks: Training the Next Generation of Web Developers</figcaption>\n</figure>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;main&gt; element"
        },
        {
          "type": "paragraph",
          "text": "The &lt;main&gt; element defines elements that should have main content on a web page. This tag enhances accessibility because it aids in identifying the main content for screen readers and search engines. There has to be only one &lt;main&gt; element per page, and the &lt;main&gt; element should not contain headers, footers, or sidebars that are repeated across multiple pages."
        },
        {
          "type": "textarea",
          "text": "<main>\n    <h1>Welcome to Webcooks</h1>\n    <p>At Webcooks, we specialize in training individuals to create dynamic and responsive web applications.</p>\n    <p>Explore our courses and join our community of aspiring developers!</p>\n</main>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": " &lt;mark&gt; Element"
        },
        {
          "type": "paragraph",
          "text": "This tag is used to highlight or emphasize text that stands out from other content. It’s visually presented in a way that draws attention to it, usually with a background color."
        },
        {
          "type": "textarea",
          "text": "<p>Learn more about our <mark>Webcooks</mark> training programs to enhance your web development skills!</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;time&gt; Element"
        },
        {
          "type": "paragraph",
          "text": "The &lt;time&gt; tag is used to represent specific times or dates. It can be formatted in a way that makes it machine-readable, which can be useful for search engines or other automated systems to parse."
        },
        {
          "type": "textarea",
          "text": "<p>The event will take place on <time datetime=\"2024-10-30\">October 30, 2024</time> at Webcooks.</p>"
        }
      ]
    }
  ],
  "HTML Entities": [
    {
      "title": "HTML Entities",
      "description": "HTML entities are special characters in HTML that represent reserved characters or symbols which cannot be directly typed into HTML. For example, &lt; (less than) and &gt; (greater than) are part of HTML syntax and therefore need to be replaced by entities like &amp;lt; and &amp;gt; so that they are displayed correctly in the browser.",
      "sub_description": "HTML entities are referenced with an ampersand (&), the name of an entity, or a number followed by a semicolon (;).",
      "additional_info": "Syntax:<br>Entity Name: &entity_name;<br>Entity Number: &#entity_number;",
      "content": [
        {
          "type": "textarea",
          "text": "<p>HTML entities are used to display special characters in HTML. For example, to show a less than sign, use &lt; and for a greater than sign, use &gt;. The syntax for HTML entities is as follows:</p><ul><li>Entity Name: &entity_name;</li><li>Entity Number: &#entity_number;</li></ul>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Common HTML Entities:"
        },
        {
          "type": "list",
          "items": [
            "&lt; (less than) → &amp;lt; or &amp;#60;",
            "&gt; (greater than) → &amp;gt; or &amp;#62;",
            "& (ampersand) → &amp;amp; or &amp;#38;",
            "\" \" (double quotes) → &amp;quot; or &amp;#34;",
            "' (apostrophe) → &amp;apos; or &amp;#39;"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Non-breaking Space (&amp;nbsp;)"
        },
        {
          "type": "paragraph",
          "text": "A non-breaking space (&amp;nbsp;) is the special HTML entity designed for protecting line breaks between words or other elements. It helps in adding spaces where necessary and ensures that text appears in a single line without wrapping."
        },
        {
          "type": "textarea",
          "text": "<p>A non-breaking space (&nbsp;) keeps words together without breaking to a new line. Example: Visit&nbsp;Webcooks for web development!</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Combining Diacritical Marks"
        },
        {
          "type": "paragraph",
          "text": "Combining diacritical marks are symbols added to letters to change their sound or meaning, such as accents or other phonetic marks. For example, the grave accent (&nbsp; ̀) or acute accent (&nbsp; ́). In HTML, diacritical marks are combined with alphanumeric characters to produce new symbols."
        },
        {
          "type": "paragraph",
          "text": "Some common diacritical marks:"
        },
        {
          "type": "list",
          "items": [
            "Grave accent → ̀",
            "Acute accent → ́"
          ]
        },
        {
          "type": "paragraph",
          "text": "Diacritical marks are essential in languages that require special phonetic notation or accents, such as French or Spanish."
        },
        {
          "type": "textarea",
          "text": "<p>Using combining diacritical marks: webcooks&#771; = webcooks̃.</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "HTML Symbols"
        },
        {
          "type": "paragraph",
          "text": "HTML symbols are characters or symbols that do not exist in a regular keyboard. These include currency symbols, mathematical symbols, and other technical symbols.<br>Symbols are added by using the entity name or number, starting with &# followed by the code, and ending with a semicolon."
        },
        {
          "type": "textarea",
          "text": "Webcooks is launching a new course on 'HTML & CSS' &#169; 2024 Webcooks"
        },
        {
          "type": "heading",
          "level": "2",
          "text": "HTML Emojis"
        },
        {
          "type": "paragraph",
          "text": "HTML emojis are small graphical representations of emotions, objects, or ideas, commonly used in modern web design. These characters come from the UTF-8 character set and can be added to HTML documents using hexadecimal or decimal codes."
        },
        {
          "type": "paragraph",
          "text": "Example Emojis and their codes:"
        },
        {
          "type": "list",
          "items": [
            "😊 → &amp;#128522; (Decimal) or &amp;#x1F60A; (Hexadecimal)",
            "❤️ → &amp;#10084; (Decimal) or &amp;#x2764; (Hexadecimal)"
          ]
        },
        {
          "type": "textarea",
          "text": "Join Webcooks for exciting new courses! uD83DuDE80 (🚀) Learn HTML, CSS, and JavaScript! uD83CuDF89 (🎉)"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Ways to Insert Emojis in HTML:"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Hexadecimal Code:"
        },
        {
          "type": "list",
          "items": [
            "&amp;#x1F60A; → 😊",
            "&amp;#x1F44D; → 👍"
          ]
        },
        {
          "type": "textarea",
          "text": "<p>&#x1F60A; This is a smiling face emoji.</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Decimal Code:"
        },
        {
          "type": "list",
          "items": [
            "&amp;#128522; → 😊",
            "&amp;#128077; → 👍"
          ]
        },
        {
          "type": "textarea",
          "text": "<p>&#128522; Join Webcooks for an exciting learning experience!</p>\n<p>&#128077; Webcooks is the place to enhance your skills!</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Copying from External Sources:"
        },
        {
          "type": "paragraph",
          "text": "You can copy from external sites and then directly paste into the HTML code because of emoji characters."
        },
        {
          "type": "textarea",
          "text": "<p>Join Webcooks and enjoy learning with a smile! 😊</p>\n<p>Webcooks appreciates your hard work! 👍</p>\n<p>Launch your career with Webcooks! 🚀</p>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Mathematical Symbols in HTML"
        },
        {
          "type": "paragraph",
          "text": "Some common HTML entities for mathematical symbols include:"
        },
        {
          "type": "list",
          "items": [
            "Plus-minus (±) → &amp;plusmn; or &#177;",
            "Multiplication (×) → &amp;times; or &#215;",
            "Division (÷) → &amp;divide; or &#247;"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Greek Letters in HTML"
        },
        {
          "type": "paragraph",
          "text": "Greek letters can also be displayed using HTML entities, and they are often used in scientific or mathematical content."
        },
        {
          "type": "paragraph",
          "text": "<b>Example:</b>"
        },
        {
          "type": "list",
          "items": [
            "Alpha (α) → &amp;alpha; or &amp;#945;",
            "Beta (β) → &amp;beta; or &amp;#946;"
          ]
        },
        {
          "type": "textarea",
          "text": "<p>Gamma (γ) → &gamma; or &#947;</p>\n<p>Delta (δ) → &delta; or &#948;</p>\n<p>Theta (θ) → &theta; or &#952;</p>"
        }
      ]
    }
  ],
  "HTML Charsets": [
    {
      "title": "HTML Charsets",
      "description": "To render an HTML page correctly, a web browser needs to be told what character set (or encoding) to use. Character sets determine how the characters and symbols are interpreted and displayed on the webpage.",
      "sub_description": "<h4>HTML Charset Attribute:</h4>",
      "additional_info": "In HTML, the &lt;meta&gt; tag is used to specify the character set for the document, ensuring the browser reads the correct encoding. This is done using the charset attribute in the &lt;meta&gt; tag.<br><b>Syntax:</b><br>&lt;meta charset=&quot;UTF-8&quot;&gt;",
      "content": [
        {
          "type": "paragraph",
          "text": "UTF-8 is the most common encoding used today because it covers almost all characters and symbols from various languages around the world."
        },
        {
          "type": "textarea",
          "text": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Charset Example</title>\n</head>\n<body>\n    <h1>Welcome to Webcooks!</h1>\n    <p>This page is encoded in UTF-8, allowing for a wide variety of characters.</p>\n</body>\n</html>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "ASCII Character Set Encoding:"
        },
        {
          "type": "paragraph",
          "text": "The first widely used character encoding was ASCII (American Standard Code for Information Interchange). ASCII is very basic and doesn't include characters from non-English languages. It defines 128 characters, including:"
        },
        {
          "type": "list",
          "items": [
            "English letters (A-Z, a-z)",
            "Numbers (0-9)",
            "!, <, >, +, -, (, ), $, @"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "ANSI Character Set:"
        },
        {
          "type": "paragraph",
          "text": "The ANSI character set, also known as Windows-1252, was originally used by Windows. This encoding is an extension of ASCII:"
        },
        {
          "type": "list",
          "items": [
            "The first 127 characters are identical to ASCII.",
            "Characters from 128 to 159 include special symbols and additional characters.",
            "Characters from 160 to 255 are identical to UTF-8."
          ]
        },
        {
          "type": "paragraph",
          "text": "<b>Syntax:</b><br>&lt;meta charset=&quot;Windows-1252&quot;&gt;"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "ISO-8859-1 Character Set:"
        },
        {
          "type": "paragraph",
          "text": "The ISO-8859-1 (Latin-1) character set was the default encoding for HTML 4. It supports 256 different characters, including:"
        },
        {
          "type": "list",
          "items": [
            "First 127 characters identical to ASCII.",
            "It skips characters from 128 to 159.",
            "Characters from 160 to 255 are identical to ANSI and UTF-8."
          ]
        },
        {
          "type": "paragraph",
          "text": "<b>Syntax:</b><br>&lt;meta charset=&quot;ISO-8859-1&quot;&gt;"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "UTF-8 Character Set:"
        },
        {
          "type": "paragraph",
          "text": "UTF-8 is the most widely used character set on the web.UTF-8 is highly recommended for modern websites because of its extensive language support and compatibility.It can encode every character in Unicode, covering most of the world's writing systems and symbols."
        },
        {
          "type": "list",
          "items": [
            "The first 127 characters are identical to ASCII.",
            "Characters from 128 to 159 are not used.",
            "Characters from 160 to 255 are identical to ANSI and ISO-8859-1.",
            "UTF-8 continues to encode characters up to over 1 million symbols."
          ]
        },
        {
          "type": "paragraph",
          "text": "<b>Syntax:</b><br>&lt;meta charset=&quot;UTF-8&quot;&gt;"
        }
      ]
    }
  ],
  "HTML URL": [
    {
      "title": "HTML URL",
      "description": "A URL stands for Uniform Resource Locator.It is basically the web address for gaining access to resources on the Internet. URLs can take the form of words (like https://www.webcooks.in/) or an IP (Internet Protocol) address.",
      "sub_description": "<h4>URL Syntax:</h4>",
      "additional_info": "The basic structure of a URL can be broken down as follows:",
      "content": [
        {
          "type": "list",
          "items": [
            "<b>Scheme:</b> This indicates the type of internet service being used. There are basically two schemes, that is, http, which refers to Hypertext Transfer Protocol, and https stands for Secure Hypertext Transfer Protocol.",
            "<b>Prefix:</b> This describes the domain prefix, with www being the default for HTTP.",
            "<b>Domain:</b> This represents the internet domain name (e.g., webcooks.in).",
            "<b>Port:</b> Port number at host, without leading / or with preceding slash. The default port for HTTP is 80.",
            "<b>Path:</b> This describes the path on the server. Defaults to root directory of the site unless otherwise specified.",
            "<b>Filename:</b> This specifies the name of the document or resource being requested."
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Common URL Schemes:"
        },
        {
          "type": "paragraph",
          "text": "Here is a list of common schemes used in URLs:"
        },
        {
          "type": "list",
          "items": [
            "<b>http:</b> Used for common web pages. Data is not encrypted.",
            "<b>https:</b> Used for secure web pages. Data is encrypted, ensuring privacy and security.",
            "<b>ftp:</b> Used for transferring files, allowing users to upload or download files from servers.",
            "<b>file:</b> Used to access files located on a local computer."
          ]
        },
        {
          "type": "textarea",
          "text": "<a href=\"https://www.webcooks.in\" target=\"_blank\">Visit Webcooks</a>"
        }
      ]
    }
  ],
  "XHTML vs HTML5": [
    {
      "title": "XHTML vs HTML5",
      "description": "XHTML (Extensible Hypertext Markup Language) is an older, stricter, and XML-based version of HTML, while HTML5 is the latest iteration of HTML that offers more flexibility and simplicity in web development.",
      "sub_description": "<h4>Key Characteristics:</h4><b>XHTML:</b><br><li>Aims to enforce stricter compliance with XML standards.</li><li>Designed to provide a more rigorous structure for web documents.</li>",
      "additional_info": "<b>HTML5:</b><li>Offers greater flexibility compared to XHTML.</li><li>Simpler to use, with less strict adherence to XML standards.</li>",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "Similarities Between XHTML and HTML5"
        },
        {
          "type": "list",
          "items": [
            "<b>Basic Structure:</b> Both formats share a common basic structure consisting of head and body sections, which contain document information and content.",
            "<b>Semantic Markup:</b> Both utilize semantic markup that enhances content structure, making it meaningful and expressive, aiding search engine optimization and improving accessibility.",
            "<b>Cross-Platform Compatibility:</b> Modern web browsers support both XHTML and HTML5 for better compatibility and correct rendering across different platforms.",
            "<b>Semantic Tags:</b> Both employ semantic tags to separate content from presentation, allowing for easier CSS styling."
          ]
        },
        {
          "type": "textarea",
          "text": "-----XHTML Example----\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n    <title>XHTML Example</title>\n</head>\n<body>\n    <h1>XHTML Example</h1>\n    <p>This is an example of an XHTML document. All tags must be properly closed, such as this <strong>bold text</strong>.</p>\n    <img src=\"https://www.webcooks.in/assets/images/webcooks-logo.webp\" alt=\"Webcooks Logo\" />\n</body>\n</html>"
        },
        {
          "type": "textarea",
          "text": "-----HTML5 Example----\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>HTML5 Example</title>\n</head>\n<body>\n    <header>\n        <h1>HTML5 Example</h1>\n    </header>\n    <p>This is an example of an HTML5 document. Tags can be left unclosed, like this <strong>bold text</strong>.</p>\n    <img src=\"https://www.webcooks.in/assets/images/webcooks-logo.webp\" alt=\"Webcooks Logo\">\n</body>\n</html>"
        }
      ]
    }
  ],
  "HTML Lists": [
    {
      "title": "HTML Lists",
      "description": "A list in HTML is a structured way to display a collection of related items, either in a specific order or without any particular order. Lists make content easier to read and navigate by organizing it into logical sections.",
      "sub_description": "here are two primary types: ordered lists (&lt;ol&gt;) and unordered lists (&lt;ul&gt;). Ordered lists display items in a specific sequence, usually using numbers, while unordered lists use bullets for each item. Another type, the definition list (&lt;dl&gt;), pairs terms with their definitions.",
      "additional_info": "Let's now describe the different types of lists in detail: ",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "Order list:"
        },
        {
          "type": "paragraph",
          "text": " Ordered lists in HTML are useful to maintain items in a definite sequence or order. The structure of an ordered list begins with the &lt;ol&gt; tag, and each item within the list is marked with the &lt;li&gt; (list item) tag."
        },
        {
          "type": "list",
          "items": [
            "There is an HTML tag for ordered lists, to which the beginning of an ordered list is assigned. ",
            "In the list, the &lt;li&gt; tag then represents each item.",
            "The list items are formatted with numbers, in sequence, by default."
          ]
        },
        {
          "type": "textarea",
          "text": "<ol>\n    <li>Step 1: Visit the Webcooks website.</li>\n    <li>Step 2: Browse the available courses.</li>\n    <li>Step 3: Select a course that interests you.</li>\n    <li>Step 4: Enroll and start learning!</li>\n</ol>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Unorder list:"
        },
        {
          "type": "paragraph",
          "text": " An unordered list in HTML is used when a group of items has to be depicted wherein the order does not matter. The list is defined using the &lt;ul&gt; tag, and every item inside the list is enclosed within &lt;li&gt; tags."
        },
        {
          "type": "list",
          "items": [
            "The &lt;ul&gt; tag identifies the start of an unordered list. ",
            "The &lt;li&gt; tag identifies each item of the list.",
            "By default, unordered lists will display a bullet (•) to precede each list item."
          ]
        },
        {
          "type": "textarea",
          "text": "<ul>\n    <li>Webcooks offers a variety of courses.</li>\n    <li>Learn at your own pace.</li>\n    <li>Access resources anytime.</li>\n    <li>Join a community of learners.</li>\n</ul>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Description list:"
        },
        {
          "type": "paragraph",
          "text": "A description list is used to display a list of items that have a name and an associated description. The &lt;dl&gt; tag is used to create the description list, and within it, the &lt;dt&gt; (description term) tag is used to define the term or name, while the &lt;dd&gt; (description definition) tag is used to describe the term."
        },
        {
          "type": "list",
          "items": [
            "The &lt;dl&gt; tag represents the entire description list.",
            "The &lt;dt&gt; tag holds the term or item name.",
            "The &lt;dd&gt; tag provides a description or definition about the term."
          ]
        },
        {
          "type": "textarea",
          "text": "<dl>\n    <dt>Webcooks</dt>\n    <dd>A platform for learning web development.</dd>\n    <dt>Courses</dt>\n    <dd>Offers HTML, CSS, JavaScript, and more.</dd>\n    <dt>Community</dt>\n    <dd>Connect with fellow learners and instructors.</dd>\n</dl>"
        },
        {
          "type": "heading",
          "level": "2",
          "text": "Type attribute for lists:"
        },
        {
          "type": "paragraph",
          "text": "The type attribute can be applied to both ordered lists (&lt;ol&gt;) and unordered lists (&lt;ul&gt;) in HTML to specify the style of list item markers. This attribute allows for customization of how list items are presented, enhancing the visual structure of the list."
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Type attribute for unordered list:"
        },
        {
          "type": "paragraph",
          "text": "In unordered lists (&lt;ul&gt;), the type attribute allows for further customization of bullet point styles. It can take several values that determine the appearance of the list item markers, including:"
        },
        {
          "type": "list",
          "items": [
            "<b>Disc:</b> The default filled circle markers.",
            "<b>Circle:</b> Hollow circle markers for a lighter appearance.",
            "<b>Square:</b> Filled square markers for distinct item identification.",
            "<b>None:</b> No markers for a clean look."
          ]
        },
        {
          "type": "textarea",
          "text": "<ul type=\"circle\">\n    <li>Learn HTML</li>\n    <li>Learn CSS</li>\n    <li>Learn JavaScript</li>\n</ul>"
        },
        {
          "type": "textarea",
          "text": "<ul type=\"disc\">\n    <li>Webcooks offers web development courses with hands-on projects.</li>\n    <li>Learn how to build dynamic websites using HTML, CSS, and JavaScript.</li>\n</ul>"
        },
        {
          "type": "textarea",
          "text": "<ul type=\"square\">\n    <li>Join Webcooks to develop mobile-friendly responsive websites.</li>\n    <li>Get trained in using modern frameworks like Bootstrap and React.</li>\n</ul>"
        },
        {
          "type": "textarea",
          "text": "<ul type=\"none\">\n    <li>Webcooks offers flexible online learning options.</li>\n    <li>Attend courses from the comfort of your home.</li>\n</ul>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Type Attribute for Ordered Lists:"
        },
        {
          "type": "paragraph",
          "text": "The type attribute in ordered lists (&lt;ol&gt;) allows customization of the list item markers, providing different styles of numbering for the list items. Here are the various options available:"
        },
        {
          "type": "list",
          "items": [
            "<b>Using 1:</b> Setting the type attribute to \"1\" results in standard numeric markers starting from 1. This is the default behavior for ordered lists.",
            "<b>Using A and a:</b> The type attribute can be set to \"A\" for uppercase alphabetical markers, or \"a\" for lowercase alphabetical markers. This changes the numbering style to letters in alphabetical order.",
            "<b>Using I and i:</b> By setting the type attribute to \"I\", list items are numbered with uppercase Roman numerals, while using \"i\" results in lowercase Roman numerals."
          ]
        },
        {
          "type": "textarea",
          "text": "<ol type=\"1\">\n    <li>Enroll in Webcooks’ HTML and CSS basics course.</li>\n    <li>Advance to JavaScript and modern frameworks.</li>\n    <li>Build your own dynamic web applications.</li>\n</ol>"
        },
        {
          "type": "textarea",
          "text": "<ol type=\"A\">\n    <li>Webcooks offers beginner courses for web development.</li>\n    <li>Gain hands-on experience with real-world projects.</li>\n    <li>Receive a Webcooks certification upon completion.</li>\n</ol>"
        },
        {
          "type": "textarea",
          "text": "<ol type=\"a\">\n    <li>Webcooks provides access to expert trainers.</li>\n    <li>Flexible learning schedule with online classes.</li>\n    <li>Interactive assignments to enhance skills.</li>\n</ol>"
        },
        {
          "type": "textarea",
          "text": "<ol type=\"I\">\n    <li>Learn front-end development at Webcooks.</li>\n    <li>Work with databases and server-side scripting.</li>\n    <li>Launch your career as a full-stack developer.</li>\n</ol>"
        },
        {
          "type": "textarea",
          "text": "<ol type=\"i\">\n    <li>Webcooks offers a structured curriculum.</li>\n    <li>Real-world projects help reinforce your learning.</li>\n    <li>Network with other aspiring developers.</li>\n</ol>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Start Attribute:"
        },
        {
          "type": "paragraph",
          "text": "In addition to the type attribute, the start attribute can also be utilized in ordered lists. This attribute indicates the starting point for the numbering. For instance, if the start attribute is set to 5, the ordered list will begin numbering from 5 instead of the default value of 1."
        },
        {
          "type": "textarea",
          "text": "<ol start=\"5\">\n    <li>Explore advanced HTML techniques with Webcooks.</li>\n    <li>Master CSS for responsive designs.</li>\n    <li>Get started with JavaScript at Webcooks.</li>\n</ol>"
        }
      ]
    }
  ],
  "HTML Tables": [
    {
      "title": "HTML Tables",
      "description": "HTML tables are used to display information in a tabular and well-structured format, using rows and columns. The &lt;able&gt; tag is used to create a table in HTML, and it organizes data in a grid-like format",
      "sub_description": "Each table is made up of table rows (&lt;tr&gt;) which contain table data (&lt;td&gt;) for individual cells. Headings for column or row can also be specified by using table headings (&lt;th&gt;).",
      "additional_info": "Tables are also beneficial for displaying data that needs to be aligned and easy to read, such as schedules, price lists, and statistical reports.",
      "content": [
        {
          "type": "textarea",
          "text": "<table border=\"1\">\n    <tr>\n        <th>Course</th>\n        <th>Duration</th>\n        <th>Platform</th>\n    </tr>\n    <tr>\n        <td>HTML Basics</td>\n        <td>3 weeks</td>\n        <td>Webcooks</td>\n    </tr>\n    <tr>\n        <td>CSS Design</td>\n        <td>4 weeks</td>\n        <td>Webcooks</td>\n    </tr>\n    <tr>\n        <td>JavaScript Essentials</td>\n        <td>5 weeks</td>\n        <td>Webcooks</td>\n    </tr>\n</table>"
        },
        {
          "type": "heading",
          "level": "2",
          "text": "Adding borders to table:"
        },
        {
          "type": "paragraph",
          "text": "Adding borders to an HTML table enhances visibility and structure by outlining the table, rows, columns, and individual cells. The appearance of the borders can be customized using CSS to create different styles and shapes."
        },
        {
          "type": "list",
          "items": [
            "Giving Border to the Table Only",
            "Giving Border to Table Headings and Data",
            "Adding Border to the Entire Table and All Cells:"
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Giving border to table tag only:"
        },
        {
          "type": "paragraph",
          "text": "By applying the border only to the table tag, a border will appear around the entire table, but not around the individual table headings or data cells."
        },
        {
          "type": "textarea",
          "text": "<style>\n  table {\n    border: 2px solid black;\n    border-collapse: collapse;\n  }\n  th, td {\n    border: 1px solid black;\n    padding: 8px;\n    text-align: left;\n  }\n</style>\n\n<table>\n  <tr>\n    <th>Header 1</th>\n    <th>Header 2</th>\n  </tr>\n  <tr>\n    <td>Data 1</td>\n    <td>Data 2</td>\n  </tr>\n</table>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Giving Border to Table Headings and Data:"
        },
        {
          "type": "paragraph",
          "text": "To add borders around the table's headings (&lt;th&gt;) and data cells (&lt;td&gt;), you can apply the border styling to both elements. However, the table itself won't have a border unless explicitly styled."
        },
        {
          "type": "textarea",
          "text": "<style>\n  table {\n    border-collapse: collapse;\n    width: 100%;\n  }\n  th, td {\n    border: 2px solid black;\n    padding: 8px;\n    text-align: left;\n  }\n  th {\n    background-color: #f2f2f2;\n  }\n</style>\n\n<table>\n  <tr>\n    <th>Header 1</th>\n    <th>Header 2</th>\n  </tr>\n  <tr>\n    <td>Data 1</td>\n    <td>Data 2</td>\n  </tr>\n  <tr>\n    <td>Data 3</td>\n    <td>Data 4</td>\n  </tr>\n</table>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Adding Border to the Entire Table and All Cells:"
        },
        {
          "type": "paragraph",
          "text": "To give a border to both the entire table, its headings, and its data cells, the border styling should be applied to the table, th, and td elements. This ensures that the outer border, as well as the borders around each cell, are displayed"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Collapsed Borders:"
        },
        {
          "type": "paragraph",
          "text": "It controls table-cell borders to merge them into one border for cleaner and more uniform views. In border-collapse: collapse;, borders between cells collapse into one cell border instead of separate borders."
        },
        {
          "type": "textarea",
          "text": "<style>\n  table {\n    border-collapse: collapse;\n    width: 100%;\n  }\n  th, td {\n    border: 1px solid black;\n    padding: 8px;\n    text-align: left;\n  }\n  th {\n    background-color: #e0e0e0;\n  }\n</style>\n\n<table>\n  <tr>\n    <th>Header 1</th>\n    <th>Header 2</th>\n  </tr>\n  <tr>\n    <td>Data 1</td>\n    <td>Data 2</td>\n  </tr>\n  <tr>\n    <td>Data 3</td>\n    <td>Data 4</td>\n  </tr>\n</table>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Styling Table Borders and Background in HTML:"
        },
        {
          "type": "paragraph",
          "text": "Background color can be applied to table cells using the background-color property. This adds color to the individual cells for better visual distinction."
        },
        {
          "type": "textarea",
          "text": "<style>\n  table {\n    border-collapse: collapse;\n    width: 100%;\n    background-color: #f9f9f9;\n  }\n  th {\n    border: 2px solid #4CAF50;\n    background-color: #4CAF50;\n    color: white;\n    padding: 10px;\n    text-align: left;\n  }\n  td {\n    border: 1px solid #ddd;\n    padding: 10px;\n    text-align: left;\n  }\n  tr:hover {\n    background-color: #f1f1f1;\n  }\n</style>\n\n<table>\n  <tr>\n    <th>Header 1</th>\n    <th>Header 2</th>\n  </tr>\n  <tr>\n    <td>Data 1</td>\n    <td>Data 2</td>\n  </tr>\n  <tr>\n    <td>Data 3</td>\n    <td>Data 4</td>\n  </tr>\n</table>"
        },
        {
          "type": "paragraph",
          "text": "There are various border types, which can be applied to cells using the border-style property."
        },
        {
          "type": "textarea",
          "text": "<style>\n  table {\n    border-collapse: collapse;\n    width: 100%;\n    background-color: #f9f9f9;\n  }\n  th {\n    border: 3px solid #4CAF50;\n    border-style: double;\n    background-color: #4CAF50;\n    color: white;\n    padding: 10px;\n    text-align: left;\n  }\n  td {\n    border: 2px dashed #2196F3;\n    background-color: #ffffff;\n    padding: 10px;\n    text-align: left;\n  }\n  tr:nth-child(even) {\n    background-color: #f2f2f2;\n  }\n  tr:hover {\n    background-color: #e0e0e0;\n  }\n</style>\n\n<table>\n  <tr>\n    <th>Header 1</th>\n    <th>Header 2</th>\n  </tr>\n  <tr>\n    <td>Data 1</td>\n    <td>Data 2</td>\n  </tr>\n  <tr>\n    <td>Data 3</td>\n    <td>Data 4</td>\n  </tr>\n</table>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Rounded Borders:"
        },
        {
          "type": "paragraph",
          "text": "To round the corners of table borders, the border-radius property can be used. This adds a smooth curve to the edges of the table or its cells."
        },
        {
          "type": "textarea",
          "text": "<style>\n  table {\n    border-collapse: collapse;\n    width: 100%;\n    border-radius: 10px;\n    overflow: hidden;\n  }\n  th, td {\n    border: 2px solid #4CAF50;\n    padding: 10px;\n    text-align: left;\n  }\n  th {\n    background-color: #4CAF50;\n    color: white;\n  }\n  tr:nth-child(even) {\n    background-color: #f2f2f2;\n  }\n</style>\n\n<table>\n  <tr>\n    <th>Header 1</th>\n    <th>Header 2</th>\n  </tr>\n  <tr>\n    <td>Data 1</td>\n    <td>Data 2</td>\n  </tr>\n  <tr>\n    <td>Data 3</td>\n    <td>Data 4</td>\n  </tr>\n</table>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Rowspan and Colspan in HTML Tables:"
        },
        {
          "type": "paragraph",
          "text": "Rowspan and colspan are attributes used in HTML tables to merge cells across multiple rows or columns, allowing for more flexible table layouts."
        },
        {
          "type": "paragraph",
          "text": "<b>Colspan:</b> The colspan attribute is used, if the requirement is to have a table cell that spans more than one column."
        },
        {
          "type": "textarea",
          "text": "<style>\n  table {\n    border-collapse: collapse;\n    width: 100%;\n    background-color: #f9f9f9;\n  }\n  th, td {\n    border: 1px solid #ddd;\n    padding: 10px;\n    text-align: left;\n  }\n  th {\n    background-color: #4CAF50;\n    color: white;\n  }\n</style>\n\n<table>\n  <tr>\n    <th colspan=\"2\">Header with Colspan</th>\n  </tr>\n  <tr>\n    <td>Data 1</td>\n    <td>Data 2</td>\n  </tr>\n  <tr>\n    <td colspan=\"2\">Data spanning two columns</td>\n  </tr>\n  <tr>\n    <td>Data 3</td>\n    <td>Data 4</td>\n  </tr>\n</table>"
        }
      ]
    }
  ],
  "HTML Forms": [
    {
      "title": "HTML Forms",
      "description": "HTML forms are used to accept user input with the help of the controls like text fields, check boxes, radio buttons, menus, and buttons. They are widely used to gather information like names, email addresses, passwords, and phone numbers, which can then be sent to a server for processing.",
      "sub_description": "",
      "additional_info": "",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;form&gt;Tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;form&gt; tag serves as a container for form elements and controls the submission of data. It groups various input elements, making it possible to collect user inputs in an organized manner.<br><b>Syntax:</b>"
        },
        {
          "type": "textarea",
          "text": "<form>\n\t…elements…\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input&gt; Tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input&gt; tag is used to create interactive controls in a web form for accepting user inputs. The type attribute specifies how the input element will be displayed and what kind of input is expected."
        },
        {
          "type": "heading",
          "text": "Common Input Types:"
        },
        {
          "type": "textarea",
          "text": "Table of Common Input Types"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Text Fields:"
        },
        {
          "type": "paragraph",
          "text": "Text fields are created using &lt;input type=\"text\"&gt;, allowing users to enter single-line textual data. They are commonly used to collect information such as usernames, messages, and email addresses."
        },
        {
          "type": "textarea",
          "text": "<input type=\"text\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;label&gt; Element:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;label&gt; element associates a label with a specific form control, enhancing accessibility for screen-reader users. Clicking on a label activates the associated input element, improving user experience."
        },
        {
          "type": "textarea",
          "text": "<label for=\"fname\">First name:</label>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Radio Buttons:"
        },
        {
          "type": "paragraph",
          "text": "The radio buttons are used for selecting one option, with a limited number of choices available.They are defined using &lt;input type=\"radio\"&gt;."
        },
        {
          "type": "textarea",
          "text": "<input type=\"radio\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Checkbox Buttons:"
        },
        {
          "type": "paragraph",
          "text": "Checkboxes enable users to select zero or more options from a given set. They are created with &lt;input type=\"checkbox\"&gt;."
        },
        {
          "type": "textarea",
          "text": "<input type=\"checkbox\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Submit Button:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input type=\"submit\"&gt; tag creates a button that, when clicked, sends the form data to the server for processing. The action attribute in the &lt;form&gt; tag refers to the URL to which the form data will be submitted."
        },
        {
          "type": "textarea",
          "text": "<input type=\"submit\" value=\"Submit\"> "
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Name Attribute for &lt;input&gt;"
        },
        {
          "type": "paragraph",
          "text": "The name attribute is a very critical attribute in any form input because it defines the protocol under which data will be sent into the server. Each input element must have a name attribute for its value to be included in the form submission."
        },
        {
          "type": "textarea",
          "text": " <input type=\"text\" id=\"username\" name=\"username\" placeholder=\"Enter your username\">"
        }
      ]
    },
    {
      "title": "HTML form attributes",
      "description": "<h4>Action Attribute:</h4>",
      "sub_description": "The action attribute indicates the URL address to which the form data is to be sent in case of a form submission.",
      "additional_info": "In the action attribute, it indicates what the URL is where the data gets sent for processing normally, this would be a server-side script that processes the form information. Without an action attribute, automatically, the form data goes to the URL of the current page.",
      "content": [
        {
          "type": "textarea",
          "text": "<div class=\"form-container\">\n  <form action=\"submit\" method=\"post\">\n    <label for=\"username\">Username:</label>\n    <input type=\"text\" id=\"username\" name=\"username\" placeholder=\"Enter your username\" required>\n    <button type=\"submit\">Submit</button>\n  </form>\n</div>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Target Attribute:"
        },
        {
          "type": "paragraph",
          "text": "The target attribute specifies where the response opens after submitting a form. Similar to the anchor (<a>) tag, it controls how the response is opened.<br>Target attribute values:"
        },
        {
          "type": "list",
          "items": [
            "<b>_blank:</b> Opens a new window or tab by the given response.",
            "<b>_self:</b> Opens the response in the current window (default behavior).",
            "<b>_parent:</b> Opens the response in the parent frame.",
            "<b>_top:</b> Opens the response in the full body of the window, and it removes the frames.",
            "<b>Framename:</b> Opens the response in a named iframe."
          ]
        },
        {
          "type": "textarea",
          "text": "<form action=\"file name.php\" target=\"_blank\">\n<form action=\"file name.php\" target=\"_self\">\n<form action=\"file name.php\" target=\"_parent\">\n<form action=\"file name.php\" target=\"_top\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "Method Attribute:"
        },
        {
          "type": "paragraph",
          "text": "The method attribute describes how to send a form's data with its submission.The available methods are HTTP GET or POST."
        },
        {
          "type": "textarea",
          "text": "<form action=\"file name.php\" method=\"get\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "GET Method:"
        },
        {
          "type": "list",
          "items": [
            "Default method.",
            "Sends form data appended to the URL in name/value pairs.",
            "Limited to 2048 characters.",
            "Not applicable for sensitive information, because data is exposed on the URL",
            "Results can be bookmarked."
          ]
        },
        {
          "type": "heading",
          "level": "4",
          "text": "POST:"
        },
        {
          "type": "list",
          "items": [
            "Its form data is posted in the body of the HTTP request, therefore not appearing in the URL.",
            "No character limit; large amounts of data can be sent.",
            "Form submissions using POST cannot be bookmarked."
          ]
        },
        {
          "type": "textarea",
          "text": "<form action=\"file name.php\" method=\"post\">"
        }
      ]
    },
    {
      "title": "HTML Form Elements",
      "description": "HTML form elements are essential elements that enable users to interact and input data when asked for on a web page. These elements enable the creation of various input types, allowing users to submit information like text, selections, and more. ",
      "sub_description": "Here are some important and necessary elements, including &lt;input&gt;, &lt;label&gt;, &lt;select&gt;, and &lt;textarea&gt;, each serving a unique purpose in gathering user input effectively.",
      "additional_info": "A right understanding and use of such elements are critical during the development of functional, user-friendly forms.",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input&gt; tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input&gt; element is used to create several types of input controls in a form allowing users to input data.It supports multiple types, such as text, password, checkbox, radio button, and more, making it versatile for different user inputs."
        },
        {
          "type": "textarea",
          "text": "<style>\ninput{\n  margin:6px 8px 6px 0;\n  padding:6px 8px;\n  border:1px solid #ccc;\n  border-radius:4px;\n}\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"]{\n  margin-right:4px;\n}\n\ninput[type=\"range\"]{\n  vertical-align:middle;\n}\n</style>\n\n<input type=\"text\" placeholder=\"Enter your name\">\n<input type=\"checkbox\"> I agree to the terms\n<input type=\"radio\" name=\"gender\" value=\"male\"> Male\n<input type=\"radio\" name=\"gender\" value=\"female\"> Female\n<input type=\"email\" placeholder=\"Enter your email address\">\n<input type=\"number\" placeholder=\"Enter your age\">\n<input type=\"range\" min=\"0\" max=\"100\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;label&gt; tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;label&gt; element is used for specifying a label for an input element. This allows making the page more accessible and screen readers will read it when the corresponding input element receives focus.Clicking the label will activate the associated input element, enhancing user experience."
        },
        {
          "type": "textarea",
          "text": "<label for=\"fname\">First name</label>\n<input type=\"text\" id=\"fname\" name=\"fname\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;select&gt; tag:"
        },
        {
          "type": "paragraph",
          "text": "The &lt;select&gt; element generates a dropdown list of options. Multiple choice option from the list can be chosen.The &lt;option&gt; tags are nested within &lt;select&gt; to define the selectable options. By default, the first option is selected."
        },
        {
          "type": "textarea",
          "text": "<label for=\"subject\">Choose a subject:</label>\n<select id=\"subject\" name=\"subject\">\n\t<option value=\"English\">English</option>\n\t<option value=\"Hindi\">Hindi</option>\n\t<option value=\"Punjabi\">Punjabi</option>\n</select>"
        },
        {
          "type": "heading",
          "level": "5",
          "text": "Size Attribute:"
        },
        {
          "type": "paragraph",
          "text": "This defines how many options can be visible at once."
        },
        {
          "type": "textarea",
          "text": "<label for=\"subject\">Choose a subject:</label>\n<select id=\"subject\" name=\"subject\" size=\"3\">\n\t<option value=\"English\">English</option>\n\t<option value=\"Hindi\">Hindi</option>\n\t<option value=\"Punjabi\">Punjabi</option>\n</select>"
        },
        {
          "type": "heading",
          "level": "5",
          "text": "Multiple Attribute:"
        },
        {
          "type": "paragraph",
          "text": "To include selection of more than one option, the multiple attribute is applied."
        },
        {
          "type": "textarea",
          "text": "<label for=\"subject\">Choose a subject:</label>\n<select id=\"subject\" name=\"subject\" size=\"4\" multiple>\n\t<option value=\"English\">English</option>\n\t<option value=\"Hindi\">Hindi</option>\n\t<option value=\"Punjabi\">Punjabi</option>\n</select>"
        },
        {
          "type": "heading",
          "level": "5",
          "text": "Pre-selecting an Option:"
        },
        {
          "type": "paragraph",
          "text": "To pre-select an option, the selected attribute can be used."
        },
        {
          "type": "textarea",
          "text": "<label for=\"subject\">Choose a subject:</label>\n<select id=\"subject\" name=\"subject\">\n\t<option value=\"English\">English</option>\n\t<option value=\"Hindi\" selected>Hindi</option>\n\t<option value=\"Punjabi\">Punjabi</option>\n</select>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;textarea&gt; :"
        },
        {
          "type": "paragraph",
          "text": "The &lt;textarea&gt; element is a multi-line text input field. It is commonly used for user comments, reviews, or large text entries.The rows and cols attributes define how many rows and columns should be visible in a textarea, respectively."
        },
        {
          "type": "textarea",
          "text": "<textarea name=\"message\" rows=\"10\" cols=\"30\">\nExample : Fill your form\n</textarea>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&ltbutton&gt; :"
        },
        {
          "type": "paragraph",
          "text": "The &ltbutton&gt; element is a clickable button. Text, images, or other HTML elements can be included within the button. The button can have text and images, or even other HTML element incorporated."
        },
        {
          "type": "textarea",
          "text": "<button type=\"button\" onclick=\"alert('Hello World!')\">Click Me</button>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;fieldset&gt; and &lt;legend&gt; :"
        },
        {
          "type": "paragraph",
          "text": "The &lt;fieldset&gt; element is employed for collecting data that belongs together within a form. The &lt;legend&gt; element also features a caption for the collected data, thus enhancing organization and readability."
        },
        {
          "type": "textarea",
          "text": "<form action=\"file name.php\">\n\t<fieldset>\n\t\t<legend>Personalia:</legend>\n\t\t<label for=\"fname\">First name:</label><br>\n\t\t<input type=\"text\" id=\"fname\" name=\"fname\" value=\"First Name\"><br>\n\t\t<label for=\"number\">Your number:</label><br>\n\t\t<input type=\"number\" id=\"number\" name=\"number\" value=\"+91\"><br><br>\n\t\t<input type=\"submit\" value=\"Submit\">\n\t</fieldset>\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;datalist&gt;"
        },
        {
          "type": "paragraph",
          "text": "The &lt;datalist&gt; element specifies a list of pre-defined values associated with an input element.It introduces an autocomplete feature in which a drop-down list of suggestions is displayed as the user types. The list attribute of the &lt;input&gt; must reference the id of the &lt;datalist&gt; for it to function properly."
        },
        {
          "type": "textarea",
          "text": "<form action=\"file name.php\">\n\t<input list=\"courses\">\n\t<datalist id=\"courses\">\n\t\t<option value=\"HTML\">\n\t\t<option value=\"CSS\">\n\t\t<option value=\"Javascript\">\n\t</datalist>\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;output&gt;"
        },
        {
          "type": "paragraph",
          "text": "An output element should describe an output or result, which, in most cases is an outcome of some kind of computation or user action. It is typically used to display results of scripts or calculations directly in the form."
        },
        {
          "type": "textarea",
          "text": "<form oninput=\"total.value = (quantity.value || 0) * (price.value || 0)\">\n    <label for=\"quantity\">Quantity:</label>\n    <input type=\"number\" id=\"quantity\" min=\"1\" required>\n    \n    <label for=\"price\">Price per item:</label>\n    <input type=\"number\" id=\"price\" min=\"0\" step=\"0.01\" required>\n    \n    <label for=\"total\">Total Price:</label>\n   <output id=\"total\" name=\"total\">0.00</output>\n</form>"
        }
      ]
    },
    {
      "title": "HTML input types",
      "description": "HTML input types express how the component behaves in a frame and control the type of information users can input.",
      "sub_description": "It allows a range of interactive like entering content, selecting dates, uploading files, and much more.",
      "additional_info": "<h4>Common Input Types:</h4>",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"password\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "This component creates a password input field. It looks like an ordinary text field, except for the characters, which are hidden, usually depicted as dots or asterisks. This will prove useful in the hiding of sensitive information - namely the password, while it is typed."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t<label for=\"pwd\">Password:</label><br>\n\t<input type=\"password\" id=\"pwd\" name=\"pwd\">\n<form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"reset\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "This will create a Reset button that resets all fields inside the form back to their default settings. If no value is defined then by default, the button text will read \"Reset\". This can prove useful for letting users clear everything and begin again with the form."
        },
        {
          "type": "textarea",
          "text": "<form >\n\t<label for=\"fname\">First name:</label><br>\n\t<input type=\"text\" id=\"fname\" name=\"fname\"><br>\n\t<label for=\"lname\">Last name:</label><br>\n\t<input type=\"text\" id=\"lname\" name=\"lname\"><br><br>\n\t<input type=\"submit\" value=\"Submit\">\n\t <input type=\"reset\" value=\"Reset\">\n<form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"button\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input type=\"button\"&gt; will give a clickable button. Although the button has no predefined function, through the help of JavaScript, it can be programmed to do some functions such as triggering event operations, displaying message prompts or even submitting data."
        },
        {
          "type": "textarea",
          "text": "<input type=\"button\" onclick=\"alert('Hello World!')\" value=\"Click Me\">"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"color\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The '&lt;input type=\"color\"&gt;' input produces a color picker. The color defaulted would be black (#000000), but that could also be changed. The user could either pick a color from the picker or just type in a hexadecimal value."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"favcolor\">Select your favorite color:</label>\n\t <input type=\"color\" id=\"favcolor\" name=\"favcolor\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"date\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input type=\"date\"&gt; provides a date picker for users to select a date. You can also set the minimum and maximum selectable dates using the min and max attributes, which can restrict the range of allowed dates."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"birthday\">Your Birthday Date:</label>\n\t <input type=\"date\" id=\"birthday\" name=\"birthday\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"email\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input type=\"email\"&gt; is used for entering email addresses. It contains in-built validation that will check whether the entered text has the format of an email, which means including an \"@\" symbol and a domain. "
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"email\">Enter your email:</label>\n\t <input type=\"email\" id=\"email\" name=\"email\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"file\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "&lt;input type=\"file\"&gt; enables uploading any type of file directly from local devices. For example, it is very regularly used for the uploading of documents, images, or any other type of file. It allows users to browse through their file system and choose a file they want to upload."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"myfile\">Select a file:</label>\n\t <input type=\"file\" id=\"file\" name=\"file\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"hidden\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input type=\"hidden\"&gt; tag creates an input field that users can't see. Its data will be submitted with the form, but the user will not be able tsee this information. This is often used to store IDs for records or tracking data that is not going to be output on the form."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"fname\">Enter your fname:</label>\n\t <input type=\"text\" id=\"fname\" name=\"fname\"><br><br>\n\t <input type=\"hidden\" id=\"custId\" name=\"custId\" value=\"3487\">\n\t <input type=\"submit\" value=\"Submit\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"number\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input type=\"number\"&gt; accepts only numbers. You can set the number range and the step allowed with attributes like min, max, and step. The value attribute lets you specify a default number."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"quantity\">Quantity (between 0 and 10):</label>\n\t <input type=\"number\" id=\"quantity\" name=\"quantity\" min=\"0\" max=\"10\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"search\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "Now comes the search input as it creates a search box, which is optimized for entry of the search query. Typically such an input type comes with a clear button, which may vary with browser."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"gsearch\">Search Google:</label>\n\t <input type=\"search\" id=\"gsearch\" name=\"gsearch\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"tel\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The phone input is defined by &lt;input type=\"tel\"&gt;, a field for entering telephone numbers. It enforces no validation for phone numbers but makes user input in a phone-number-friendly format more likely to succeed."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"phone\">Enter your phone number:</label>\n\t <input type=\"tel\" id=\"phone\" name=\"phone\" pattern=\"[0-9]{3}-[0-9]{2}-[0-9]{3}\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"time\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The input type of &lt;input type=\"time\"&gt; creates a control to select a specific time, given typically as hours and minutes. It does not take into account the time zone but still enables the entry of time values such as \"12:30\" or \"15:45.\""
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"appt\">Select a time:</label>\n\t <input type=\"time\" id=\"appt\" name=\"appt\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"url\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input type=\"url\"&gt; is designed to be used for addressing the Internet. It supports basic validation so that input looks like a valid URL - it begins with \"http://\" or \"https://,\" for example."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"homepage\">Add your homepage:</label>\n\t <input type=\"url\" id=\"homepage\" name=\"homepage\">\n</form>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "&lt;input type = \"week\"&gt;"
        },
        {
          "type": "paragraph",
          "text": "The &lt;input type=\"week\"&gt; field is used to create an input field that will select a certain week and year. For example, the picker will always generate \"Week 40, 2024\". This can be very useful as the user needs to determine a week for tasks, scheduling, or reporting."
        },
        {
          "type": "textarea",
          "text": "<form>\n\t <label for=\"week\">Select a week:</label>\n\t <input type=\"week\" id=\"week\" name=\"week\">\n</form>"
        }
      ]
    }
  ],
  "HTML Multimedia": [
    {
      "title": "HTML Multimedia",
      "description": "HTML Multimedia covers all those forms of content which take on images, videos, animations, music, audio, or film and can be included in web pages.",
      "sub_description": "HTML5 made it incredibly easy to include multimedia content directly into web pages without needing additional plugins.",
      "additional_info": "Following is a brief look at how multimedia is created in HTML:",
      "content": [
        {
          "type": "heading",
          "level": "4",
          "text": "HTML Video"
        },
        {
          "type": "paragraph",
          "text": "The video tag allows a page to embed video files. The controls attribute will allow addition of video controls, like play or pause or volume.The video dimensions are also set by the usage of the width and height attributes.The purpose of the src attribute is to specify a path to the video file. The video type-usually MP4 or WebM-is set with the type attribute."
        },
        {
          "type": "paragraph",
          "text": "You can provide additional video formats by using the source element, and the browser will pick up the first one that it can support. The browser either supports the video element, or if it doesn't support that, it will display any text that you place between &lt;video&gt; and &lt;/video&gt;."
        },
        {
          "type": "textarea",
          "text": "<video width=\"320\" height=\"240\" controls>\n\t <source src=\"https://www.webcooks.in/lms/assets/media/webcooks-video.mp4\" type=\"video/mp4\">\n</video>"
        },
        {
          "type": "heading",
          "level": "4",
          "text": "HTML Audio"
        },
        {
          "type": "paragraph",
          "text": "An &lt;audio&gt; tag is included in a web page to include audio or music. Controls attribute, as with video, adds a play button, pause button, and volume adjustment buttons. You can specify multiple audio formats using the &lt;source&gt; tag, and the browser will pick the first compatible format. In the &lt;audio&gt; tag, you use the src attribute to define the file path for the audio and type to indicate the type of the audio file-type, either MP3 or OGG."
        },
        {
          "type": "textarea",
          "text": "<audio controls>\n\t <source src=\"https://www.webcooks.in/lms/assets/media/webcooks-audio.mpeg\" type=\"audio/mpeg\">\n</audio>"
        }
      ]
    }
  ]
}