Dreamweaver错误警告 [英] Dreamweaver error warning

查看:627
本文介绍了Dreamweaver错误警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么Dreamweaver将此标记为错误并向我发出警告

Why does Dreamweaver flag this as an error and gives me the warning

必须转义特殊字符:[<]

"Special characters must be escaped: [<]"

当它发现这个

<?php include("nav_none.php"); ?> 

源代码?

谢谢,

Kirk

推荐答案

我知道很晚才回复你但我正在为你和其他人这样做。当您键入任何没有空格的标记的属性或者您错过了像writing =或column sign这样的简单语法错误时,会发生这种情况。在你的情况下,我很确定你必须在具有html文件类型扩展名的文件中编写。当您使用.php类型文件扩展名时,您将不会收到任何警告消息。

i know its very late to reply you but am doing this for you and other people. This happens when you type properties of any tag without spaces or you misses simple syntax error like writing = or column sign. In your case i am pretty sure that you must be writing in file that has html file type extension. When you do same with .php type file extension you will not get any warning message.

我在这里演示了每次编写html代码时我们都会遇到的几个常见的html语法错误。

I am here demonstrating few common html syntax errors that we makes every time when we write html codes.

<a href="img/Accolade1a.JPG">
 <img src="img/Accolade1a.JPG" alt"">
 <p>Accolade1a Template</p>
</a>

此处在alt attribute = sign顶部的第2行缺失,但这将有效但大多数智能浏览器会给你警告来纠正这个问题。以下是更正:

Here on the line number 2 from the top at alt attribute = sign is missing, however this will work but most of the smart browser will give you warning to correct this. Below is correction:

<a href="img/Accolade1a.JPG">
 <img src="img/Accolade1a.JPG" alt="">
 <p>Accolade1a Template</p>
</a>

另一个常见问题是不在标签属性之间提供空格。这只是拼写错误。它适用于大多数浏览器,但它破坏了代码的可读性。请看看

And another common problem is not providing spaces between attributes of tag. This is just typo error. it will work on most of the browsers but it spoils readability of code. Please have a look

<div class="form-group"style="color:#fff;">
 </div>

此警告的更正只是在并且警告将丢失后放入空格。看看:

and correction of this warning is just put white space after " and warning will get lost. have a look:

 <div class="form-group" style="color:#fff;">
     </div>

因此,尝试编写好的代码会对你有所帮助。相信我Dreamweaver是来自Adobe的非常好的软件。
我希望它对你有帮助。

So try to write good code it will help you a lot. Trust me Dreamweaver is very good software from Adobe. I hope it will helpful to you.

这篇关于Dreamweaver错误警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