All About HTML and Tags

All About HTML and Tags

Complete Guide For the HTML and Tags

·

7 min read

In this article, I will be writing brief details about HTML and Tags and Uses

What is HTML?

HTML (HyperText Markup Language) is a standard markup language for creating web pages. It describes the Structure of the webPages, its allows creation of the sections and paragraphs and links using HTML elements(the building blocks of a web page) such as tags and attributes.

<!DOCTYPE html>
<html>
    <head>
        <title>Page Title</title>
    </head>
    <body>
        <h1>This is a Heading</h1>
        <p>This is a paragraph.</p>
    </body>
</html>

<!DOCTYPE html> declaration defines that this document is an HTML5 document

<!DOCTYPE html> declaration defines that this document is an HTML5 document

<html> element is the root element of an HTML page

<head> element contains meta-information about the HTML page

<title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)

<body> element defines the document's body and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.<h1> element defines a large heading

<p> element defines a paragraph

What is an HTML element?

An HTML element is a component of an HTML document that tells a web browser how to structure and interpret a part of the HTML document. It consists of a start tag, its attributes, an end tag, and everything in between, HTML elements can contain formatting instructions, semantic meaning, and content

An HTML element is defined by a start tag, some content, and an end tag:

<tagname> Content goes here... </tagname>

HTML Attribute

HTML attributes provide additional information about HTML elements. Attributes are always specified in the start tag. Attributes usually come in name/value pairs like name="value"

HTML Page Structure

visualization of an HTML page structure

HTML History

