简体   繁体   English

替换 hx(h1、h2、h3 等)

[英]Replacement for hx (h1,h2,h3,etc)

Using the validator.w3 shows me the next error:使用 validator.w3 显示下一个错误:

Error: The element h3 must not appear as a descendant of the address element.错误:元素 h3 不得作为地址元素的后代出现。

And also this other error:还有这个其他错误:

Error: The frameborder attribute on the iframe element is obsolete.错误: frameborder元素上的iframe属性已过时。 Use CSS instead.请改用 CSS。

So, my question is: how can I replace the h3 inside the address tag?所以,我的问题是:如何替换address标签内的h3 which is the tag to use?要使用哪个标签? and then, how can I fix the `iframe error?然后,我该如何修复`iframe错误?

The code is:代码是:

<section id="Contacto">
    <div>
        <h2 class="concon">Contacto</h2>
        <div class="grupo-columnas centrar-columnas">
            <div class="columna">
                <address>
                    <h3>Mail</h3>
                    <a href="mailto:info@hyperx.com.ar" class="edit">info@hyperx.com.ar</a>
                    <h3>Llamanos</h3>
                    <a href="tel:540111122669288" class="edit">+54 011 2266-9288</a>
                    <h3>Ubicación</h3>
                    <p>Galería Jardín, Florida 537, Local 403, 1049 Buenos Aires</p>
                </address>
                <iframe id="mapa" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d5523.179529963751!2d-58.37788072464045!3d-34.6015771771587!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x95bccb43fa34ea69%3A0x9a4a3f10bd59e3e!2sFullh4rd!5e0!3m2!1ses-419!2sar!4v1591886402346!5m2!1ses-419!2sar" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
            </div>
        </div>
    </div>
</section>

Error: The element h3 must not appear as a descendant of the address element.错误:元素 h3 不得作为地址元素的后代出现。

Use a text element like <em> , <span> or <p> .使用像<em><span><p>这样的文本元素 Apply any needed styling to that element to get the desired result将任何需要的样式应用于该元素以获得所需的结果

Error: The frameborder attribute on the iframe element is obsolete.错误:iframe 元素上的 frameborder 属性已过时。 Use CSS instead.请改用 CSS。

Remove the frameborder="0" from the <iframe> and apply some css to get the same result: iframe { border: none } .<iframe>中删除frameborder="0"并应用一些 css 以获得相同的结果: iframe { border: none }

Apparently, this has already been answered on StackOverflow: "The frameborder attribute on the iframe element is obsolete. Use CSS instead."显然,这已经在 StackOverflow 上得到了回答: “iframe 元素上的 frameborder 属性已过时。请改用 CSS。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM