DEV Community

Cover image for Cool HTML Tips & Ticks
HabibaSarwar786
HabibaSarwar786

Posted on

Cool HTML Tips & Ticks

This is my First article I shared some Html tips and tricks In this article . Hope you will be good help for youπŸ˜‡

Open link in new tab/window

The target attribute specifies where to open the link. By setting it to _blank, you tell the browser to open it in a
new tab or window .

  <a href="index.js" target="_blank">Hi I"m Developer</a>     
Enter fullscreen mode Exit fullscreen mode

Image description

Color Picker

Clicking this button opens the operating system's color widget, which allows user to select a color.

 <input type="color">
Enter fullscreen mode Exit fullscreen mode

Image description

Highlight / mark Tag

The mark element is new in HTML5 and is used to mark or highlight text in a document instead of span

<p>hi I'm Front-End-Developer</p>   
Enter fullscreen mode Exit fullscreen mode

Image description

Accordion / Summary Tag

The summary tag defines a visible heading for the details element.The heading can be clicked to view/hide the details.

 <details>
    <summary>open this</summary>
       <h2>HTML</h2>
       <h2>CSS</h2>
       <h2>JAVASCRIPT</h2>
 </details>
Enter fullscreen mode Exit fullscreen mode

Before Opening
Image description

After Opening

Image description

Progress bar

You can use the progress bar which will represent the completion of something.

<div>
         <h2>Html & Css skill</h2>
         <progress id="skill" value ="85" max="100"</progress> 
</div>
Enter fullscreen mode Exit fullscreen mode

Image description

Top comments (1)

Collapse
 
kaamkiya profile image
Kaamkiya

Very useful, thanks :)