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

JAVASCRIPT (JS)

  INTRODUCTION JS is very versatile Client-Side language. JS is mostly used for developing the understanding between the webpage and a client. We can also say, a webpage can be made more appealing and spirited, with the assistance of JS. JS may run on most of the internet browsers and on any Operating System. JavaScript is the number one and one of the best coding languages in the world and also very easy. JS along with CSS and HTML makes up the core building blocks of the Internet and the World Wide Web . Application of JavaScript in Web Development ·        JavaScript is utilized for creating web pages. ·        JavaScript is a stand-alone language which is developed in Netscape. ·        JavaScript is used when a website is to be made interactive and add special transitions used by all websites for the cause of validation. ·        JavaScript can ...

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

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