<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dilki Gamage on Medium]]></title>
        <description><![CDATA[Stories by Dilki Gamage on Medium]]></description>
        <link>https://medium.com/@dilkigamage28?source=rss-da1243b1ede4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*25FB0XI9kDNOLSsC</url>
            <title>Stories by Dilki Gamage on Medium</title>
            <link>https://medium.com/@dilkigamage28?source=rss-da1243b1ede4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:46:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dilkigamage28/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction to HTML and categorized HTML tags reference]]></title>
            <link>https://medium.com/star-gazers/introduction-to-html-and-categorized-html-tags-reference-12cc65a4560f?source=rss-da1243b1ede4------2</link>
            <guid isPermaLink="false">https://medium.com/p/12cc65a4560f</guid>
            <dc:creator><![CDATA[Dilki Gamage]]></dc:creator>
            <pubDate>Tue, 23 Feb 2021 10:40:38 GMT</pubDate>
            <atom:updated>2021-10-15T17:43:00.152Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*4BNwHfVlymjNDpQaN1X_dA.jpeg" /></figure><h3><strong>Introduction</strong></h3><p><strong>HTML </strong>is all about how the data is organized. It’s not a matter of how anything looks; that’s what CSS is about, which we’re going to research tomorrow. Just as a building is only as strong as its base, the skeleton keeping everything together is HTML. HTML makes sure the page is available on many devices and browsers to place it in a more web-based sense and offers a framework for applying CSS, JavaScript, and the content of the website or application itself.</p><h3>Element tags</h3><p>There are HTML tags for any HTML element, and a tag (<em>&lt;h1&gt;</em> or <em>&lt;/h1&gt;</em>) is surrounded by angled brackets such as <em>&lt;and&gt;</em>. Tags classify elements and tell the browser how to show them (for example, they can tell the browser whether an element is an image or a paragraph of text).</p><p>There are an opening tag and a closing tag for most HTML elements that indicate where the element starts and finishes. The closing tag is just the opening tag before the name of the part, with a forward <em>slash (/)</em>. You can see an HTML element’s format as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*3-048XpXOUD5YV9EB3SS_g.png" /></figure><p>Content is something we’re including here. In our h1 example, it can be anything, like <strong>“Hello world”,</strong> “<strong>element name</strong>”, however, has to be one of the predefined tags such as h1, h3, p, or strong.</p><p>Before we dive in and use them, let’s take a look at a few important things to know about HTML elements.</p><h3>Element attributes</h3><p>HTML elements may have certain attributes which change their behavior and functionality. Inside the opening tag, these attributes are written. Look at the following example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*owGLqKNPZNyAYYqjxZTmZw.png" /></figure><p>We have an image element with an attribute of “width” with a value of 300 and an attribute of “height” with a value of 200, which makes the image 300px wide and 200px tall, as you might guess.</p><p><strong>Note</strong>: — There’s no content in some elements, and so they don’t have to have a closing tag. For example, images need a <strong>“src”</strong> attribute only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*pKFgqZQoP8wsTbgigvZPzw.png" /></figure><p>Note /&gt; (instead of &lt;/img&gt;) at the end. This is because there is a source attribute (src) for image elements that fetches the image to be displayed. There’s no material inside that needs to go. Other components don’t need a closing tag, similar to img.</p><h3>General rules</h3><p>There are a few general steps, apart from these, that apply to all HTML pages. The outermost HTML unit, for instance, needs to be &lt;html&gt; itself. Similarly, while all configuration / metadata go into &lt;head&gt;, all ‘visible’ content goes into &lt;body&gt;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*NOt60OgsX8OEwPy-MT2BYQ.png" /></figure><p>That was why the &lt;title&gt; went into the &lt;head&gt;, and it was picked up and displayed by the browser as the title of the webpage (although inside the website it was not visible).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*7Z8V5oG9s4K1Cx5wKGMTEQ.jpeg" /></figure><h3>HTML elements</h3><p>Let’s look at some of the elements that we’ll be using in HTML.</p><h3>Headings</h3><p>The headings are exactly as indicated by the name. There are six headings in JavaScript, ranging from h1 to h6. The largest and most relevant heading is heading 1 or h1; it means that this is the most important text on the list. As we step towards h6, the value decreases progressively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*6NLBoiYIVhPuO9dcgnoyQQ.png" /></figure><h3>Anchor Links</h3><p>In HTML, the anchor element enables Hypertext. It can connect to another page on the same website or to another website. Here’s how to create an anchor link to the homepage of Google:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*Jfmfn82hB4LWrvHzpWl2jg.png" /></figure><h3>Ordered &amp; Unordered Lists</h3><p>For viewing data in an organized or unordered array, lists are very helpful. We use <strong>&lt;ol&gt;</strong> tag for ordered lists (a list that uses numbers) and <strong>&lt;ul&gt;</strong> tag for unordered lists (a list of bullet points). Each list item is denoted by <strong>&lt;li&gt;</strong> inside one of these items. An example is here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*VtnGybKNp-1EoI88fqvtsA.png" /></figure><h3>Divisions and spans</h3><p>It is possible to imagine anything on a website being stored in a set of boxes. Our task as web developers is to organize these boxes on all screens so that the whole page looks good. There are text, photos, and everything else in these boxes that we see on WebPages.</p><p>These box names are divisions (div) and periods (div) (span). Divs and spans do nothing on their own, but we add stuff like text and pictures to them, and they let us put the text and pictures as we like them.</p><p>A good analogy for bags is divs and spans. Bags are not very useful on their own, such as handbags or backpacks. There will be nobody dragging an empty bag around. When we store stuff in them, they become beneficial, helping us keep things organized. That’s how we love thinking about divisions and lengths. They’re containers on your website for the actual key elements.</p><p>· Let&#39;s learn more about HTML tags by categorizing them.</p><h3><strong>Main root</strong></h3><p><strong>Element | Definition</strong></p><p><strong>&lt;html&gt;</strong> :- Represents the root (top-level element) of an HTML document, so it is also referred to as the <strong>root element</strong>. All other elements must be descendants of this element.</p><h3>Metadata</h3><p>Metadata contains information about the page. This includes information about styles, scripts, and data to help software use and render the page.</p><p><strong><em>Element | Definition</em></strong></p><p><strong>&lt;base&gt;</strong> :- Specifies the base URL to use for all relative URLs in a document.</p><p><strong>&lt;head&gt;</strong> :- contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets<em>.</em></p><p><strong>&lt;link&gt;</strong> :- Specifies relationships between the current document and an external resource. This element is most commonly used to link to CSS but is also used to establish site icons among other things.</p><p><strong>&lt;meta&gt;</strong> :- Represents Metadata that cannot be represented by other HTML meta-related elements, like base, link, script, style, or title.</p><p><strong>&lt;style&gt;</strong> :- contains style information for a document, or part of a document.</p><p><strong>&lt;title&gt;</strong> :- Defines the document’s title that is shown in a Browser’s title bar or a page’s tab.</p><h3><strong>Sectioning root</strong></h3><p><strong>Element | Definition</strong></p><p><strong>&lt;body&gt;</strong> :- Represents the content of an HTML document. There can be only one <strong>&lt;body&gt;</strong> element in a document.</p><h3>Content sectioning</h3><p>Content sectioning elements allow you to organize the document content into logical pieces. Use the sectioning elements to create a broad outline for your page content, including header and footer navigation, and heading elements to identify sections of content.</p><p><strong><em>Element | Definition</em></strong></p><p><strong>&lt;address&gt;</strong> :- Indicates that the enclosed HTML provides contact information for a person or people, or for an organization.</p><p><strong>&lt;article&gt;</strong> :- Represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable.</p><p><strong>&lt;aside&gt;</strong> :- Represents a portion of a document whose content is only indirectly related to the document’s main content.</p><p><strong>&lt;footer&gt;</strong> :- Represents a footer for its nearest sectioning content or sectioning root element. A footer typically contains information about the author of the section, copyright data, or links to related documents.</p><p><strong>&lt;header&gt;</strong> :- Represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.</p><p><strong>&lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, &lt;h4&gt;, &lt;h5&gt;, &lt;h6&gt;</strong> :- Represent six levels of section headings. &lt;h1&gt; is the <em>biggest</em> section level and &lt;h6&gt; is the <em>smallest</em>.</p><p><strong>&lt;hgroup&gt;</strong> :- Represents a multi-level heading for a section of a document. It groups a set of &lt;h1&gt;–&lt;h6&gt; elements.</p><p><strong>&lt;main&gt;</strong> :- Represents the dominant content of the body of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.</p><p><strong>&lt;nav&gt;</strong> :- Represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents. Common examples of navigation sections are menus, tables of contents, and indexes.</p><p><strong>&lt;section&gt;</strong> :- Represents a generic standalone section of a document, which doesn’t have a more specific semantic element to represent it.</p><h3>Text content</h3><p><strong>Element | Definition</strong></p><p><strong>&lt;blockquote&gt;</strong> :- This indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation. A URL for the source of the quotation may be given using the <strong>cite</strong> attribute, while a text representation of the source can be given using the cite element.</p><p><strong>&lt;dd&gt;</strong> :- Provides the description, definition, or value for the preceding term (dt) in a description list (dl).</p><p><strong>&lt;dl&gt;</strong> :- Represents a description list. The element encloses a list of groups of terms (specified using the dt element) and descriptions (provided by dd elements). Common Uses for this element are to implement a glossary or to display metadata.</p><p><strong>&lt;dt&gt;</strong> :- Specifies a term in a description or definition list, and as such must be used inside a dl element.</p><p><strong>&lt;figcaption&gt;</strong> :- Represents a caption or legend describing the rest of the contents of its parent figure element.</p><p><strong>&lt;figure&gt;</strong> :- Represents self-contained content, potentially with an optional caption, which is specified using the (figcaption) element.</p><p><strong>&lt;hr&gt;</strong> :- Represents a thematic break between paragraph-level elements.</p><p><strong>&lt;li&gt;</strong> :- Used to represent an item in a list.</p><p><strong>&lt;ol&gt;</strong> :- Represents an ordered list of items: typically rendered as a numbered list.</p><p>&lt;ul&gt; :- Represents an unordered list of items: typically rendered as a bulleted list.</p><p>&lt;p&gt; :- Represents a paragraph.</p><p>&lt;pre&gt; :- Represents preformatted text which is to be presented exactly as written in the HTML file.</p><h3><strong>Inline text semantics</strong></h3><p><strong>Element | Definition</strong></p><p>&lt;a&gt; :- This <em>anchor</em> element, with its <strong>href</strong> attribute, creates a hyperlink to web pages, files, email addresses, locations on the same page, or anything else a URL can address.</p><p>&lt;abbr&gt; :- Represents an abbreviation or acronym; the optional title attribute can provide an expansion or description for the abbreviation.</p><p>&lt;b&gt; :- Represents bold words or phrases. Used to draw the reader’s attention to the element’s contents, which are not otherwise granted special importance.</p><p>&lt;bdi&gt; :- Tells the browser’s bidirectional algorithm to treat the text it contains in isolation from its surrounding text.</p><p>&lt;bdo&gt; :- Overrides the current directionality of text, so that the text within is rendered in a different direction.</p><p><strong>&lt;br&gt;</strong> :- Produces a line break in a text. It is useful for writing a poem or an address, where the division of lines is significant.</p><h3><strong>Image and multimedia</strong></h3><p><strong>Element | Definition</strong></p><p><strong>&lt;area&gt;</strong> :- Defines an area inside an image map that has predefined clickable areas. An image map allows geometric areas on an image to be associated with Hyperlink.</p><p><strong>&lt;audio&gt;</strong> :- Used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the source element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.</p><p><strong>&lt;img&gt;</strong> :- Embeds an image into the document.</p><p><strong>&lt;map&gt;</strong> :- Used with area elements to define an image map (a clickable link area).</p><p><strong>&lt;track&gt;</strong> :- Used as a child of the media elements, audio, and video. It lets you specify timed text tracks (or time-based data), for example, to automatically handle subtitles.</p><p><strong>&lt;video&gt; </strong>:- Embeds a media player which supports video playback into the document. You can use &lt;video&gt; for audio content as well, but the audio element may provide a more appropriate user experience.</p><h3><strong>Demarcating edits</strong></h3><p><strong>Element | Definition</strong></p><p><strong>&lt;del&gt;</strong> :- Represents a range of text that has been deleted from a document.</p><p><strong>&lt;ins&gt;</strong> :- Represents a range of text that has been added to a document.</p><h3><strong>HTML Forms</strong></h3><p>HTML provides a number of elements that can be used together to create forms that the user can fill out and submit to the Web site or application.</p><p><strong>Element | Definition</strong></p><p><strong>&lt;button&gt;</strong> :- Represents a clickable button, used to submit forms or anywhere in a document for accessible, standard button functionality.</p><p><strong>&lt;datalist&gt;</strong> :- Contains a set of option elements that represent the permissible or recommended options available to choose from within other controls.</p><p><strong>&lt;fieldset&gt;</strong> :- Used to group several controls as well as labels within a web form.</p><p><strong>&lt;form&gt;</strong> :- Represents a document section containing interactive controls for submitting information.</p><p><strong>&lt;input&gt;</strong> :- Used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.</p><p><strong>&lt;label&gt;</strong> :- Represents a caption for an item in a user interface.</p><p><strong>&lt;legend&gt;</strong> :- Represents a caption for the content of its parent fieldset.</p><p><strong>&lt;meter&gt;</strong> :- Represents either a scalar value within a known range or a fractional value.</p><p><strong>&lt;optgroup&gt;</strong> :- Creates a grouping of options within a select element.</p><p><strong>&lt;option&gt;</strong> :- Used to define an item contained in a select, an optgroup, or a datalist element. As such, &lt;option&gt; can represent menu items in popups and other lists of items in an HTML document.</p><p><strong>&lt;output&gt;</strong> :- Is a container element into which a site or app can inject the results of a calculation or the outcome of a user action.</p><h3><strong>Interactive elements</strong></h3><p><strong>Element | Definition</strong></p><p><strong>&lt;details&gt;</strong> :- Creates a disclosure widget in which information is visible only when the widget is toggled into an “open” state.</p><p><strong>&lt;dialog&gt;</strong> :- Represents a dialog box or other interactive components, such as a dismissible alert, inspector, or subwindow.</p><p><strong>&lt;menu&gt; </strong>:- Represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.</p><p><strong>&lt;summary&gt;</strong> :- Specifies a summary, caption, or legend for a details element’s disclosure box.</p><p>🔵🟡🟤⚫🟢🔴</p><blockquote>From this article, you can get a basic knowledge about <strong>HTML</strong> and various kinds of <strong>HTML elements</strong>. You’ll generally do at the beginning of any web project: structure your data and put it into the right <strong>HTML</strong> <strong>elements</strong>. You can focus on the style and functionality. So this article will help to add more color, formatting, and positioning to your HTML document.</blockquote><p>🔵🟡🟤⚫🟢🔴</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12cc65a4560f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/star-gazers/introduction-to-html-and-categorized-html-tags-reference-12cc65a4560f">Introduction to HTML and categorized HTML tags reference</a> was originally published in <a href="https://medium.com/star-gazers">Star Gazers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>