What HTML is ?
HyperText Markup Language (HTML) is the main markup language for displaying web pages and other information that can be displayed in a web browser.
HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets (like ), within the web page content. HTML tags most commonly come in pairs like and , although some tags, known as empty elements, are unpaired, for example . The first tag in a pair is the start tag, the second tag is the end tag (they are also called opening tags and closing tags). In between these tags web designers can add text, tags, comments and other types of text-based content.
The purpose of a web browser is to read HTML documents and compose them into visible or audible web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page.
Web browsers can also refer to Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both the HTML and the CSS standards, encourages the use of CSS over explicit presentational HTML markup.
What are Tags?
- HTML markup tags are usually called HTML tags or just tags.
- HTML tags are keywords surrounded by angle brackets like .
- HTML tags normally come in pairs, like and .
- The first tag in a pair is the start tag; the second tag is the end tag.
- Start and end tags are also called opening tags and closing tags. What are Tags?
What are elements
Starting HTML tag, value after that tag and respective closing tag, whole structure is called an element in HTML. As shown below :
The basic distinction between tags and elements is very important to understand. A tag is made up of a left – and right – angle bracket and letters and numbers between those brackets, whereas elements are the opening and closing tags plus anything between the two tags.