![]() |
|
HTML Tags - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Coding (https://sinister.ly/Forum-Coding--71) +--- Thread: HTML Tags (/Thread-HTML-Tags) Pages:
1
2
|
RE: HTML Tags - Anima Templi - 12-20-2012 It's nothing it happens for everyone
RE: HTML Tags - Anima Templi - 12-20-2012 It's nothing it happens for everyone
RE: HTML Tags - The Real Slim Shady - 12-20-2012 (12-20-2012, 12:27 AM)MobbiN Wrote: Lets start with a. doctype statement is incorrect. for html5 it is Quote:<!DOCTYPE html> b. Doctype is also not an html tag, it is an instruction to the browser and therefore does not need a closing tag... thus the following is also incorrect usage. Quote:<doctype html>. </html> (12-20-2012, 12:27 AM)MobbiN Wrote: the <br> tag is meant for putting line breaks. It is not meant to seperate paragraphs. That is what the <p> tag is for. Also, the <br> tag is a void element, it has no end tag. While </br> will work, it is not "valid" html. If you want to get into xhtml then the correct use of the break tag is <br /> (12-20-2012, 12:27 AM)MobbiN Wrote: Again, this is incorrect use of the doctype. the statement is wrong AND there is no closing tag. Quite frankly the browser starts reading the source from the doctype. I did not know about the <abbr> tag however... so it goes to show even experienced coders can learn something knew from a basic tutorial lol. RE: HTML Tags - The Real Slim Shady - 12-20-2012 (12-20-2012, 12:27 AM)MobbiN Wrote: Lets start with a. doctype statement is incorrect. for html5 it is Quote:<!DOCTYPE html> b. Doctype is also not an html tag, it is an instruction to the browser and therefore does not need a closing tag... thus the following is also incorrect usage. Quote:<doctype html>. </html> (12-20-2012, 12:27 AM)MobbiN Wrote: the <br> tag is meant for putting line breaks. It is not meant to seperate paragraphs. That is what the <p> tag is for. Also, the <br> tag is a void element, it has no end tag. While </br> will work, it is not "valid" html. If you want to get into xhtml then the correct use of the break tag is <br /> (12-20-2012, 12:27 AM)MobbiN Wrote: Again, this is incorrect use of the doctype. the statement is wrong AND there is no closing tag. Quite frankly the browser starts reading the source from the doctype. I did not know about the <abbr> tag however... so it goes to show even experienced coders can learn something knew from a basic tutorial lol. RE: HTML Tags - The Real Slim Shady - 12-20-2012 (12-20-2012, 12:27 AM)MobbiN Wrote: Lets start with a. doctype statement is incorrect. for html5 it is Quote:<!DOCTYPE html> b. Doctype is also not an html tag, it is an instruction to the browser and therefore does not need a closing tag... thus the following is also incorrect usage. Quote:<doctype html>. </html> (12-20-2012, 12:27 AM)MobbiN Wrote: the <br> tag is meant for putting line breaks. It is not meant to seperate paragraphs. That is what the <p> tag is for. Also, the <br> tag is a void element, it has no end tag. While </br> will work, it is not "valid" html. If you want to get into xhtml then the correct use of the break tag is <br /> (12-20-2012, 12:27 AM)MobbiN Wrote: Again, this is incorrect use of the doctype. the statement is wrong AND there is no closing tag. Quite frankly the browser starts reading the source from the doctype. I did not know about the <abbr> tag however... so it goes to show even experienced coders can learn something knew from a basic tutorial lol. |