V
V
viktorulyushev2017-02-06 10:56:20
HTML
viktorulyushev, 2017-02-06 10:56:20

Why does the validator swear at the form?

There is a form, it has required fields to be filled in which are marked with a red asterisk, forming a code

<font color='red'><span class='form-required starrequired'>*</span></font>

The validator complains
The font element is obsolete. Use CSS instead.
As I understand it, he doesn’t like ordinary quotes, is it possible to change it somehow? I didn’t find the code anywhere.
It also swears at size = "0"
<input type="text"  class="inputtext"  name="form_text_4" value="" size="0" />

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Luzanov, 2017-02-06
@dmitry_luzanov

I understand

Not this way. It swears at the font tag as it is deprecated. And asks you to use css for styling.

A
Alexey Ukolov, 2017-02-06
@alexey-m-ukolov

As I understand it, he does not like ordinary quotes

You misunderstood. It is clearly written: The font element is obsolete. Use CSS instead.
Where is it said about quotes at all? Don't use the font tag because it's deprecated and can be done through CSS.
You can change it to find the code, you probably need to get acquainted with the Bitrix documentation, everything is written there: dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question