What is HTML?
HTML stands for Hyper Text Markup Language
HTML is the standard markup language for Web pages
HTML elements are the building blocks of HTML pages
HTML Elements are represented by < > tags
HTML Elements
An HTML element is a start tag and an end tag with content in between
< h1 > This is a heading < /h1 >
< p> This is a paragraph < /p>
HTML Attributes
- HTML elements can have attributes
- Attributes provide additional information about the element
- Attributes come in name / value pairs like Charset ="utf-8"
Output
Explained
- The < !DOCTYPE html > declaration defines this document to be HTML 5
- The < html > element is the root element of an HTML page
- The Lang attribute defines the language of the document
- The < meta > element contains meta information about the document
- The charset attribute defines the character set used in the document
- The < title > element specifies a title for the document
- The < body > element contains the visible page content
- The < h1 > element defines a large heading
- The < p > element defines a paragraph
HTML Documents
All HTML documents must start with a document type declaration < !DOCTYPE html >
The HTML document itself begins with <html> and ends with </html>
The visible part of the HTML document is between <body> and </body>



टिप्पणियाँ
एक टिप्पणी भेजें