dear amar,
The very first thing we write in our html document is the Document
type, The <!DOCTYPE> element used to tell the browser which HTML or
XHTML specification we are using.

There are 3 Document Type Definition (DTD)
1.      Strict DTD
2.      Transitional DTD
3.      Frameset DTD

If we follow strict coding and keep presentational stuff in CSS fiel
then we will use Strict DTC

If we use presentational things in our html file then we use Transitional DTD
If we use frame in the document then we specify Frameset DTD in <!DOCTYP>

You don’t need to worry too much in understanding what all these DTD
are, just add the following line in each of your html document, just
before the <html> element

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

Her we state html document follows the XHTML 1.0 Transitional English
document type definition and we give the URL (the web site where this
dtd exist). Also notice that this element has no ending / closing
element.
Remember that w3.org is World Wide Web Consortium that defines the
standards for the world wide web (www).

You can just copy and paste the following line but be careful about
the quotes marks.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

You can paste your code at w3.org validator and that will tell you if
your codes are all right or have some errors. Then you can fix the
error and check again. You can also give your web site address or your
local html file to validator to check and report you.

Following is the link for HTML validtor
http://validator.w3.org/

and here is the link for CSS validator
http://jigsaw.w3.org/css-validator/

there are three option,
Validate by URI,
Validate by file upload,
Validate by direct input

You can use any you prefer.
If you know, We can use style sheet in 3 ways,
1. embedded – embed it in our document
2. inline style – use style directly inside the element
3. linked – link a style sheet with our document
so I assume that you are using the third one.
About your query regarding centring the text, you can code the
following in your css file: since you have not specified about the
element you want to ctentre I am giving you one example of making your
heading centred:
H1{
color:yellow;
Background-color:black;
Text-align: center;
margin: auto;
}
about your problem in underlining the text, I would advise you to
check your css file and it’s property and their values.
Hope it helps you.
Thanks,
With regards,
Mukesh jain.



On 7/5/09, Amar Jain <[email protected]> wrote:
> Dear Accessindians,
>
> this time I need your guidance in html.
>
> Questions are as follows:
>
> 1. How to center an image using html?
>
> Previously we use to have align tag for the above, but now it is depricated.
> So, how do you center an immage because by default it shows in left corner.
>
> 2. Removing underline from all links?
>
> I didn't know it, but when I created links of my page, I found that they are
> underlined by default. So, I wish that no link of mine should be underlined.
> Code for the same?
>
> 3. Structuring the document for validation?
>
> Can you provide me any source which describes that what are the basic
> requirements or basics which should be present in any html document. i.e.,
> meda info, comment, language etc...
>
>
> Lastly, thanks to all members, I have bought my domain and will put in
> signature when it is ready to be viewed. Thanks for all.
> Waiting for guidance.
>
> Regards
>
> Amar Jain.
>
>
> To unsubscribe send a message to [email protected] with
> the subject unsubscribe.
>
> To change your subscription to digest mode or make any other changes, please
> visit the list home page at
>   http://accessindia.org.in/mailman/listinfo/accessindia_accessindia.org.in
>



To unsubscribe send a message to [email protected] with 
the subject unsubscribe.

To change your subscription to digest mode or make any other changes, please 
visit the list home page at
  http://accessindia.org.in/mailman/listinfo/accessindia_accessindia.org.in

Reply via email to