There are over a hundred elements in HTML, all of which can be applied to pieces of text to give them special meaning in a document. Most of us onl...
For further actions, you may consider blocking this person and/or reporting abuse
FYI, you can use
abbr
within DEV/Forem.Actually, several of these are valid β Like β.
We wouldn't expect everyone to reach for these all the time, but they're there if you really want to make your post highly usable!
Β
Β
Β
can centre things without CSS π
Β
Β
Β
Β
using tab and space πright?
I am not skilled enough to do it that way, plus I think they are ignored in markdown at the beginning of lines or get turned into code snippets. The answer is even more evil than spaces and tabs I am afraid! π€£
Let me guess.. Are you using the
<center>
tag?Yup, good old deprecated HTML to the rescue π€£ told you ity was more evil than just tabs and spaces!
Haha that's amazing! π―
<base>
is also another nifty little tag that we can use to specify the base urls for all the anchor tags after it. For example we can add the base tag with a url at the top of our webpage and do something like this,Consider preferring strong & em instead of b(old) & i(talic) html elements.
You'll get a nicer SEO.
And i'm rather sure that the underline thing is deprecated :p
Pretty great article still, I've learned a couple new elements ;)
Thanks for the suggestions! π I removed the
<b>
and<i>
elements.I haven't used area since the Geocities days.
I know all of them cuz at the time I was learning html I used to go to html reference and see what each one does.
I remember the time when I was trying to create a working keyboard with just image of a keyboard using the
<area>
tags.Lol, I have to confess that I use
<b>
and<i>
quite a lot, probably just laziness, so much easier than using<span>
with a class :)Thanks for the feedback! π
I decided to remove the
<u>
,<s>
,<b>
and<i>
elements from the article as I realized their use can be quite confusing, especially for beginner programmers.Thank you guys for the amazing feedback!
I'll be adding more elements soon β₯οΈ
Nice work
Why you did not write about ?
I think this is powerful element for UI too.
Oh my!
What a great list.
Tons of elements that I don't know exist has been revealed now.
Thanks
i folloed u but i didnt get a free cookie π€ππ€¦ββοΈ
What are you talking about? I only know div and span.
me too... π€·
I would mention the
<marquee>
tag as well for this post, you may update the article with an extra sugar, if so.deprecated
Oh, sh!t. My bad..
Insightful!!
I've the whole mdn website available offline in my laptop, and these things are just a few clicks away. The fact is I know all of them and yet never came across a situation to actually use them.
StackExchange uses kbd on it's sites.
eg.: this question on SuperUser shows keys in the question: superuser.com/questions/1157085/ho...
Some custom styling is needed because browsers don't do this at the moment.
I totally forgot about this tag
<abbr>
Nice article! We always need to be reminded of the power of HTML. Also worth mentioning the <meter> element which acts like the progress, but with more control.
Glad to see that the dialog element was included. Although just as a small aside, the dialog element itself isn't completely accessible. So try not to use it if the website is going out to the greater public.
References:
developer.mozilla.org/en-US/docs/W...
scottohara.me/blog/2019/03/05/open...
Because you said, "small aside". Get it? Haha... πππ
Woah this is cool, especially progress and dialog
I didn't know a lot of these existed. Amazing article!!
This is an awesome article. I'm glad you covered these elements to help us better understand them. Thanks for the info! π
This is really cool! Thanks for bringing these to my attention! I'll definitely want to try some of these out in my later projects!
Nice
Good post, kudos!
Thank you for this list, in comparison to other lists it is very well done!
Wow, I've learned a lot of new elements I never heard about. The element looks cool. π
I knew almost none of these lol
Amazing π
A long time ago I made an interactive building map using hard work! Would do it in JavaScript if I had too
Great article β€β€β€