HTML semantic and use of css3

Asked

Viewed 38 times

0

Should the html tags in italic, underline and bold no longer be used and these visual-textual effects should be in charge of css3? With this wave of html semantic I got this doubt.

  • What tags do you refer to exactly? <b> and <i>?

  • Your question is unclear. I could edit it by adding a little more detail?

  • The semantics are all done in HTML, not CSS. In fact there is nothing you do in CSS that affects the semantics of things, even elements with display:None, in some cases are read by screen readers, so there is nothing you can do in CSS to improve semantics, In fact, it is often people who interfere with the CSS’s ability, by adding contrastless colors, small fonts and removing Outline. Of more details in your question, the way you asked became a little vague.

1 answer

1

Semantic HTML came with HTML5, which enabled the use of new tags, such as tags header, main and footer. To show the relevance of an excerpt of text within a content, you can use the tag in or Strong. Visually, if you use the tag b will have the same effect for those viewing the site, but the interpretation of a screen reader (program that reads what is on a site for visually impaired) for example will benefit from semantic HTML, as it will be able to identify each element. The same happens with Google robots, without a semantic HTML the robots can not identify the navigation menu, for example, not even know what is the main content of your site.

CSS3, as found on Wikipedia,

"is the third newest version of the famous Cascading Style Sheets (or simply CSS), where you define styles for your web project.With transition effects, image, background/background image and others, they give a new and elegant style to your web projects. Or in all aspects of page layout design. The main function of CSS3 is to abolish background/background images, rounded edges, display transitions and effects to create animations of various types, such as a simple pointer clock."

With this, it can be concluded that italics, underline and bold tags should continue to be used normally, and where possible use semantic tags.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.