What is HTML 🛠 ?

HTML (HyperText Markup Language) is a standard markup language used to create web pages. It consists of a set of tags that define the structure and content of a web page.
What are HTML Tags?
HTML tags are simple instructions that tell a web browser how to format text. You can use tags to format italics, line breaks, objects, bullet points, and more.
These tags live in the HTML (or the Hypertext Markup Language) of every webpage. Put, HTML is the language of web pages.
Most Common HTML Tags 👇
- <html>
- <body>
- <main>
- <head>
- <script>
- <h1> to <h6>
- <p>
- <br>
- <hr>
- <ul>
- <li>
- <table>
- <tr>
- <td>
- <div>
- <nav>
- <footer>
- <img>
- <form>
- <input>
- <label>
- <video>
- <textarea>
- <svg>
- <style>
- <span>
- <section>
- <option>
- <meta>
- <field>
Here is a list of common HTML tags that you may find useful 😥.
You should know!
You can learn much more about Html in our Html Courses.
Short definition Of HTML Tags
- <!--...--> Defines a comment
- <!DOCTYPE> Defines the document type
- <a> Defines a hyperlink
- <abbr> Defines an abbreviation or an acronym
- <address> Defines contact information for the author/owner of a document Defines an embedded applet
- <area> Defines an area inside an image map
- <article> Defines an article
- <aside> Defines content aside from the page content
- <audio> Defines embedded sound content
- <b> Defines bold text
- <base> Specifies the base URL/target for all relative URLs in a document
- <blockquote> Defines a section that is quoted from another source
- <body> Defines the document's body
- <br> Defines a single line break
- <button> Defines a clickable button
- <canvas> Used to draw graphics, on the fly, via scripting (usually JavaScript)
- <caption> Defines a table caption
- <del> Defines text that has been deleted from a document
- <details> Defines additional details that the user can view or hide
- <div> Defines a section in a document
- <dl> Defines a description list
- <dt> Defines a term/name in a description list
- <em> Defines emphasized text
- <embed> Defines a container for an external application
- <fieldset> Groups related elements in a form
- <figcaption> Defines a caption for a <figure> element
- <figure> Specifies self-contained content
- <footer> Defines a footer for a document or section
- <form> Defines an HTML form for user input
- <h1> to <h6> Defines HTML headings
- <head> Contains metadata/information for the document
- <header> Defines a header for a document or section
- <hr> Defines a thematic change in the content
- <html> Defines the root of an HTML document
- <i> Defines a part of text in an alternate voice or mood
- <iframe> Defines an inline frame
- <img> Defines an image
- <input> Defines an input control
- <label> Defines a label for an <input> element
- <li> Defines a list item
- <main> Specifies the main content of a document
- <mark> Defines marked/highlighted text
- <meta> Defines metadata about an HTML document
- <nav> Defines navigation links
- <noscript> Defines an alternate content for users that do not support client-side scripts
- <ol> Defines an ordered list
- <option> Defines an option in a drop-down list
- <output> Defines the result of a calculation
- <p> Defines a paragraph
- <param> Defines a parameter for an object
- <picture> Defines a container for multiple image resources
- <pre> Defines preformatted text
- <progress> Represents the progress of a task
- <samp> Defines sample output from a computer program
- <script> Defines a client-side script
- <section> Defines a section in a document
- <select> Defines a drop-down list
- <small> Defines smaller text
- <source> Defines multiple media resources for media elements (<video> and <audio>)
- <span> Defines a section in a document
- <strong> Defines important text
- <style> Defines style information for a document
- <sub> Defines subscripted text
- <summary> Defines a visible heading for a <details> element
- <sup> Defines superscripted text
- <svg> Defines a container for SVG graphics
- <table> Defines a table
- <tbody> Groups the body content in a table
- <td> Defines a cell in a table
- <template> Defines a container for content that should be hidden when the page loads
- <textarea> Defines a multiline input control (text area)
- <tfoot> Groups the footer content in a table
- <th> Defines a header cell in a table
- <thead> Groups the header content in a table
- <time> Defines a specific time (or datetime)
- <title> Defines a title for the document
- <tr> Defines a row in a table
- <u> Defines some text that is unarticulated and styled differently from normal text
- <ul> Defines an unordered list
- <var> Defines a variable
- <video> Defines embedded video content
- <wbr> Defines a possible line-break
HTML basic format
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html>
- The <!DOCTYPE html> declaration defines that this document is an HTML5 document
- The <html> element is the root element of an HTML page
- The <head> element contains meta information about the HTML page
- The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
- The <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.
- The <h1> element defines a large heading
- The <p> element defines a paragraph
HTML 5 format
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> </head> <body> <!-- format --> </body> </html>
Possimus saepe veritatis sint nobis et quam eos. Architecto consequatur odit perferendis fuga eveniet possimus rerum cumque. Ea deleniti voluptatum deserunt voluptatibus ut non iste. Provident nam asperiores vel laboriosam omnis ducimus enim nesciunt quaerat. Minus tempora cupiditate est quod.
What is an HTML Element ?
An HTML element is defined by a start tag, some content, and an end tag: <tagname> Content goes here... </tagname>