Breaking

Search This Blog

Saturday 14 July 2018

HTM Elements

HTM Elements/Tags




Logical vs. Physical Tags


There are two tag logical tags and physical tags in HTML. Logical tags are designed to mean the attached text to the browser. An example tag of the logical tag is By inserting text between these tags, you are telling the browser that the text has some value. By default all browsers look bold between text and text.

On the other hand, physical tags provide specific text to which text they attach. Examples of physical tags include:

  1. <b>: Makes the text bold.  
  2. <big>: Makes the text usually one size bigger than what's around it. 
  3. <li>: Makes text italic. 


Start tagElement contentEnd tag
<h1>My First Heading</h1>
<p>My first paragraph.</p>

<body>

The <body> element defines the document body.
It has a start tag <body> and an end tag </body>.
The element content is two other HTML elements (<h1> and <p>).


<h1>


The <h1> element called a heading tag .
It use to write the heading in html
It is the biggest heading tag .ait display most big headings.
It has a start tag <h1>. 
It has a  end tag </h1>.
<p>
The <p> element defines a paragraph.
It has a start tag <p> and an end tag </p>.
The element content is: My first paragraph.
  example:-
<p>My first paragraph.</p>



No comments:

Post a Comment

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();