Skip to main content
codingCourses
  • HTML
  • CSS
  • JavaScript
  • PHP
  • HTML Tutorial
  • HTML Elements
  • HTML Attributes
  • Special Characters & Emojis
  • Practical Tips
HTML
  • HTML Tutorial
  • <!DOCTYPE html>
    The Correct Meaning of the Declaration
HTML Elements
  • HTML Element Reference
  • <abbr>
  • <address>
  • <article>
  • <aside>
  • <blockquote>
  • <br>
  • <cite>
  • <del>
  • <details>
  • <dfn>
  • <div>
  • <dl>
  • <dt>
  • <dd>
  • <em>
  • <figure>
  • <figcaption>
  • <footer>
  • <h1>~<h6>
  • <header>
  • <hr>
  • <ins>
  • <kbd>
  • <label>
  • <li>
  • <main>
  • <mark>
  • <menu>
  • <nav>
  • <ol>
  • <p>
  • <q>
  • <picture>, <source>
  • <section>
  • <span>
  • <strong>
  • <summary>
  • <sub>
  • <sup>
  • <template>
  • <time>
  • <ul>
HTML Attributes
  • HTML Attribute Reference
  • contenteditable
    Making HTML Elements Editable
  • cite
    Referencing the Source URL
  • datetime
    Specifying the Date and Time
  • enterkeyhint
    Specifying the Enter key for virtual keyboards
  • inputmode
    Specifying the Virtual Keyboard Input Mode
  • lang
    Specifying the Primary Language
  • rel
    Meaning, List, and Examples
  • role
    A Guide to ARIA Roles & Accessibility
  • title
    Advisory Information for the Element
  • <img> Tag with srcset & sizes
    Responsive Images with <img>
HTML Special Characters & Emojis
  • Special Character & Emoji Reference
  • HTML Special Characters
    Avoiding Conflicts with Reserved Symbols
  • HTML Special Characters List
    Organized HTML Special Characters List
  • Using Emoji in Your Web Pages
    How to Add Emoji to HTML Pages
  • Emoji List
    Includes Unicode and HTML Entity Codes
HTML Practical Tips
  • Practical Tip Reference
  • The Complete Guide to <video> Autoplay
    Why It’s Not Working and How to Fix It

HTML Attribute Reference

HTML Next

HTML attributes provide additional information about HTML elements. HTML elements are typically represented by tags, and those tags can include one or more attributes. These attributes define an element’s behavior, appearance, and how it functions.

HTML Attribute Reference
contenteditable
Making HTML Elements Editable
The contenteditable attribute specifies whether the content of an element is editable. When set to true, the content becomes editable. When set to false, editing is disabled.
cite
Referencing the Source URL
The cite attribute specifies the source URL of a quote or change, and is used in q, blockquote, ins, and del tags. It helps authors and search engines understand the source of the quoted or modified content.
datetime
Specifying the Date and Time
The datetime attribute specifies a machine-readable date or time for the element. It is used with the del, ins, and time tags.
enterkeyhint
Specifying the Enter key for virtual keyboards
The enterkeyhint attribute explicitly specifies the text or icon label for the Enter key on virtual keyboards, allowing you to define the action label users see.
inputmode
Specifying the Virtual Keyboard Input Mode
The inputmode attribute specifies the virtual keyboard input mode for input fields on devices like mobile phones and tablets.
lang
Specifying the Primary Language
The lang attribute specifies the primary language of an element's content and of any text-containing attributes.
rel
Meaning, List, and Examples
The rel attribute is used to specify the relationship between the current document and the linked resource.
role
A Guide to ARIA Roles & Accessibility
The role attribute in HTML is an extension of the standard element model that adds clearer meaning and structure to HTML elements.
title
Advisory Information for the Element
The title attribute represents advisory information about the element, such as guidance or descriptive notes.
<img> Tag with srcset & sizes
Responsive Images with <img>
A clear and simple guide to using the HTML <img> tag with srcset and sizes attributes for creating responsive images that adjust based on screen width and resolution.
HTML Next

codingCourses offers coding tutorials made for everyone.
All materials and examples are continuously reviewed to prevent errors; however, complete accuracy cannot be guaranteed.
Therefore, please carefully test and review all materials and examples to ensure they are free of errors, bugs, or vulnerabilities before relying on them.
They are available under the Creative Commons Attribution 4.0 International

Copyright © codingCourses. All Rights Reserved.