cool thins you can do with just html

Cool thins your can do with just html 
Here are some cool things u can do with just html, You don’t need JavaScript or  css to make cool web design. U can just use html only without applying css to make awesome stuff, stuff like color picker, according, phone number dailler, output progress table of contents, editable content, and Refresh the browser
1 color picker this allow u to create any  color of your choice u can use is to select any type of color you want the with the color picker u will be abel your fovorite color  eg red blue gree etc
This is a cool and awesome way to create color picker just using html 



<input> tad  and type “color”
The default color is #000000 (black) 
Example code
<label for “sel-color”>select color:</label>
<input type =”color” id= “sel-color” name “sel-color”>
Or
<label for=”favcolor”>Select your favorite color:</label>
<input type=”color” id=”favcolor” name=”favcolor”>
2 according 
The sunmnary tag <summary>  defines a visible heading for a contents the heading can be click to view or hide the details.
<summary > this is a summary head line <summary >
<p> this is where the content display after clicking on the summary headline</p>
</details>
This <summary> tag defines a visible heading for <details> element
The heading can be click to view or hide the details.
<details>
<summary > this is a summary head line <summary >
<p> this is where the content display after clicking on the summary headline</p>
</details>
3 phone number dailer
This is mostly used on a website to contact customers u click on it automatically go to your phone dailer  it can be done by just using html code as mentioned below If you open the website on your smart phone it will be intent to your phone dialer  
Example code
<a href=”tel;1234-567-89”>click to call us </a>
Output
The <output> is a container element into which a user site can inject the results of a calculation or the outcome of a user action.
<output> HTML element




Example:
<form oninput=”result.value=parseInt(a.value)+parseInt(b.value)”>
      <input type=”number” id=”b” name=”b” value=”10″ /> +
      <input type=”number” id=”a” name=”a” value=”10″ /> =
      <output name=”result” for=”a b”>20</output>
 </form>
for attribute a space-separated list of other elements’ ids, indicating that those elements contribute to the input values.
form The <form> element to associate the output with. The value of this attribute must be the id of a <form> in the same document.
If you the attribute is not set (like above) the <output> is associated with its ancestor <form> element, if any.:
4. Progress 
 The progress <Progress> element represents the completion progress of a tasks it shows the percentage of work done u can use it to represent your skills.
<label>for=”skills”>html skills </label>
<pt>
 Content Editable alow user to edit contests with out with out touching the html Maybe not the most useful one with some JavaScript but still a neat trick.By using some JavaScript event handlers, you can transform your web page into a full and fast rich text editor.
Content Editable (HTML)
Example:
<div contenteditable=”true”>
  User can edit this content div!
</div>
Refresh the browser
Refresh the browser with a meta tag.this will refresh your browser determined on secord u set
Place the below in <head> tag and the page will refresh every 3 seconds
<meta http-equiv=”refresh” content=”3″>
The contentattribute defines how often in seconds you want to refresh. You can also do redirect to another site. The below will redirect to google.com in 3 seconds.
<meta http-equiv=”refresh” content=”3; url=https://google.com/”>
html-text-formatting-2022.
Table of contest
Anchors can be used to jump to specific tags on an HTML page. The <a> tag can point to any element that has an id
attribute. To learn more about IDs, visit the documentation about Classes and IDs. Anchors are mostly used to jump
to a subsection of a page and are used in conjunction with header tags.
Suppose you’ve created a page (page1.html) on many topics:
<h2>First topic</h2>
<p>Content about the first topic</p>
<h2>Second topic</h2>
<p>Content about the second topic</p>
Once you have several sections, you may want to create a Table of Contents at the top of the page with quick-links or bookmarks to specific sections.
If you gave an id attribute to your topics, you could then link to them
<h2 id=”Topic1″>First topic</h2>
<p>Content about the first topic</p>
<h2 id=”Topic2″>Second topic</h2>
<p>Content about the second topic</p>
Now you can use the anchor in your table of contents:
<h1>Table of Contents</h1>
 <a href=’#Topic1′>Click to go to the First Topic</a>
 <a href=’#Topic2′>Click to jump to the Second Topic</a>
These anchors are also attached to the web page they’re on (page1.html). So you can link across the site from one
page to the other by referencing the page and anchor name.
 Remember, you can always <a href=”page1.html#Topic1″>look back in the First Topic</a> for
supporting information.
Conclusion
Hopefully, you’ve learnt some new elements which you can show off to your colleagues. Having a wide range of HTML elements you’re comfortable with can be so useful, a lot of developers jump straight to JavaScript and CSS when it’s not really needed
If you want some more frontend tricks:

1 thought on “cool thins you can do with just html

Leave a Reply

Your email address will not be published. Required fields are marked *