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

Back-end Development

  Web applications behind the scenes are controlled by Back-End Development. Back-end is used to create Front-end by utilizing a database. Back-end can be written in various coding system and dialects, for example, v php- php document is an ASCII record, made using any ASCII editor (Notepad and Notepad++). Html codes are written in php files and can be easily embedded. v JAVA- JAVA is one of the most liked programming languages. It was developed in early 90’s by sun microsystems. Father of Java is James Gosling and it is high level programming language. v Python- Python language is being utilized at both small and huge scale due its adaptable nature and numerous programming ideal models like object-oriented, imperative, functional and procedural.

Other Tool in Web Development

JavaScript- JavaScript is a lightweight, interpreted, dynamic programming language that is used to make dynamic web pages and applications. It was came out in 1995 with the name LiveScript but afterwards its name is changed into JavaScript as it is integrated with Java. Bootstrap- It is the most popular framework for faster and easier web-development. The reason why we use bootstrap is that it is supported by almost all popular browsers, easily get started ( anyone who has knowledge of just HTML & CSS can start with it ), its responsive design, it also contains JavaScript plugins. AJAX ( Asynchronous JavaScript and XML )- It is a group of coherent client-side & server-side technologies by using which we can update a part of a webpage instead of reloading the whole webpage. We can take the examples of sites like YouTube, Gmail, Google-maps, tabs within Facebook etc. It increases the speed and usability of web pages and application. JQuery- It is JavaScript library whic...

History and versions

  - HTML was created by Tim Berners Lee in 1991. He considered it to be an application of SGML (Standard Generalized Markup Language).”HTML 2.0” was published in 1995. “HTML 4.01” was published in 1999. Although “HTML 4.01” version is widely used yet currently “HTML 5” is used more commonly and it was published in 2014.    HTML was originally developed with the intention of evaluating the structure of document like headings, lists, paragraphs etc. to give the facility of sharing information between scholars.   But now, it is being   commonly used for format web-pages .   o 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 i...