Skip to main content

How we write code in HTML/Use

 


HTML is specified as TAGS in an HTML document.

HTML Tags-It is basically word or group of words enclosed between Angle Brackets as <html>. Usually, These Tags comes in pair as <h1>  &  </h1> , that are wrapped around some text. They are called Container tags. 1st tag in the pair is opening tag and the 2nd one is End/closing tag. On the other hand, Empty Tag is a single tag like <br>. They don’t have to be wrapped around any text.

Its structure-

All HTML docs. are mainly divided into 2 parts- Head & Body. We have <html>, <head> & <body> container tags in each HTML document. <html> tag tells the browser that it a HTML document. The <head> tag includes information like the title. The <body> tag contains content like- paragraphs, headings, links, pictures etc.

<html>

   <head>

        <body>

                <h1>---</h2>

               <p>----</p>

         </body>

    </head>

</html>

 

We can use HTML formatting tags (like <b>,<sub>,<sup>,<em>, <i>) to bold,  italicized , subscript, superscript text etc.

 

Element- An HTML element is all the thing that is written between opening and ending tag.

 

 

<p>              this is a simple text.        </p>

 

 

 opening tag          content              end tag

 

 

HTML attributes- Additional information of elements is provided by them. They are also specified in the opening tag. They have name /value pair like this: name= “value”

E.g. - 

§ <table border= “2”></table>

§ <a href= “http:/www.google.com”>Google</a>

Style attribute- It introduces CSS to HTML. The purpose of this attribute is to provide style to all HTML elements. Styles were introduced in HTML4. Styles can be added directly to HTML element by using the style attribute or indirectly by in separated CSS files.

e.g.- 

style= “background-color:red”                         

style= “font-size:20px”

style= “text-align:center”


Comments

Popular posts from this blog

Cascading Style Sheet

  CSS ( The Stylist ) HTML is responsible for all the core foundation and CSS is responsible designing of webpage like pretty layout, add colors to your font, change the font-size and font-style etc. Both are used together.               Hence we can say that- “It is a language for specifying how documents/web-pages are presented to the user.” By the use of CSS, we can manage what the color of text, style of fonts, background color and images, spaces between the paragraphs, variation in display for different devices and screen size should be, how columns are sized etc. It gives us the control over presentation of the document.   History and versions- It was invented by HakonWium Lie in 1994 and maintained by a group of people within the W3C (World Wide Web Consortium). This group creates docs. called ‘specifications’. After a discussion by W3C members, it becomes a ‘recommendation’. In December 1996, C...

Basic Structure of JavaScript

  JavaScript can be implemented using JS code in between <script> …. </script> tag if you have kept your JS code inside the HTML document itself. The script tag contains two significant attributes: - ·         Language- This attribute indicates what scripting language you are using in a web page. Normally, the standard will be “javascript”. Latest version of Html(Html5) does not require the use of this attribute anymore.   ·         TYPE- This library is used for what is presently instructed to show the scripting syntax being used and in JavaScript its value should be set to “text/javascript”.

What is Machine Learning

  We are living and growing in the generation of machine which are getting trained from their past experience since millions and millions of years. The era of machines, software and robot has come into existence. For their proper and systematic working, some program has to be made and should be executed.   But what if machine start learning by their own . So from this idea, the concept of machine learning comes into existence.   Machine learning is the core of many future technological advancement in this era. We can observe many applications and of machine learning around us. Some are Google Assistant, Apple   Siri, Tesla Self Driving Car and many more. Artificial intelligence is everywhere these days, we are using AI in way or other without knowing about it. One of the important application of artificial intelligence is machine learning, in which computers, devices and various software perform task very similar to human brain. Machine learning is the part of...