HTML is a language used to describe web pages:
- It refers to an HTML hypertext markup language ( H yper T EXT M arkup L anguage)
- HTML is not a programming language, but a markup language (markup language)
- Markup Language is a set of markup tags (markup tag)
- HTML uses markup tags to describe web pages
XHTML and HTML The main difference:
- XHTML elements must be properly nested.
- XHTML elements must be closed
- · Non-empty tags must end tag.
- · Empty label must also use an end tag or the start tag must use it /> at the end.
- Label names must be in lowercase letters
- XHTML specification defines: name tags and attributes are case sensitive.
- XHTML documents must have a root element.
- · All XHTML elements must be nested within the root element <html> in. All other elements can have children. Sub elements must be in pairs and correctly nested in the parent element. The basic document structure is as follows:
<html> <head> ... </head> <body> ... </body> </html>