2

I'm editing an HTML file in NetBeans 7.0. Is there a way to specify that I'm working with HTML5 document so it can do auto-complete and spell check accordingly to HTML5 spec?

For example, when I start typing <br it suggests to complete it with <br> and then close it with </br>. It's a bit annoying.

Thank you.

2 Answers 2

1

yeah just edit the doctype definition at the beginning of the html document . put this

"!DOCTYPE html"

instead of this :

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

netbeans will then auto complete for you.

Sign up to request clarification or add additional context in comments.

1 Comment

Hmm, it does not work for me. I have HTML5 definition but it still autocompletes with <br> instead of <br />.
0


is for strict version of html5... ie xml version.

If you want to use html5 then
doesnt require a forward slash to close it. Read HTML5 docs for specs

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.