The area will be sized at rows by cols but supports

This preview shows page 25 - 28 out of 38 pages.

The area will be sized at rows by cols but supports automatic scrolling. Syntax: <TEXTAREA NAME=” string ROWS=” n COLS=” n ”> . . . </TEXTAREA> Where NAME: Specify the name of the text field ROWS: Set the number of rows of text that will be visible COLS: Set the number of columns of text that will be visible Example : HTML code that implements forms <html> <head> <title>Student Data </title> </head>
Image of page 25

Subscribe to view the full document.

UNIT-I HTML AND JAVASCRIPT Ch.Vijayananda [email protected] of CSE 26 <body> <form> <p><td>Name:<input type="text" maxlength="30" size=15> <br/> Password:<input type="password" maxlenght=10 size=15><br/> Qualification:<input type="checkbox" name="q" value="bt">B.Tech <input type="checkbox" name="q" value="mt">M.Tech <br/> Gender:<input type="radio" name="g" value="m">Male <input type="radio" name="g" value="f">Female <br/> Course:<select name="course" size="1"> <option value="1" selected>CSE <option value="2">ECE </select><br/> Address:<textarea name="addr" rows="5" cols="15"></textarea><br/> <input type="submit" name="s" value="Accept"> <input type="reset" name="c" value="Ignore"></p> </form> </body> </html> Output: 1.11 Cascading Style Sheets CSS stands for Cascading Style Sheets. A style sheet is document that allows you to control the rendering, such as fonts, colors, typefaces and other aspects of style, of a web document. You can define style sheet properties within HTML document or in an external file. A Style sheet is a collection of rules Advantages: 1. Enables you to separate content from formatting. 2. Reduces download time by removing formatting information from the document. 3. Allows you to ensure a consistent appearance across a site 4. It supports reusability (Inheritance).
Image of page 26
UNIT-I HTML AND JAVASCRIPT Ch.Vijayananda [email protected] of CSE 27 color : red; Declaration Defining a style: A rule is a statement that defines a style. Property name Property value H1 { } Selector A rule consists of two parts: 1. Selector 2. Declaration A selector is an HTML statement that is linked to a specific style. A declaration defines the style for selector. A declaration again has two parts: 1. Property name 2. Property value Property name is name of the property for which you need to define a style. Property value is the value assigned to property name. Types of style sheets You can define three types of style sheets: 1. Inline style sheets 2. Internal/Embedded style sheets 3. External style sheets An inline sheet applies style to a particular element in a webpage. Embedding a style sheet is for defining styles to a single webpage. An external style sheet can apply styles to multiple web pages. Inline style sheets The style included within the tag is known as inline style sheet . To include style definition within tag, you use “STYLE” property. Syntax: <TAG STYLE=”propertyname: property value;”>. . . </TAG> An Inline style affects only the element for which the style is defined. The style does not affect any other element even if the element is of the same type.
Image of page 27

Subscribe to view the full document.

Image of page 28
  • Winter '18
  • farhan
  • Ch.Vijayananda Ratnam

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern