Introduction to HTML
HTML FEATURES:
* Easy to use* Loose syntax (although, being too flexible will not comply with standards)
* Supported on almost every browser, if not all browsers.
* Widely used; established on almost every website, if not all websites.
* Very similar to XML syntax, which is increasingly used for data storage
* Free - You need not buy any software
* Easy to learn & code even for novice programmers
* HTML was designed to display data with focus on how data looks
* HTML is a markup language
* HTML is a presentation language
* HTML is case insensitive
* HTML is used for designing a web-page to be rendered on the client side
* HTML has it own predefined tags
* HTML is not strict if the user does not use the closing tags
* HTML does not preserve white space
* HTML is about displaying data,hence static
* HTML (Hyper Text Markup Language) is a widely accepted web-design language.
* HTML is responsible for the construction, and the total output, of a page.
Disadvantages:
*It cannot produce dynamic output alone, since it is a static language*Sometimes, the structuring of HTML documents is hard to grasp
*You have to keep up with deprecated tags, and make sure not to use them
*Deprecated tags appear because another language that works with HTML has
replaced the original work of the tag; thus the other language needs to
be learned (most of the time, it is CSS).
*Security features offered by HTML are limited.
<div> in html
- The <div> tag defines a division or a section in an HTML document.
- The <div> tag is often used to group block-elements to format them with styles.
Note: Browsers usually place a line break before and after the div element.
Linking the external CSS to the html file is as follows:
- This is the most common method of attaching CSS rules to an HTML document. With this method all of your style rules are contained in a single text file that is saved with the .CSS extension.
- just write the line as given bleow in your desired HTML file.
<link rel="stylesheet" type="text/css" href="mystyles.css" media="screen" />
- Make sure you include the correct path to your CSS file in the href.
- If the CSS file is in the same folder as your HTML file then no path is required (like the example above)
- But if it is saved in a folder other than your HTML file, then specify it like this href="foldername/mystyles.css".
- The media parameter specifies when the CSS rules are to be used, where "screen" indicates for use on the computer screen.
Download HTML List of Tags HTML List of Attributes