Web Designer - - 30 best html, css & js apis -

Avoid <span> if you can and try el­e­ments de­signed for the job


Dates and times are for­mat­ted dif­fer­ently across the world and so can­not be re­li­ably parsed by a search en­gine or email client. Spec­ify what parts of a sen­tence are a time and al­low pro­grams to ex­tract and use that in­for­ma­tion.


When want­ing to high­light a few words of a sen­tence, it may seem best to use <strong>. While <strong> de­notes im­por­tance, <mark> de­notes rel­e­vance in the cur­rent sit­u­a­tion. An ex­am­ple of this would be matched terms in a search re­sult.


Lan­guage is full of ab­bre­vi­a­tions that read­ers po­ten­tially may not be fa­mil­iar with – there’s plenty in this ar­ti­cle! The <abbr> el­e­ment pro­vides a way to de­fine po­ten­tially un­fa­mil­iar ab­bre­vi­a­tions with an ac­com­pa­ny­ing ‘ti­tle’ at­tribute.


When quot­ing a small sec­tion of text, sur­round it with <q>. The op­tional ‘cite’ at­tribute can pro­vide a name, ref­er­ence or link to the orig­i­nal source. Browsers will add quote marks by de­fault.


When pro­vid­ing in­struc­tions that should be in­put by a user, <kbd> should sur­round that com­mand. While typ­i­cally used for key­board in­puts it can be used for any kind of text en­try, in­clud­ing voice.

Newspapers in English

Newspapers from UK

© PressReader. All rights reserved.