• Home
  • PHP
  • MySQL
  • Laravel
  • Demos
  • HTML
  • jQuery
  • Framework
  • Request Tutorial
PHP Lift
  • Home
  • Demos
  • Advertisement
PHP Lift
  • Home
  • PHP
  • MySQL
  • Laravel
  • Demos
  • HTML
  • jQuery
  • Framework
  • Request Tutorial
  • Follow
    • Facebook
    • Twitter
    • Google+
    • Pinterest
    • Youtube
    • Instagram
    • RSS
7 HTML attributes that you must learn today!
Home
HTML 5

7 HTML attributes that you must learn today!

May 4th, 2025 Huzoor Bux HTML 5 2 comments

Facebook Twitter Google+ LinkedIn Pinterest

If you’re a web developer, you’re making use of HTML! You’re making use of many HTML features. However, today you’ll be able to learn a little information!

BDO

The HTML element can override the directionality of text. It means that the text within it is displayed in a different direction! You can utilize the dir option to specify the direction.

  • ltr -> indicates that the text must be in a direction from left to right
  • rtl -> indicates that the text should be in a left-to-right direction.
<p>

    <bdo dir="ltr">Left to Right Text.</bdo>

</p>

<p>

    <bdo dir="rtl">Right to Left Text.</bdo>

</p>

bdo

KBD

If you have to display the shortcut to your user, you must use the kbd! It is a swath of text that is inline, indicating the user’s input on the keyboard.

<p>Please press <kbd>Cmd</kbd> + <kbd>R</kbd> to reload page.</p>

kbd

Details

The HTML element generates the widget for disclosure, where the information will be visible only after the widget has been switched to the “open” state. A brief description or label should be included in the element.

<details>

       <summary>What is HTML</summary>

       HyperText Markup Language (HTML) is the set of markup symbols

</details>

details

Editablecontent

The attribute contenteditable specifies what content in the element is edited or not!

<p contenteditable="true">You can edit this paragraph........</p>

contenteditable

Abbr

The tag is a way to define an abbreviation, or acronym, such as “HTML,” “CSS,” and displays the full title whenever you hover over this tag.

<p>Together, <abbr title="HyperText Markup Language">HTML</abbr>, 

<abbr title="Cascading Style Sheets">CSS</abbr>, and JavaScript make up the 

essential building blocks of websites worldwide.</p>

abbr

Translate

Indicate in HTML the content that needs to be translated or not (by Google Translate, for instance).

<p translate="no">PHPLift</p>

color picker

As you’ve just learned that you can make the color picker!

<input type="color">

input color

I Hope you like this article if you want more articles like this please comment below.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook

Related

  • Tags
  • HTML attributes
Facebook Twitter Google+ LinkedIn Pinterest
Next article Useful PHP built-in functions
Previous article JavaScript tips and tricks, Part 2

Huzoor Bux

I am a PHP Developer

Related Posts

Cool HTM5 Features, Part 2 HTML 5
June 16th, 2025

Cool HTM5 Features, Part 2

Cool HTML5 features HTML 5
June 15th, 2025

Cool HTML5 features

Javascript Image Compress using HTML5 Canvas & File API before Upload HTML 5
June 15th, 2025

Javascript Image Compress using HTML5 Canvas & File API before Upload

2 Comments

  1. Jakkrit H.
    October 20, 2021 at 10:14 am Reply ↓

    Thank you so much for this useful topic.

  2. Enrique AB
    October 20, 2021 at 12:49 pm Reply ↓

    Excelente artículo sobre atributos que, seguramente, muchos desconocíamos. Gracias.

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe
Get new posts by email:
Powered by follow.it
Advertisement
Like us
Recent Posts
  • Free PHP, HTML, CSS, JavaScript/TypeScript editor – CodeLobster IDE
  • Web Scraping With PHP – Easy Step-By-Step Guide
  • HTML based swipe Tabs for mobile / touch devices
  • Cool HTM5 Features, Part 2
  • Programming Languages for Better Job Opportunities
Categories
  • API
  • Bootstrap
  • Bot
  • CSS
  • CSS 3
  • Database
  • Designing
  • Framework
  • Guide
  • HTML
  • HTML 5
  • JavaScript
  • jQuery
  • Laravel
  • MySQL
  • Node.js
  • oAuth
  • Payment
  • PHP
  • Python
  • Social
  • Tips
  • Web 3.0
  • WordPress
Weekly Tags
  • PHP
  • How to
  • javascript
  • laravel
  • MYSQL
  • PHP framework
  • css
  • jQuery
  • HTML to PDF
  • Web Development
  • About
  • Privacy Policy
  • Back to top
© PHPLift.net. All rights reserved.
 

Loading Comments...