A
A
Alyosha2018-02-24 15:44:02
css
Alyosha, 2018-02-24 15:44:02

Is it possible to format forms in li tags this way?

Is it correct from the point of view of SEO optimization to throw the form in the li tag?

<li class="dropdown show" id="profile">
                        <a class="dropdown-toggle" href="#" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="fa fa-user fa-1-5x"></i>
                        </a>
                        <div class="dropdown-menu" id="drop-profile" aria-labelledby="dropdownMenuLink">
                            <a asp-action="Login" asp-controller="Registration" class="dropdown-item">Войти</a>
                            <a asp-action="Create" asp-controller="Registration" class="dropdown-item">Регистрация</a>
                        </div>
                    </li>
                    <li class="nav-item" id="searchbox">
                        <form action="/" method="post" class="form-inline">
                            <input type="text" class="form-control" placeholder="Search" aria-describedby="basic-addon2">
                            <button type="submit" class="input-group-addon" id="basic-addon2">
                                <i class="fa fa-search"></i>
                            </button>
                        </form>
                    </li>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dom1n1k, 2018-02-24
@dom1n1k

I call it semantic shiza.
When people who have read articles about semantics rush to pray to it (semantics).
One of the most typical manifestations is the desire to draw up lists of everything that is possible and what is not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question