HTML best practices

 1)What  is the start attribute in HTML?

HTML tip:

Using the `start` attribute to change the starting point for ordered lists. 

<ol start="11">

<li>HTML</li>

<li>CSS</li>

<li>PYTHON</li>

<li>JavaScript</li>

</ol>

o/p

11.HTML 

12.CSS

13.PYTHON

14.JavaScript


You can reset the  value using value attribute

<ol>

<li>HTML</li>

<li>CSS</li>

<li value=20>PYTHON</li>

<li>JavaScript</li>

</ol>

o/p

11.HTML 

12.CSS

20.PYTHON

21.JavaScript

2)How to spell check with HTML?

using the `spellcheck` attribute to define whether the element should be spell check

<input type="text" id="input1" spellcheck="true"> </input>

3)What is the use download attribute in HTML?

-using the `download` attribute in your links to download the file instead of navigating to it. 

<a href ="filepath" download>Download</a>

If you want you can rename the downloading file

<a href ="filepath" download='another -file-name'>Download</a>

4) What is <abbr> attribute in HTML?

-using the `<abbr>` element to represent an abbreviation or acronym.

<abbr title="StyleSheet">SS</abbr>

What is Capture attribute in HTML?

"Capture" attribute opens your device camera to capture image if  "accept" attribute indicates image input

It is excepting two values

user = front camera

environment = back camera 

<input type="file", capture="user" accept="image">


Thanks for visiting this blog. How is the content?. Your comment is great gift to my work. Cheers.

No comments:

Post a Comment