RE: HTML Tags 12-20-2012, 01:02 AM
#15
(12-20-2012, 12:27 AM)MobbiN Wrote: Lets start withDoctype"<doctype html>" basically starts your script off it basically tells your browser that its a HTML document and the language of the script is HTML it is crucial that when ever you start your script that you use you can use this by doing
<doctype html>. </html>
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:Break LineThe <br></br> tag can be used to start another Line
like
this
you can use this to split up a paragraph in hopes to make you code or your webpage look neater.
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:bodyThe body tag <body></body> will tell your web browser where to read the code so using the <doctype html> </html> tag starts your source followed by <body></body> to set were the browser will start to read the source.
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.