HTML Tag

  1. An HTML tag is a set of characters used to indicate the beginning and end of an HTML element in an HTML document.

  2. It provides directions or recipes for the visual content that one sees on the web.

  3. HTML tags help web browsers convert HTML documents into web pages, including the placement of text and images and hypertext links.

  1. <!DOCTYPE>: Defines the document type

  2. <a>: Defines a hyperlink

  3. <abbr>: Defines an abbreviation or acronym

  4. <address>: Defines contact information for the author/owner of a document

  5. <area>: Defines an area inside an image map

  6. <article>: Defines an article

  7. <aside>: Defines content aside from the page content

  8. <audio>: Defines embedded sound content

  9. <b>: Defines bold text

  10. <base>: Specifies the base URL/target for all relative URLs in a document

  11. <bdi>: Isolates a part of text that might be formatted in a different direction from other text outside it

  12. <bdo>: Overrides the current text direction

  13. <blockquote>: Defines a section that is quoted from another source

  14. <body>: Defines the document's body

  15. <br>: Defines a single line break

  16. <button>: Defines a clickable button

  17. <canvas>: Used to draw graphics, on the fly, via scripting (usually JavaScript)

  18. <caption>: Defines a table caption

  19. <cite>: Defines the title of a work

  20. <code>: Defines a piece of computer code

  21. <col>: Specifies column properties for each column within a <colgroup> element

  22. <colgroup>: Specifies a group of one or more columns in a table for formatting

  23. <data>: Adds a machine-readable translation of a given content

  24. <datalist>: Specifies a list of pre-defined options for input controls

  25. <dd>: Defines a description/value of a term in a description list

  26. <del>: Defines text that has been deleted from a document

  27. <details>: Defines additional details that the user can view or hide

  28. <dfn>: Specifies a term that is going to be defined within the content

  29. <dialog>: Defines a dialog box or window

  30. <dir>: Not supported in HTML5. Use <ul> instead. (Defines a directory list)

  31. <div>: Defines a section in a document

  32. <dl>: Defines a description list

  33. <dt>: Defines a term/name in a description list

  34. <em>: Defines emphasized text

  35. <embed>: Defines a container for an external application

  36. <fieldset>: Groups related elements in a form

  37. <figcaption>: Defines a caption for a <figure> element

  38. <figure>: Specifies self-contained content

  39. <font>: Not supported in HTML5. Use CSS instead. (Defines font, color, and size for text)

  40. <footer>: Defines a footer for a document or section

  41. <form>: Defines an HTML form for user input

  42. <frame>: Not supported in HTML5. (Defines a window in a frameset)

  43. <frameset>: Not supported in HTML5. (Defines a set of frames)

  44. <h1> to <h6>: Define HTML headings

  45. <head>: Contains metadata/information for the document

  46. <header>: Defines a header for a document or section

  47. <hr>: Defines a thematic change in the content

  48. <html>: Defines the root of an HTML document

  49. <i>: Defines a part of text in an alternate voice or mood

  50. <iframe>: Defines an inline frame

  51. <img>: Defines an image

  52. <input>: Defines an input control

  53. <ins>: Defines a text that has been inserted into a document

  54. <kbd>: Defines keyboard input

  55. <label>: Defines a label for an <input> element

  56. <legend>: Defines a caption for a <fieldset> element

  57. <li>: Defines a list item

  58. <link>: Defines the relationship between a document and an external resource (often used to link to style sheets)

  59. <main>: Specifies the main content of a document

  60. <map>: Defines an image map

  61. <mark>: Defines marked/highlighted text

  62. <meta>: Defines metadata about an HTML document

  63. <meter>: Defines a scalar measurement within a known range (a gauge)

  64. <nav>: Defines navigation links

  65. <noframes>: Not supported in HTML5. (Defines an alternate content for users that do not support frames)

  66. <noscript>: Defines an alternate content for users that do not support client-side scripts

  67. <object>: Defines a container for an external application

  68. <ol>: Defines an ordered list

  69. <optgroup>: Defines a group of related options in a drop-down list

  70. <option>: Defines an option in a drop-down list

  71. <output>: Defines the result of a calculation

  72. <p>: Defines a paragraph

  73. <param>: Defines a parameter for an object

  74. <picture>: Defines a container for multiple image resources

  75. <pre>: Defines preformatted text

  76. <progress>: Represents the progress of a task

  77. <q>: Defines a short quotation

  78. <rp>: Defines what to show in browsers that do not support ruby annotations

  79. <rt>: Defines an explanation/pronunciation of characters (for East Asian typography)

  80. <ruby>: Defines a ruby annotation (for East Asian typography)

  81. <s>: Defines text that is no longer correct

  82. <samp>: Defines sample output from a computer program

  83. <script>: Defines a client-side script

  84. <section>: Defines a section in a document

  85. <select>: Defines a drop-down list

  86. <small>: Defines smaller text

  87. <source>: Defines multiple media resources for media elements

  88. <span>: Defines a section in a document

  89. <strong>: Defines important text

  90. <style>: Defines style information for a document

  91. <sub>: Defines subscripted text

  92. <summary>: Defines a visible heading for a <details> element

  93. <sup>: Defines superscripted text

  94. <svg>: Defines a container for SVG graphics

  95. <table>: Defines a table

  96. <tbody>: Groups the body content in a table

  97. <td>: Defines a cell in a table

  98. <template>: Defines a container for content that should be hidden when the page loads

  99. <textarea>: Defines a multiline input control (text area)

  100. <tfoot>: Groups the footer content in a table

  101. <th>: Defines a header cell in a table

  102. <thead>: Groups the header content in a table

  103. <time>: Defines a specific time or datetime

  104. <title>:Defines a title for the document

  105. <tr>: Defines a row in a table

  106. <track>: Defines text tracks for media elements

  107. <tt>: Not supported in HTML5. Use CSS instead. (Defines teletype text)

  108. <u>: Defines text that is stylistically different from normal text

  109. <ul>: Defines an unordered list

  110. <var>: Defines a variable

  111. <video>: Defines embedded video content

  112. <wbr>: Defines a possible line-break

Conclusion

This blog am just got the information from the internet on my research depend so if you feel anything wrong please let me know