HTML is a language for describing web pages.
- A markup language is a set of markup tags
- HTML uses markup tags to describe web pages
HTML Tags
- HTML tags are keywords surrounded by angle brackets like <html>
- HTML tags normally come in pairs like <b> (start tag) and </b> (end tag)
- HTML tags are not case sensitive: <P> means the same as <p>.
Editing HTML Files:
Notepad
Dreamweaver
FrontPage
HTML Builder
HTML File Extension:
To save an HTML file, we can use either the .htm or the .html extension. With new software it is perfectly safe to use .html.Nested HTML Elements
Most HTML elements can be nested (can contain other HTML elements).Ex: <b><i>welcome</i></b>
Empty HTML Elements
HTML elements without content are called empty elements. Empty elements can be closed in the start tag.<br> is an empty element without a closing tag (it defines a line break).
In XHTML, XML, and future versions of HTML, all elements must be closed. Ex: <br/>
HTML Attributes
- Attributes provide additional information about the element
- Attributes are always specified in the start tag
- Attributes come in name/value pairs like: name="value"
HTML Comments: Comments are ignored by the browser and are not displayed.
Ex: <! This is a comment >
No comments:
Post a Comment