Jump to content

HTML layout


Bilal AK
 Share

Recommended Posts

hy to aaaaavery one out there, help!!!! :Shock:I have been learning HTML on this site for over almost three-four weeks I am in HTML basics..at HTML layout,so aaplease can somebody tell me what is this: id=" " attribute it's value it's use in layout and beside that.and these <div> and <span> &<div id="container" (<<<<<<<<what's this) style="width:500px"> (a line from the example given in HTML layout) :fool:

Link to comment
Share on other sites

id is unique attributes to the whole page to identify elements uinqely. there cant be two same id in a page. id is mainly used in when you do javascript oprations on the document or when you use CSS. div is block level element which build the page structure. it defines part of page.span is inline element which define part of text inline. they dont do anything visually but helps to format the page and applying styles on them.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...