Introduction to HTML Commands
HTML [Hypertext Markup Language] is a code that is used to structure and content of the web page. HTML is used in all Webpages and also HTML is the default language of websites. HTML was invented by Tim Berners-Lee in the early 1990s. HTML is a markup language that is different from programming language contains a series of elements that are used to decide how to display the content in a webpage HTML element is distinct by a start tag, content, and end tag. This article will showcase the HTML Document and HTML Commands.
HTML Document
Below we want to Know the Basic HTML Document:
HTML is a markup language, used to format the content using tags. Tags are enclosed with angle braces. Most of the tags having closing tags except in a few tags like empty elements. In HTML tags are in lowercased recommended by world wide web consortium. A basic HTML Document uses the following tags:
- Each hypertext markup language document begins with a hypertext markup language document tag <!DOCTYPE html> like, that’s a declaration tag to grasp the version of the hypertext markup language employed in the document.
- All hypertext markup language code should be along with these basic hypertext markup language tags<html>. It’s having opening-closing tags.
- The head tag <head> contains the header info of the document.
- The title of the document victimization the title tag <title>.
- The body tag <body> is most vital among all the tags, it contains the particular (content) of the document which can be noticeable by the user.
HTML Commands
Below are the Basic HTML Commands:
An HTML Command is called a tag. Tags are contain within < >. Previously, we have seen some necessary tags are used in HTML documents. Here we will see some Basic Html commands are as follows:
- Heading Tags: Every documents must start with heading, and we can use various sizes for headings.HTML have six levels of headings, such as <h1> <h2><h3><h4><h5><h6>.
- Preserve Formatting Tags: Using this tag <pre> we preserve the format of our source HTML document.
- Linebreak Tags: This tag is anything following and it is starting from the next line. This tag is <br / > an empty element, not having open and closing tags.
- Paragraph Tags: This tag is used to create your text into different paragraphs having open and closing tags.
- Horizontal line Tags: This tag <hr / > is another empty element, and it gives a horizontal line between two paragraphs.
- Centering Content Tag: This tag <center> is used to center your text of the document.
Advanced HTML Commands
Below are the Advanced HTML Commands:
In Advanced HTML commands, We will see some advanced tags are used in HTML to structure the content of the document.
- Attributes Tag in HTML: An Characteristic of the HTML element is defined by the attributes, which are having extra information like name, value Ex: align, background color, width, height.
- Formatting Tag in HTML: HTML formatting tags is used to indicate the how text can appear in HTML. Ex: Bold<b>, Italilc<i>, Underlined<u>,etc.
- Phrase Tags in HTML: This tag is used in an advanced level like emphasize text using <em> tag, <mark> tag is used to mark the test using ink, etc.
- Meta Tags in HTML: This tag is giving additional information like describing properties of HTML documents such as author, expiry date, etc. It’s an empty element, it does not affect the physical appearance of the HTML document.
- commands in HTML: HTML command is a piece of code to indicate the section of the document by using <!– … –>
- Images tag in HTML: This tag is used to insert the image in an HTML document by using <img> HTML images are also used to set the image location and width/height, alignment.
- Tables tag in HTML: HTML tables are arrange the text like images, link and tables by using <table> tag in which <td> tag is used to create data cells and <tr> used to create rows.
There are so many Advanced HTML Commands are using in HTML. In the above, we will see important HTML commands mostly used in HTML.
Conclusion
Finally, this article is explaining briefly about the HTML document, basic and advanced HTML Commands. I hope you will gain a piece of knowledge about how to use HTML commands in the HTML document after reading this article.
Recommended Articles
This is a Guide to HTML Commands. Here we discuss the brief overview. Also, discuss Basic HTML Documents and Basic, Advanced HTML commands in detail. You can also go through our other suggested articles to learn more –
Are you preparing for the entrance exam ?
Join our Software Development test series to get more practice in your preparation
View More