My problem is I write a simple code in notepad++ ex.
<p><input type=Submit value="Click here!"></p>
So "click here!" will turn purple and not show up on the web page.
I seem to have no issue if I do not use the quotation marks, but I figure I need to as that is best practice?
I hope I am not too vague. If needed I can supply a screenshot. I'm new to coding so I want to make sure I get all aspects of it.
Update: After playing around and looking in a million places, it was some default settings I had not looked at yet. I appreciate any help offered and next time I'll make sure to post code and whatever else is needed. Thanks again!
Related
Whenever I code, in almost all types of file extensions i.e js, jsx,html,ts. I get these weird inline suggestions to make it as HTML tag. I truly tried everything out, checked out extensions, JSON settings, unchecked all the suggestions/autocomplete settings. But, this never goes. I don't know what to do, I am truly fed up of this.
And it always suggest whenever I put : in front of anything. Like below.
Wierd Html tags suggestion
It's so annoying. VSCode experts please help.
I have been trying to remove this from long time, I also checked the vscode IntelliSense documentation, and did all the troubleshooting but it still didn't help.
So I need to have a search box search through text on a web page and show relevant searches. I have no clue how to do this and didn't find anything online on how to. So if I have a search box on www.example.com/index.html, and and user enters text into it, then it searches the text on www.example.com/example.html and displays the result. Finally just an FIY it needs to be in HTML. Thanks for any help in advanced!
Well, you would need to know javascript (and probably php) to do that properly, which your request sounds like you do not.
If you need to add a search engine without knowing javascript/php, then your best bet is probably to look into something like Google's Custom Search - https://support.google.com/customsearch/answer/2630969?hl=en
Setting it up sounds simple enough for someone who doesn't understand what the code is actually doing - all copy and paste. Don't do that with any old script on the web, though. There's plenty of dodgy ones out there!
I'm fairly new to html and php and have an issue where I can type html into my text box and if I echo out the information from the database it will actually run the code. What I mean is...
On my website there is a textbox and in the text box they can type br or a href etc and the code will run like actuall html.
So is there a way to prevent this? CKEditor or what? All support is much appreciated!
htmlspecialchars would be a good place to start. Followed by getting a clue what you're doing before you become yet another victim of terrible coding practices and security issues.
Well, I recenely made some work on PHP and HTML, and I did not use the TAB thing to make blank spaces which make the code more readable and organized, and now it pisses me off. Anyone knows an effective way or any program where you can put your HTML or PHP and it makes all these spaces for you, making the code more organized? Thanks in advance!
If you use a specific editor, some have "Beautify" features that will auto-tab your source.
In the mean time, you can try this: http://www.beautifyphp.com/
Ok this feels really basic...but its giving me a run for my money. I have put together a page with really basic tags. break tags, input tags, etc. I came across a problem when I used a "checked" on one of the radio buttons in my form. It wasn't "checking" properly. So I looked at the page source and noticed a lot of the forward slashes were in red. The "checked" was also in red. Comparing that to a normal page, I found that that is not the case there. Does anyone know whats going on? It seems to keep the page from functioning properly, and a google search on this turned nothing out...
You have bad markup. Validate your page to help isolate.