VS Code isn't recognizing html files - html

VS had suddenly stopped recognizing HTML files and it doesn't autocomplete tags or even show the syntax unless I manually input every single file name in it, I would really appreciate the help on any idea how to solve that Here is how it looks:
I have tried many things but nothing seems to work or help fix it

See if this solves the problem:
On the bottom right of the application, you should see something like this:
Click on the "Plain text".
Search HTML in the list and click it.
Then your HTML should turn colorful.

Related

How to make many pages in vs code

So I made 200 line code for a website I'm making and then I made a button to open another page that i will code as well but here is the problem I don't know how to start another page in vs code please help I'm beginner at coding I tried searching in YouTube but nothing helped
It can be hard to learn how to start - but we've all been there. You can do it!
For a brief starter, in VSCode, you can try this, and start learning from this point.
In your first HTML file button, ideally you'll have HTML similar to this: <a href="/file2.html"/>. In VSCode, just create file2.html in the same directory as file1, and add some HTML. It should populate.

VS Code no longer recognising html files

For some reason when I try to create an html file vs code doesn't seem to recognize it and nothing html related works within it (autocomplete, etc). I'm not really sure where to go from here since VS code has been my go-to work environment.
Here's a picture of what it's saving the file as (usually the logo beside the file would look like this: <> ):
You should be able to just save it as html.
otherwise in the bottom right there is an option to change the language

VBA - How to select tab on webpage

I've seen a couple of questions similar to this but have had no success.
I am trying to write a piece of code after navigation to a secure webpage which will click on a tab and load this data (there is no URL behind the tab so cannot use that). I need to click on the sales tab which has the ID overview. Can someone please help me write a line of code which will find this object and click on it. HTML Code
Many thanks
fyi i tried stuff like
ie.document.getelementbyID("overview")(0).Click
You can select
ie.document.querySelector("div[id=overview]")
So if clickable try:
ie.document.querySelector("div[id=overview]").Click
Or simply
ie.document.querySelector("#overview").Click
That is assuming the element isn't inside a form/frame/iframe. Can't tell from the small HTML sample though.

<a href in fireforx adds a %1B to the code but works fine with all other browsers?

Am trying to do this in classic asp.
my code looks like this.
Portfolios
when i click on this link in firefox, i find a http://xyz/%1BPortfolios.asp?ID=3 in the address bar, that results in error.
This same code works fine with IE and Chrome.
Wonder what so specific about firefox that forces this line.
I tried to use the same line but hard coded ID
Portfolios
This works fine without the %1B added to the line.
appreciate your help.
Edit 1 (Screen Shot of Inspect Element)
the code on this highlighted line looks like this
<td><%=oRS("ClientName")%></td>
and the resolved code is as per the screen shot
<td>XYZABC</td>
The %1B looks like its a url-encoded escape character. Often if you copy and paste code from a webpage or somewhere else, hidden characters can creep in. First thing I would try is just deleting the link and typing it in by hand (include your ASP code as well).
As you've said the hard-coded one works fine, it's looking like you're copying the link from some where else. If you type it in, you won't accidentally add any hidden characters you don't want.
Hopefully that will sort it out. I've don't it myself, so I know how easily it can happen :)
EDIT: I don't know what code editor you use, but often there is a option to turn on show hidden characters or something similar. In the future if you experience something like this, turn that on and you might well see a character you weren't expecting and you can just delete it.

Weird Issue Causing Header to be dropped down on only 1 page

Check out http://cancerpreventionnetwork.org/participants.shtml and you can see that the header is dropped down on this page. If you click on any other page, the header is not dropped like that. I have tried everything and I can't figure out what is causing this.
When I check the page in Chrome with inspect element, I see an extra text node. I can't see it in the source, but maybe you can?
seems to me that it's the classic UTF8 BOM encoding problem
you need to check all your source files and make sure that they are not encoded using the BOM.
there are many ways to remove it. I use notepad++ but there might be an automated tool or some shell code to remove the BOM for multiple files
and also.. if you're including files (templates) make sure that they don't have white spaces or new lines after the ?>
Good Luck