All Pages All Books|
|
|||||
|
More on HyperText Markup Language
|
chapter
|
||||
![]() |
|||||
|
I
n Chapter 3 you looked at how HyperText Markup Language (HTML) is used to format text in a MySpace profile. This chapter looks at some HTML tags, which in their own right might not seem very useful but become very important later in the book when you look at advanced customization.
|
|||||
|
|
in this chapter
|
|
|||
|
|
|||||
|
Divisions
The division tag (<div>) allows you to mark out logical divisions or sections in your layout.
By itself the <div> tag has limited function when it comes to marking up HTML, as all it allows you to do is align the contents of each section. It also has the effect of adding a new line and a line space, which you need to watch if you are using the <p> tag.
The <div> tag might seem a bit useless, and the point of introducing you to the <div> tag is not for what it can do for you now, but for what it can do for you in the chapter that deals with cascading style sheets (CSS). All you really need to know at the moment is that <div> is a way for you to mark out a section of your HTML, and down the road it will allow you to style those sections. For now, we’re just looking at it from the perspective of using it in a regular HTML page.
Format
<div align=”alignment”> </div>
In the preceding line of code, alignment will be left, center, right, or justify to define the alignment of content within the opening and closing <div> tags.
|
0 Divisions
0 Spans
0 Tables
0 Specifying how a table appears
0 Specifying how a cell appears
0 Special characters
|
||||
|
|
|||||
All Pages All Books