-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oojs.html example shows HTML0204 lint warning #595
Comments
Hello @TheCodePilot! Welcome to the MDN Web Docs project. 🙌 Could you highlight exactly what section and code you are referring to on this page https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics? You might want to go over our documentation on JavaScript basics to help you get started. |
Hallo,
i learn with this here:
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics
on the top of this page
...
Object basics
<https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics#object_basics>
An object is a collection of related data and/or functionality. These
usually consist of several variables and functions (which are called
properties and methods when they are inside objects). Let's work through an
example to understand what they look like.
*To begin with, make a local copy of our oojs.html
<https://github.com/mdn/learning-area/blob/main/javascript/oojs/introduction/oojs.html>
file*.
This contains very little — a <script>
<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script> element
for us to write our source code into. We'll use this as a basis for
exploring basic object syntax. While working with this example you should
have your developer tools JavaScript console
<https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Tools_and_setup/What_are_browser_developer_tools#the_javascript_console>
open
and ready to type in some commands.
...
this oojs.html.
when i made a raw.copy:
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Object-oriented JavaScript example</title>
</head>
<body>
<p>This example requires you to enter commands in your browser's JavaScript
console (see <a href="
https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools
">What are browser developer tools</a> for more information).</p>
</body>
<script>
</script>
</html>
the <script></script> should be inner the <body></body>.
without Visual Studio tells me:
HTML0204 as issue or problem
greetings:
PS: I am very satisfied with all your documentation. Great Job 😉
Am Do., 23. Feb. 2023 um 16:24 Uhr schrieb Dipika Bhattacharya <
***@***.***>:
… Hello @TheCodePilot <https://github.com/TheCodePilot>! Welcome to the MDN
Web Docs project. 🙌
Could you highlight exactly what section and code you are referring to on
this page
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics?
You might want to go over our documentation on JavaScript basics
<https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics>
to help you get started.
—
Reply to this email directly, view it on GitHub
<#595>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3YSFMIDSZMFC4QBEB4PMV3WY56JBANCNFSM6AAAAAAVFW4ABA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @TheCodePilot - thanks for raising the issue. I've transferred this over to the learning area repository. You're right that the <!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Object-oriented JavaScript example</title>
<script></script>
</head>
<body>
<p>
This example requires you to enter commands in your browser's JavaScript
console (see
<a
href="https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools"
>What are browser developer tools</a
>
for more information).
</p>
</body>
</html> Would you like to open a pull request to fix it? You can get started here on GitHub directly if you like: |
I am a little nervous,
because 2 weeks ago. i knewn nothing about HTML, CSS or Java Script. I am
C++ Developer normally.
If you mean I can, then I will try to fix it on Github.
greetings
Am Fr., 24. Feb. 2023 um 10:35 Uhr schrieb Brian Thomas Smith <
***@***.***>:
… Hi @TheCodePilot <https://github.com/TheCodePilot> - thanks for raising
the issue. I've transferred this over to the learning area repository.
You're right that the <script> element should be inside the <body>, or in
the <head>:
<!DOCTYPE html><html lang="en-us">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Object-oriented JavaScript example</title>
<script></script>
</head>
<body>
<p>
This example requires you to enter commands in your browser's JavaScript
console (see
<a
href="https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools"
>What are browser developer tools</a
>
for more information).
</p>
</body></html>
Would you like to open a pull request to fix it
<https://github.com/mdn/learning-area/blob/main/javascript/oojs/introduction/oojs.html>?
You can get started here on GitHub directly if you like:
[image: Screenshot 2023-02-24 at 10 31 15 AM]
<https://user-images.githubusercontent.com/43580235/221143715-84d97980-d136-4035-8354-2f6ee9f50850.png>
—
Reply to this email directly, view it on GitHub
<#595 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3YSFMISEWAOWLZVLIAQOD3WZB6EVANCNFSM6AAAAAAVGVMNBA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Well done on your contribution and welcome! 🎉 I'm going to close the issue as fixed in #596 |
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics
What specific section or headline is this issue about?
javascript/oojs/introduction/oojs.html
What information was incorrect, unhelpful, or incomplete?
This ...
<script> </script>What did you expect to see?
Do you have any supporting links, references, or citations?
Ich arbeite mit Visual Studio. Wenn ich das Skript:
javascript/oojs/introduction/oojs.html
entsprechend kopiere:
Bekomme ich diesen Hinweis siehe Bild.
Ich bin sehr zufrieden mit Eurer Arbeit und alles andere war auch nie ein
![Fehler](https://user-images.githubusercontent.com/116466353/220936174-ffeca805-86bd-497c-9ffc-ad071a81b19e.png)
Problem wenn ich Code von Euch zum Üben nutzte.
Do you have anything more you want to share?
Ich bitte um Antwort.
Mit freundlichen Grüßen:
MDN metadata
Page report details
en-us/learn/javascript/objects/basics
The text was updated successfully, but these errors were encountered: