home
Guest
Signup/Login
to unlock all features
[quote uid=abdegenius pid=1623] To Write A Hello World! In HTML Use this <!DOCTYPE html><html><head><body><p>Hello World!</p></body></head></html> Notice sometime <!DOCTYPE html>Don't have a closing stage yes you are right it is a declaration that it is an html content it is optional but the code is too long yes you can eliminate <!DOCTYPE html> , html , head , elements even the body if it don't carry any style .. to write hello world on a shortcut use <p>Hello World!</p> Some Html elements don't require a closing tag some examples are; <img src="imagelink"/> this is an html element that display image but you can sometimes put thr closing tag special attributes can be added.. examples of attributes are; width = to increase width height = to increase height align = text positioning (left,center or right) alt = Optional Shows word to be written before image appears note all this attributes can also be use in some elements <br/> elements don't require a closing tag it is used to start write on a new line (line break) <hr/> To create a horizontal line use this tag you can use width and height attribute here also.. [/quote]