T
T
TunderVVave2021-10-02 15:00:52
HTML
TunderVVave, 2021-10-02 15:00:52

I chose an editor for Html(atom) and I can't understand why there is no align in it?

Sobsna, there are rear ones, there is a solution. BUT it is necessary to align the text and the image in the middle. I thought that atom itself would prompt align="center", but I have to write it manually and says that it does not know such an attribute at all.
This is a purely atom problem and how else to solve it, or is it done differently in html5 now. Although if everything is written, then everything works

<!DOCTYPE html>
<html lang="ru" dir="ltr">
    <head>
        <meta charset="utf-8">
        <title>
            Exrecise 1
        </title>
        <meta name="description" content="Задание 1 2281">
    </head>
    <body>
        <h1 align="center">Это я</h1>
        <img src="https://thispersondoesnotexist.com/image" align=”center” alt="Людей не существует" width="300">
    </body>
</html>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2021-10-02
@Asokr

There is no such tag in html5.
Works - because. browsers support older standards.
Exit If everything needs to be centered - apply to body
style="text-align: center"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question