Define HTML
Define HTML
HTML tags are like keywords which defines that how web browser will format and
display the content. With the help of tags, a web browser can distinguish between
an HTML content and a simple content. HTML tags contain three main parts:
opening tag, content and closing tag. But some HTML tags are unclosed tags.
All HTML tags must enclosed within < > these brackets.
Every tag in HTML perform different tasks.
If you have used an open tag <tag>, then you must use a close tag </tag>
(except some tags).
Syntax
<tag> content </tag>
<br> Tag: br stands for break line, it breaks the line of the code.
<hr> Tag: hr stands for Horizontal Rule. This tag is used to put a line across
the webpage.
The HTML code starts with HTML5 DOCTYPE declaration and is written in the
form of HTML elements that consist of HTML tags. Every tag consists of a keyword
enclosed in angle brackets. For example, <html>, <head>, <body>, <title>, <h1>,
<p>, etc.
The <img> tag has two required attributes: src - Specifies the path to the image. alt -
Specifies an alternate text for the image, if the image for some reason cannot be
displayed.
5. <sub> and <sup> ?
Through text formatting tags in HTML, we can make our content more attractive.
Text formatting tags in HTML give us the freedom to italicize, underline or make our
text bold just like in MS word. We can also write mathematical and chemical formulas
using HTML text formatting tags.
Underline tag<u>
HTML forms are required if you want to collect some data from of the site visitor.
An HTML form is a section of a document which contains controls such as text fields,
password fields, checkboxes, radio buttons, submit button, menus etc.
</form>
8.