Html Documents
Html Documents : Starts with the DOCTYPE declaration ie .. The main document of html start with tag and ends with tag.
Html Documents
Below is simple example of the html document.
Example
<!DOCTYPE html> <html> <head> <title>Title</title> </head> <body> <h1>Heading</h1> <p>Paragraph.</p> </body> </html> |
The above example contains basically following parts:
1. Doctype Declaration : is used to declare the document type.
2. Html : defines the root of html.
3. Head : which defines the information about the document.
4. Body : which contains the main and visible part in html.
Advertisements
Add Comment
📖 Read More
- 1. Html Elements
- 2. Html Attributes
- 3. Html Headings
- 4. Html Paragraphs
- 5. Html Styles
- 6. Html Formatting
- 7. Html bold tag
- 8. Html strong tag
- 9. Html Italic Tag
- 10. Html mark tag