Jump to content
Stef's Coding Community

HTML HELP PLEASE


Recommended Posts

Hi,

I am new to html so anybody can help me how to improve my html knowledge i mean from which point i have to start what are the basic thing's and what is the difference between HTML-XHTML?

 

Any advice would be appreciated.

Thank's

Link to post
Share on other sites

The W3C announced that HTML 4 has been reformulated into XHTML 1.0. XHTML is HTML 4 written as an XML application.Comparing HTML(Hypertext Markup Language) and XHTML(Extensible HTML) could be like comparing identical twins since there are only a few minor points which we can actually point out as being different. This is due to the fact that XHTML was derived from HTML just to conform with XML standards.The primary major difference between the two is the relative strictness of XHTML compared to HTML. While someone coding in HTML could get away with some lapses in structure and coding, that is no longer possible with XHTML.

Link to post
Share on other sites
  • 3 months later...
Guest penelopeklimas

Hi, I have recently been trying to get a web page together and I am not having much sucess with trying to get a image to it, could anyone give me some info and in simple terms as I am only a new starter at this. I have got the basics of inserting font and backgrounds and A Href, and thats about it.

 

Edited by Andrea
Link Removed
Link to post
Share on other sites

You insert an image with this code:

<img src="image.jpg" alt="Description of Image" width="500px" height="300px">

This assumes that the image is in the same folder as the page. Make sure the image is optimized to be the size you need, and not too large of a file (loadtimes).

Link to post
Share on other sites
  • 3 months later...

If you want to learn HTML, you can follow the w3schools.com site.It got a very good tutorial for the HTML.Practice sets are also there which you can use to test your knowledge after finishing the chapters.

 

The most important difference between HTML and XHTML are as follows:

 

1. It allows an author to omit certain tags and use attribute minimization.

2 The Extensible Hyper Text Markup Language, or XHTML, is an application of XML (Extensible Markup Language). It doesn't allow the omission of the tags.This means that in XHTML we need to use </br> tag with <br> tag.But in HTML, we can use only one </br> tag in place of <br> and </br>

Link to post
Share on other sites

This means that in XHTML we need to use </br> tag with <br> tag.But in HTML, we can use only one </br> tag in place of <br> and </br>

 

Madhusmita, we have corrected you on this before - in XHTML, a line break is done like this:

<br />

The <br> is not needed - you only use the properly closed br tag.

 

In HTML, all you use is the <br> tag.

 

Please let me know if you have any questions.

Link to post
Share on other sites

Just a side comment: In the early days it was a good idea to write it with a space <br /> (or any other self closing tag), it was due to the browsers at the time.

 

However there is no requirement or even any reason any longer to leave the space, I never have and even back then it worked fine. <br/>

Link to post
Share on other sites
  • 8 months later...

HTML:

Is not case sensitive

Allows the user to omit certain tags

when ever xml parser encounter an error relating to the document well formedness, HTML parser is expected to attempt recover & continue.

 

 

XHTML

Is case sensitive

it doesn't permit the omission of any tags

when ever xml parser encounter an error relating to the document well formedness, XHTML parser must abort it.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...