Skip to main content

HTML(Hyper Text Markup Language)

Class 12 computer 06.08.2020

 

HTML Tags

HTML tags are like keywords which defines that how web browser will format and display the content. With the help of tags, a web browser can distinguish between an HTML content and a simple content. HTML tags contain three main parts:

opening tag, content and closing tag. But some HTML tags are unclosed tags.

When a web browser reads an HTML document, browser reads it from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties.

An HTML file must have some essential tags so that web browser can differentiate between a simple text and HTML text. You can use as many tags you want as per your code requirement.

  • All HTML tags must enclosed within < > these brackets.

  • Every tag in HTML perform different tasks.

  • If you have used an open tag <tag>, then you must use a close tag </tag> (except some tags)

HTML Attribute

  • HTML attributes are special words which provide additional information about the elements or attributes are the modifier of the HTML element.


  • Each element or tag can have attributes, which

  •  defines the behaviour of that element.
  • Attributes should always be applied with start tag.

  • The Attribute should always be applied with its name and value pair.

  • The Attributes name and values are case sensitive, and it is recommended by W3C that it should be written in Lowercase only.

  • You can add multiple attributes in one HTML element, but need to give space between two attributes.

  • <element attribute_name="value">content</element>  

  • <html>  

  • <head>  
  • </head>  

  • <body>  

  •     <h1> This is Style attribute</h1>  

  •    <p style="height: 50px; color: blue">It will add style property in element</p>  

  •     <p style="color: red">It will change the color of content</p>  

  • </body>  

  • </html>  

The href attribute in HTML


Description: The href attribute is the main attribute of <a> anchor tag. This attribute gives the link address which is specified in that link. The href attribute provides the hyperlink, and if it is blank, then it will remain in same page.

1.      <a href="https:// ">This is a link</a>  











Comments

Popular posts from this blog

Input Devices

Input Devices(इनपुट डिवाइस ) Input device enables the user to send data, information or control signals to computer. Central processing unit of computer receives the input and processes it to produce output. Some of the popular input devices are: Keyboard Mouse Scanner Joystick Light Pen Track ball Digitizer Microphone Magnetic Ink Character Recognition (MICR) Optical Character Reader (OCR) Keyboard (कीबोर्ड ) It is a basic input device that is used to enter data by pressing keys. It has different sets of keys for letters, numbers, characters and functions. QWERTY keyboard is the commonly used keyboard to enter data. Mouse (माउस) It is a hand held input device. It is used to move cursor or pointer across the screen. It generally has left and right button and a scroll wheel between them. Laptop computers come with a touch pad that works as a mouse. It lets you control the movement of cursor or pointer by moving your finger over the touchpad. Scanner (...

Memory Hierarchy

Memory Hierarchy A memory unit is an essential component in any digital computer since it is needed for storing programs and data. Typically, a memory unit can be classified into two categories: The memory unit that establishes direct communication with the CPU is called  Main Memory . The main memory is often referred to as RAM (Random Access Memory). The memory units that provide backup storage are called  Auxiliary Memory . For instance, magnetic disks and magnetic tapes are the most commonly used auxiliary memories. Apart from the basic classifications of a memory unit, the memory hierarchy consists all of the storage devices available in a computer system ranging from the slow but high-capacity auxiliary memory to relatively faster main memory. The following image illustrates the components in a typical memory hierarchy. Auxiliary Memory Auxiliary memory is known as the lowest-cost, highest-capacity and slowest-access storage in a computer system....

History of Computers

Hello Students For Class XI(OSVN Inter College) History of Computers The first counting device was used by the primitive people. They used sticks, stones and bones as counting tools. As human mind and technology improved with time more computing devices were developed. Some of the popular computing devices starting with the first to recent ones are described below; Abacus The history of computer begins with the birth of abacus which is believed to be the first computer. It is said that Chinese invented Abacus around 4,000 years ago. It was a wooden rack which has metal rods with beads mounted on them.  The beads were moved by the abacus operator according to some rules to perform arithmetic calculations. Abacus is still used in some countries like China, Russia and Japan. An image of this tool is shown below; Napier's Bones It was a manually-operated calculating device which was invented by John Napier (1550-1617) of Merchiston. In this calculating t...