0
Why teach HTML attributes? Which HTML attributes have not been replaced by CSS?
Lesson 5 of "HTML Basics" course is "Attributes". CSS is the preferred way to specify a web page's appearance because HTML is meant to specify structure, but not appearance. HTML attributes can be used to help CSS select elements (e.g. class or id selectors), and to describe content (e.g. alt, media, src); but it seems like a mistake to teach a lesson on how to use an attribute to center text (see code example). https://code.sololearn.com/WpzwSbvqiPPf/?ref=app
1 Answer
0
As we all know HTML is base for building web pages. HTML attributes play a vital role in enhance tag appearance. Yes CSS can do most of the stuff to design webpage but in case of email template you are limited to inline CSS only. Here good knowledge of HTML tags and their attributes helps to design solid email template that looks same on all mail clients. Also some HTML attributes play role in SEO development of you webpage.