+ 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

15th Jan 2021, 4:59 PM
Sona
Sona - avatar
23 Antworten
+ 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.
15th Jan 2021, 5:11 PM
noteve
noteve - avatar
+ 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";
15th Jan 2021, 5:13 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 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.
15th Jan 2021, 5:13 PM
A͢J
A͢J - avatar
+ 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¯\_(ツ)_/¯ ;
16th Jan 2021, 7:52 AM
Mr. Rahul
Mr. Rahul - avatar
+ 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
16th Jan 2021, 8:04 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 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
16th Jan 2021, 7:20 AM
Sona
Sona - avatar
+ 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.
16th Jan 2021, 7:30 AM
noteve
noteve - avatar
+ 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
16th Jan 2021, 7:34 AM
Sona
Sona - avatar
+ 4
Altero (Inactive) I didn't say doctype is not a tag. Check my reply again. I just said it can't have attribute.
16th Jan 2021, 7:34 AM
A͢J
A͢J - avatar
16th Jan 2021, 7:50 AM
A͢J
A͢J - avatar
+ 4
Altero (Inactive) If you have any suggestion or related to quiz send email to sololearn team will give you response.
16th Jan 2021, 8:10 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 4
Doctype = Document Type html5.
17th Jan 2021, 9:31 AM
Anurag Saikia
+ 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
16th Jan 2021, 7:44 AM
Sona
Sona - avatar
+ 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
16th Jan 2021, 7:59 AM
Sona
Sona - avatar
+ 3
Altero (Inactive) I think you have got all the points And much links already attached by I Am AJ ! sir ,《 Nicko12 》
16th Jan 2021, 7:59 AM
Mr. Rahul
Mr. Rahul - avatar
+ 3
Mr. Rahul yes now I get the point here are some questions answers are wrong I think sololearn should correct the some questions
16th Jan 2021, 8:01 AM
Sona
Sona - avatar
+ 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 (┬┬﹏┬┬)
16th Jan 2021, 8:03 AM
Mr. Rahul
Mr. Rahul - avatar
+ 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
16th Jan 2021, 8:03 AM
Sona
Sona - avatar
+ 3
Mr. Rahul 😂😂😂why I tick the wrong questions when I know I am right Sololearn had better to change their questions and answers
16th Jan 2021, 8:06 AM
Sona
Sona - avatar
+ 3
Altero (Inactive) I edited my ans (●'◡'●) And now i think you should edit your question to [ Solved ] ..........
16th Jan 2021, 8:09 AM
Mr. Rahul
Mr. Rahul - avatar