+ 27
Related doctype declaration?
My first question doctype is a html tag or not Because it's look like a opening tag(starting tag) Like other tag And doctype not have any closing tag like br and img In this question it's clear doctype is a html tag https://www.sololearn.com/post/883177/?ref=app But in this question saying all tag have attributes But in the first img questions saying doctype never have attribute https://www.sololearn.com/post/883208/?ref=app
23 Respostas
+ 11
All HTML documents must start with a <! DOCTYPE> declaration. The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect.
https://www.w3schools.com/tags/tag_doctype.asp
A doctype or document type declaration is an instruction which tells the web browser about the markup language in which the current page is written. The Doctype is not an element or tag, it lets the browser know about the version of or standard of HTML or any other markup language that is being used in the document.
https://www.geeksforgeeks.org/html-doctypes/#:~:text=A%20doctype%20or%20document%20type,being%20used%20in%20the%20document.
+ 11
First doctype is not tag or element . It is an information for browser about document type
https://www.w3schools.com/tags/tag_doctype.asp
second there is little difference between "tag" and "element";
+ 7
Altero (Inactive)
doctype is use to define document type like your html should be of version 4 or 5 or old version. So it can't have attribute.
According to 2nd post, question is saying that all tag can have attribute. See the question again here is "can have" it means not must have.
+ 6
You have posted total 3 questions I will try to explain all step by step
1st question
https://www.sololearn.com/post/883177/?ref=app
Its asking about Which of the following can never contains attribute?
Not telling which of the following 'tag' can never contain attribute?
Ans- <!Doctype html> Bcz It is not a tag ; as said @all
All HTML documents must start with a <!DOCTYPE> declaration. The declaration is not an HTML tag.
It is an "information" to the browser about what document type to expect.
2nd question
https://www.sololearn.com/post/883208/?ref=app
Its asking all html element can have attribute
Ans- Yes ; All element 'can' have attribute
Now if u again confuse on <!doctype html> again i will say that Its not "element/tag" its 'info'
of document.So, there is no sense of confusing with it.
3rd question
https://www.sololearn.com/post/884229/?ref=app
Asking about which of those "tags" donot need to be closed
Ans- <br>,<hr>
<!doctype > shouldn't ticked ; its not a tagĀÆ\_(ć)_/ĀÆ ;
+ 5
Altero (Inactive) Everyone explained well I just can say !doctype html it represents which language version you are using
Check it out following article
https://medium.com/@islam.sayed8/why-do-we-write-doctype-html-fe2797a3f1c8
+ 4
I Am AJ ! Sudarshan Rai ć Nicko12 ć
Thank you everyone for your suggestion
But in this question saying doctype is a tag
https://www.sololearn.com/post/884229/?ref=app
And doctype follow the all rule of opening tag
I am very confided between in this questions
+ 4
Altero (Inactive)
By the way, if you find it misleading and wrong. You can always report it by clicking the icon at the upper-right corner of that specific question when viewing the correct answers after the challenge.
+ 4
Sudarshan Rai
Thank you for your answer
https://www.sololearn.com/post/884245/?ref=app
in this post Hope you understand the difference between the elements and tag and I think doctype is a tag because it's follow the rules of opening tag
elements are able to content tags but tags are not able to contact element
you said doctype is not a tag but this question saying doctype is a tag
https://www.sololearn.com/post/884229/?ref=app
+ 4
Altero (Inactive)
I didn't say doctype is not a tag. Check my reply again. I just said it can't have attribute.
+ 4
Altero (Inactive)
See brief description of doctype here
https://www.google.com/amp/s/www.geeksforgeeks.org/html-doctypes/amp/
+ 4
Altero (Inactive) If you have any suggestion or related to quiz send email to sololearn team will give you response.
+ 4
Doctype = Document Type html5.
+ 3
I Am AJ ! Thank you sir for your response š I read your reply cleary but if doctype is a tag then why it's not content any attributes
I think here one question answer is wrong š¤ sololearn should correct this question
+ 3
Mr. Rahul
Check the last post clearly brother the question answer is <br> <hr> <! doctype html>
All three options are answer š
but it's me saying
+ 3
Altero (Inactive) I think you have got all the points
And much links already attached by I Am AJ ! sir ,ć Nicko12 ć
+ 3
Mr. Rahul yes now I get the point here are some questions answers are wrong I think sololearn should correct the some questions
+ 3
Altero (Inactive)
Ya i got it ; I think you should report to that particular question.Regarding some question mistake.BTW when you got it again tick all three otherwise you got -ve xp (ā¬ā¬ļ¹ā¬ā¬)
+ 3
I Am AJ ! ć Nicko12 ć Sudarshan Rai
Thank you everyone now I got the answer here are some questions answers is wrong sololearn should current this question but I don't know how anyone help me
+ 3
Mr. Rahul
šššwhy I tick the wrong questions when I know I am right
Sololearn had better to change their questions and answers
+ 3
Altero (Inactive)
I edited my ans (ā'ā”'ā)
And now i think you should edit your question
to [ Solved ] ..........