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.

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...

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...