Commands and How works of HTML

commands of HTML

Introduction to HTML Commands

Its stands Hyper Text markup language for web pages. HTML will have be element, attribute, and other tag. Most of the website presents on internet uses HTML.An HTML are easy to learns and powerfulls. Hyper Texts are the major method by which we have moving around the webs by clicking on Hyperlink which redirect to another pages. Markups show text insides them using HTML tag by marking a tests as a certain types. HTML Commands element is building block of an HTML pages and can have attribute which provides additional informations about the elements and attribute will be presents in pair.

Basic HTML Commands

The basic command is as follows.

Write a sample HTML document syntax?

Sample HTML documents will have HTML element which is building block of web page and some of the HTML element is html tag which are a root elements, metatag which will have meta informations,title tag which contain a titles of the documents andbody tag which contain data of the documents.

Code.

<!DOCTYPE html><br>

<html lang=”en”><br>

<meta charset=”utf-8″><br>

<title>Page Title</title><br>

<body><br>

<h1>This is a Heading</h1><br>

<p>This is a paragraph.</p><br>

<p>This is another paragraph.<p><br>

</body><br>

</html>

Output: 

This is a Heading’

This is a Paragraph.

This is a another paragraph.

Explain about HTML Headings?

HTML heading is HTML element which is defined with tag h1 to h6 where h1 are define the most importants tag and h6 define the less important tags.

Sample HTML code with headings as below:

     <h1> This is heading1 </h1>

     <h2> This is heading2 </h2>

     <h3> This is heading3 </h3>

     <h4> This is heading4 </h4>

Output: 

This is heading 1

This is heading 2

This is heading 3

This is heading 4

Explain about HTML element paragraph?

HTML paragraphs are an HTML elements which will be defined using tags p and sample codes as below:

     <p> This is a paragraph </p>

     lt;p> This is another paragraph </p>

Output: 

This is a paragraph

This is another Paragraph

  • How to create a table in HTML document?

HTML tables are an HTML elements and its defined using tags table and row with tags tr and cell with tags td and code as below:

     <table>

     <tr>

     <th>Firstname</th>

     <th> Lastname</th>

     <th>Age</th>

     </tr>

     <tr>

     <td>Jill</td>

     <td>Smith</td>

     <td>50</td>

     </tr>

     </table>

Output: 

First name Last name Age

Jill Smith 50

How works of HTML

Introduction to How HTML Works:

HTML are a tag-based languages used to developments of web page; HTML stands for Hyper Text Markup Language. Hypertext refer to the ways in which Web page is linked together. Thus, the link available on a webpages are called Hypertext. Its markup language which are tag tell the browser how the pages will be rendered on its. It were developed by Berners-Lee in late 1991’s but “HTML2.0” were the first standard specifications published in 1995’s. Later its many versions of HTML came out likes HTML 4.0 currently the latest versions of it are HTML5.0 which very famous in front end website developments.

Structure of how HTML page works :

  <!DOCTYPE html>

      <html>

      <head>

      <title>title tag of html</title>

      </head>

      <body>

      <h1>heading tag of html</h1>

      <p>paragraph tag of html<p>

      </body>

      </html>

<!DOCTYPE>

These are tags define the types of the document and HTML versions.

<html>

Above tags enclose the completes HTML programming language documents, comprises of documents header which are represented by head/head tag and documents body which are represented by body/body tag.

<head>

heads tags are represent the document’s header which can keeps other HTML tag like titlelink etc.

<title>

these tag are used insides the head tags to write the document titles.

<body>

body tags are represent the document’s body which keep other HTML tag like divh1p etc.

Different Tags of HTML works and their description:

<h1>:

Heading tags use to creates varieties of the heading example given belows

      <!DOCTYPE html>

      <html>

      <head>

      <title>Heading Example</title>

      </head>

      <body>

      <h1>Heading 1</h1>

      <h2>Heading 2</h2>

      <h3>Heading 3</h3>

      <h4>Heading 4</h4>

      <h5>Heading 5</h5>

      <h6>Heading 6</h6>

      </body>

      </html>

Output

Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6

<p>:

These are a paragraph tags can be better understood by the example given belows.

      <!DOCTYPE html>

      <html>

      <head>

      <title>Paragraph Example</title>

      </head>

      <body>

      <p>This is a first paragraph of text.</p>

      <p>This is a second paragraph of text.</p>

      <p>This is a third paragraph of text.</p>

      </body>

      </html>

Output

This is the first paragraph of text.
This is the second paragraph of text.
This is the third paragraph of text.

Leave a Reply

Your email address will not be published. Required fields are marked *