Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Sloan the DEV Moderator
Sloan the DEV Moderator

Posted on

     

What are your favorite features of HTML5?

This is an anonymous post sent in by a member who does not want their name disclosed. Please be thoughtful with your responses, as these are usually tough posts to write. Emailsloan@dev.to if you'd like to leave an anonymous comment or if you want to ask your own anonymous question.


I'm pretty new to coding, and I want to know how HTML5 is different from past versions of HTML. I feel like getting an understanding of those changes will help me become a better developer, and gain a larger understanding of how to use this specific markup language.

Top comments(8)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
ben profile image
Ben Halpern
A Canadian software developer who thinks he’s funny.
  • Email
  • Location
    NY
  • Education
    Mount Allison University
  • Pronouns
    He/him
  • Work
    Co-founder at Forem
  • Joined

Oh my, pre-HTML5 web dev was pretty brutal!

I am pretty amazed whenever I encounter an HTML feature which I just assumed would always be an awful hack, but now it is just a native feature.

TheDetails disclosure element comes to mind.

CollapseExpand
 
adiatiayu profile image
Ayu Adiati
👩‍💻 Software Engineer | ✍🏼 Tech Blogger | ▶ Open Source Maintainer & Contributor | 👥 Community Management
  • Location
    The Netherlands
  • Joined

I immediately got introduced to HTML5 since beginning of my journey.
So I'm not too familiar with the previous versions.

One example that I know, previously, we had<b> and<i> for bold and italics.
But since HTML5, they became<strong> and<em>.
One ofdefinition of semantics is:

The study or science of meaning in languages.

So, we use<strong> to give more attention to the words/sentences and<em> when we want to emphasize words/sentences inside the tags.
These tags are not there to make them bold or italics, but theygive meaning.

And therefore, there is also structure in semantics HTML to give meaning to the content in the whole page, such as headings (<h1> -<h6>),<header>,<main>,<section>, etc.

Semantics HTML also helps people who use screen reader. Because semantics HTML gives context for screen readers.

I hope these help 😊

CollapseExpand
 
alohci profile image
Nicholas Stimpson
Full Stack Software Engineer or jobbing programmer.
  • Location
    Luton, England
  • Joined
• Edited on• Edited

One example that I know, previously, we had<b> and<i> for bold and italics.
But since HTML5, they became<strong> and<em>.

Well, not really. First,<b>,<i>,<strong> and<em> have existed since the very first complete drafts of HTML. They're all the same age. HTML5 gave<b> and<i> semantics that they didn't have previously, and the semantics of<em> changed quite subtly, but otherwise nothing changed. What that meant was that if you want semantics-free bold and italics, it's necessary to use CSS:font-weight: bold andfont-style: italic respectively.

CollapseExpand
 
adiatiayu profile image
Ayu Adiati
👩‍💻 Software Engineer | ✍🏼 Tech Blogger | ▶ Open Source Maintainer & Contributor | 👥 Community Management
  • Location
    The Netherlands
  • Joined
• Edited on• Edited

Thank you for the clarification! Appreciate it! 😃

Yes, I'm accustomed to use CSS as well if I want to apply bold or italics, also when I need to customize font sizes and untouch the headings 😊

CollapseExpand
 
iamschulz profile image
Daniel Schulz
Hi! I'm a frontend guy.
  • Location
    Germany
  • Education
    Studied Media Art and Design
  • Work
    Performance Engineer at Baqend
  • Joined

Uniformity: A simple, easy to use doctype, lowercase tags, no slash needed on self closing tags.
Also the separation of concerns. Table layout is deprecated, so are<font>,<center> and<marquee>. HTML has been sharpened for content markup.

CollapseExpand
 
bbutlerfrog profile image
Ben Butler
Full LAMP stack Developer for long enough to make me very old
  • Email
  • Location
    Boston, MA
  • Education
    BS Computer Science, Missouri University of Science and Technology
  • Work
    LAMP Developer
  • Joined

Forms areso much better in HTML5! We have datetime types, we have native validation, there's... everything HTML lacked. It's a recognition that one of the primary uses of HTML is to submit data.

CollapseExpand
 
andrewbaisden profile image
Andrew Baisden
Software Developer | Content Creator | AI, Tech, Programming
  • Location
    London, UK
  • Education
    Bachelor Degree Computer Science
  • Work
    Software Developer
  • Joined

HTML5 Canvass excites me the most. Drawing graphics and creating animations and games its so powerful with JavaScript.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I help moderate content and welcome new users to this platform. I also ask questions on behalf of members looking for advice from the community.
  • Work
    The Practical Sloth
  • Joined

More fromSloan the DEV Moderator

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp