CS651 | Web Systems
  • outline
  • projects
  • syllabus
  • links

Div tags + Common HTML layout tags

 

<div> tag

  • Block-level Element
  • Configure Specially formatted DIVISION or area of a web page
  • Line before and after
  • Can contain other block-lvel and inline elements line <p> and <span>

An example (with some CSS style applied to it) to create a "footer"

<div class=“footer">Copyright &copy; 2009</div>

 

Copyright ©2009
 

 

 

<span>

  • configure area displayed IN-LINE wiht other elements...like within a paragraph
  • NO line break before or after
  • can apply your own styling to it.

Example

<span class="Hightlight_Grey"> This is important!!! </span>

This is important!!!! 

 

We will talk about CSS in another lecture.

 

cs651:web systems

  • home
  • outline
  • projects
  • syllabus
  • links