The document provides an overview of HTML, CSS, JavaScript and jQuery. It describes what each technology is, examples of common tags and syntax, and how they are used together. HTML is a markup language used to define the structure and layout of web pages using tags. CSS is used to style and lay out HTML elements, and can be linked externally or embedded internally or inline. JavaScript can be used to add interactive elements and dynamic behavior to HTML pages client-side. jQuery is a JavaScript library that simplifies tasks like HTML document traversal and manipulation, events, animations and Ajax.
CSS (Cascading Style Sheets) allows separation of document content from page layout/presentation. CSS was introduced to make web page design and modification easier. CSS properties control elements like text formatting, page layout, and color/images. CSS rules cascade from broad to specific with author styles overriding browser defaults. Common selectors target elements by ID, class, tag name or relationship.
This document discusses jQuery, a JavaScript library. It defines jQuery as a lightweight library that allows developers to "write less, do more". It describes how jQuery works by selecting elements and running functions on them. It also covers various jQuery methods for DOM manipulation like fading, sliding, and handling events. Key points covered include selecting elements, jQuery syntax, downloading jQuery, and how to get started with basic functionality.
- CSS3 is made up of modular components at different stages of development rather than a single specification. These include selectors, properties, and other modules.
- CSS selector capabilities were expanded in CSS3 with things like attribute selectors that select elements based on attributes, pseudo-classes for dynamic states like hover and active, and structural pseudo-classes for things like first-child.
- CSS4 is extending selector functionality further with things like the :matches pseudo-class to apply rules to groups of selectors, pseudo-classes for time-based states, and grid selector features. Support for CSS4 selectors is starting to appear in modern browsers.
This document provides an overview of various CSS topics including comments, colors, text formatting, positioning, and cross-browser compatibility. It explains concepts like using hexadecimal color codes, text properties like alignment and decoration, positioning elements with static, relative, absolute and fixed positioning, and strategies for aligning elements and dealing with browser inconsistencies.
This document discusses Cascading Style Sheets (CSS) and how they can be used to control the style and layout of web documents. CSS allows for a consistent look across multiple platforms, division of labor between design and coding teams, and user control over formatting. CSS rules use selectors to target specific elements and properties to set styles like colors, fonts, sizes, and positioning. CSS handles inheritance of styles and prioritizes rules based on specificity. Styles can position elements outside of normal flow using relative, float, and absolute positioning.
HTML is a markup language used to define the structure and layout of web pages. It uses tags like <h1> and <p> to mark headings and paragraphs. CSS is used to style and lay out HTML elements, using selectors, declarations, and properties to change things like colors and positioning. JavaScript can be added to HTML pages with <script> tags and is used to add interactive elements and dynamic behavior by manipulating HTML and responding to user input. It has data types like strings and numbers and control structures like if/else statements.
this presentation covers the following topics which are as follows
1. Introduction of css
2. History of css
3. Types of css styling
4. Css syntax
5. Css Selector
6. Css Variations Or Css Versions
CSS (Cascading Style Sheets) is a stylesheet language used to describe the presentation of HTML documents. CSS allows you to control the color, font, size, spacing, and other aspects of HTML elements. CSS properties like background, text, font, links, lists and box model can be used to format HTML elements. CSS rules have selectors that specify the element to which a declaration applies, and declarations that contain property-value pairs that define the presentation of the element.
This document provides an overview of HTML topics that will be covered in lectures 4, 5, and 6 of a web programming course. It discusses HTML, HTML forms, common HTML tags and their purposes, text formatting tags, images, links, tables, lists, and forms. It also covers iframes, framesets, block and inline elements, the <div> and <span> tags, layouts, and buttons. The document serves as an outline of key HTML concepts and elements that will be explored in more depth during the lectures.
This document provides an introduction to Cascading Style Sheets (CSS) including what CSS is, its syntax and structure, and the different types of CSS including external, internal, and inline styles. CSS was created in 1996 to separate document structure (HTML) from presentation (styles). CSS uses selectors to apply declarations blocks containing property-value pairs that define elements' styles. External styles are ideal for consistency across pages while internal and inline styles are for one-off or unique styling. The cascade order determines which styles take precedence. Advantages of CSS include separation of concerns, easier maintenance, faster pages, and compatibility across devices.
Introduction to Cascading Style Sheets (CSS)Chris Poteet
This document provides an introduction to Cascading Style Sheets (CSS) including definitions, why CSS is used, the cascade, inheritance, using style sheets, CSS syntax, selectors, the box model, CSS and the semantic web, browser acceptance, fonts, units, colors, layouts, text formatting, backgrounds, lists, shorthand properties, accessibility, and resources for further information.
This document provides an introduction to cascading style sheets (CSS) and covers several key concepts:
CSS is used to style and lay out web pages and defines how HTML elements are displayed. Styles are normally saved in external CSS files so the appearance of an entire website can be changed by editing one file. A CSS rule has a selector that specifies which element the rule applies to and declarations that define properties for that element. Comments can be added to CSS code to explain it. Different selectors like ID, class, and inline styles allow targeting specific elements. The order of style precedence determines which styles get applied when multiple styles conflict. Background properties are used to define and customize element backgrounds.
This is a brief introduction about HTML5. You will learn that what is new in HTML5. I will tell what and when changes happened in HTML which Hyper Text markup language. Html is a language which is used to create web pages that we have seen on the internet. For website development and web hosting visit https://tekfold.com
Advanced CSS
by: Alexandra Vlachakis
Sandy Creek High School, Fayette County Schools
Slide Show correlates Georgia Deparment of Edcuation Career and Technology PATHWAY: Interactive Media
COURSE: Advanced Web Design
UNIT 6: BCS-AWD-6 Advanced CSS
JavaScript String:
The String object lets you work with a series of characters; it wraps Javascript's string primitive data type with a number of helper methods.
As JavaScript automatically converts between string primitives and String objects, you can call any of the helper methods of the String object on a string primitive.
JavaScript Arrays:
The Array object lets you store multiple values in a single variable. It stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.
HTML is a markup language used to define the structure and layout of web pages. CSS is used to style and lay out HTML elements, and JavaScript can be used to program behaviors and interactions in web pages. jQuery is a JavaScript library that simplifies HTML document traversal and manipulation, as well as event handling, animations, and Ajax interactions for rapid web development.
about this presentation:
1) this presentation was a quickie for non-tech employees, who wanted a basic understanding of html/css, as it related to a white-label SAAS product;
2) the back-end/front-end definitions relate to the specific application (it's inaccurate if node.js is in the picture)
This document provides an introduction to CSS (Cascading Style Sheets) including what CSS is, where it can be used, CSS syntax, and key concepts like inheritance and the cascade. CSS is used to style and lay out HTML elements on a page. It allows customizing elements with properties like color, font, size and more. CSS can be included inline with HTML, embedded in the HTML <head> with <style> tags, or linked externally in a .css file. The cascade determines which styles take precedence when multiple selectors apply to the same element. Inheritance applies styles to descendant elements.
CSS stands for Cascading Style Sheets
Styles define how to display HTML elements
External Style Sheets can save a lot of work
Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in a Web site, just by editing one single file!
This document provides an overview of HTML and CSS topics including:
- A brief history of HTML and CSS standards from 1990 to present.
- Descriptions of common HTML elements like <body>, <head>, <img>, <a>, and lists.
- Explanations of CSS concepts like selectors, properties, units, positioning, and layout fundamentals.
- Details on CSS topics like the box model, centering content, semantic HTML, and flexbox.
The document serves as a course outline or reference for learning HTML and CSS fundamentals.
The document provides an introduction to JavaScript, including its history and uses. It discusses how JavaScript is an interpreted programming language used for client-side scripting of web pages to make them dynamic and interactive. The document outlines key JavaScript concepts like variables, functions, operators, and conditional statements. It provides examples of how to write JavaScript programs and embed them in HTML files using the <script> tag.
The document provides an introduction to HTML, covering topics such as what HTML is, how web pages work, common programs used to write HTML, how browsers display web pages, basic HTML tags, formatting of HTML documents, and more. Key points include:
- HTML is the standard markup language used to create web pages
- Web pages are stored on servers and viewed in browsers using HTTP
- Popular programs for writing HTML include Notepad, Textpad, Dreamweaver
- Browsers fetch and display pages using HTML tags to control formatting
- Basic HTML tags include headings, paragraphs, line breaks, comments
- Links, images, backgrounds, and other elements are added using tags
HTML and CSS are markup languages used to structure and style web pages. HTML is used to define the structure and semantics of content, while CSS handles the presentation and layout. Some key points covered include:
- HTML stands for Hypertext Markup Language and uses tags to structure content into headings, paragraphs, lists etc. CSS is used to specify rules that control the presentation and formatting of HTML elements.
- The box model is a fundamental concept in CSS that treats each HTML element as a box, including properties like margins, borders, padding and content.
- Common CSS selectors include element selectors, class selectors, ID selectors and pseudo-classes. The specificity of selectors determines which styles
The document provides an introduction to HTML basics including HTML document structure, common tags, and formatting. It discusses the <!DOCTYPE> declaration, <head> and <body> sections, common text formatting tags, headings, paragraphs, comments, and includes code examples.
Intro to Web Development Part 1: HTML + CSSBasel Issmail
First from series of workshop presentations about HTML and CSS for Those who want to learn how to design and build websites from scratch. Given by Basel Issmail.
Client and Server, Web page tree structure, HTML tags: text, links, images, lists, tables.
CSS (Cascading Style Sheets) is a stylesheet language used to describe the presentation of HTML documents. CSS allows you to control the color, font, size, spacing, and other aspects of HTML elements. CSS properties like background, text, font, links, lists and box model can be used to format HTML elements. CSS rules have selectors that specify the element to which a declaration applies, and declarations that contain property-value pairs that define the presentation of the element.
This document provides an overview of HTML topics that will be covered in lectures 4, 5, and 6 of a web programming course. It discusses HTML, HTML forms, common HTML tags and their purposes, text formatting tags, images, links, tables, lists, and forms. It also covers iframes, framesets, block and inline elements, the <div> and <span> tags, layouts, and buttons. The document serves as an outline of key HTML concepts and elements that will be explored in more depth during the lectures.
This document provides an introduction to Cascading Style Sheets (CSS) including what CSS is, its syntax and structure, and the different types of CSS including external, internal, and inline styles. CSS was created in 1996 to separate document structure (HTML) from presentation (styles). CSS uses selectors to apply declarations blocks containing property-value pairs that define elements' styles. External styles are ideal for consistency across pages while internal and inline styles are for one-off or unique styling. The cascade order determines which styles take precedence. Advantages of CSS include separation of concerns, easier maintenance, faster pages, and compatibility across devices.
Introduction to Cascading Style Sheets (CSS)Chris Poteet
This document provides an introduction to Cascading Style Sheets (CSS) including definitions, why CSS is used, the cascade, inheritance, using style sheets, CSS syntax, selectors, the box model, CSS and the semantic web, browser acceptance, fonts, units, colors, layouts, text formatting, backgrounds, lists, shorthand properties, accessibility, and resources for further information.
This document provides an introduction to cascading style sheets (CSS) and covers several key concepts:
CSS is used to style and lay out web pages and defines how HTML elements are displayed. Styles are normally saved in external CSS files so the appearance of an entire website can be changed by editing one file. A CSS rule has a selector that specifies which element the rule applies to and declarations that define properties for that element. Comments can be added to CSS code to explain it. Different selectors like ID, class, and inline styles allow targeting specific elements. The order of style precedence determines which styles get applied when multiple styles conflict. Background properties are used to define and customize element backgrounds.
This is a brief introduction about HTML5. You will learn that what is new in HTML5. I will tell what and when changes happened in HTML which Hyper Text markup language. Html is a language which is used to create web pages that we have seen on the internet. For website development and web hosting visit https://tekfold.com
Advanced CSS
by: Alexandra Vlachakis
Sandy Creek High School, Fayette County Schools
Slide Show correlates Georgia Deparment of Edcuation Career and Technology PATHWAY: Interactive Media
COURSE: Advanced Web Design
UNIT 6: BCS-AWD-6 Advanced CSS
JavaScript String:
The String object lets you work with a series of characters; it wraps Javascript's string primitive data type with a number of helper methods.
As JavaScript automatically converts between string primitives and String objects, you can call any of the helper methods of the String object on a string primitive.
JavaScript Arrays:
The Array object lets you store multiple values in a single variable. It stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.
HTML is a markup language used to define the structure and layout of web pages. CSS is used to style and lay out HTML elements, and JavaScript can be used to program behaviors and interactions in web pages. jQuery is a JavaScript library that simplifies HTML document traversal and manipulation, as well as event handling, animations, and Ajax interactions for rapid web development.
about this presentation:
1) this presentation was a quickie for non-tech employees, who wanted a basic understanding of html/css, as it related to a white-label SAAS product;
2) the back-end/front-end definitions relate to the specific application (it's inaccurate if node.js is in the picture)
This document provides an introduction to CSS (Cascading Style Sheets) including what CSS is, where it can be used, CSS syntax, and key concepts like inheritance and the cascade. CSS is used to style and lay out HTML elements on a page. It allows customizing elements with properties like color, font, size and more. CSS can be included inline with HTML, embedded in the HTML <head> with <style> tags, or linked externally in a .css file. The cascade determines which styles take precedence when multiple selectors apply to the same element. Inheritance applies styles to descendant elements.
CSS stands for Cascading Style Sheets
Styles define how to display HTML elements
External Style Sheets can save a lot of work
Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in a Web site, just by editing one single file!
This document provides an overview of HTML and CSS topics including:
- A brief history of HTML and CSS standards from 1990 to present.
- Descriptions of common HTML elements like <body>, <head>, <img>, <a>, and lists.
- Explanations of CSS concepts like selectors, properties, units, positioning, and layout fundamentals.
- Details on CSS topics like the box model, centering content, semantic HTML, and flexbox.
The document serves as a course outline or reference for learning HTML and CSS fundamentals.
The document provides an introduction to JavaScript, including its history and uses. It discusses how JavaScript is an interpreted programming language used for client-side scripting of web pages to make them dynamic and interactive. The document outlines key JavaScript concepts like variables, functions, operators, and conditional statements. It provides examples of how to write JavaScript programs and embed them in HTML files using the <script> tag.
The document provides an introduction to HTML, covering topics such as what HTML is, how web pages work, common programs used to write HTML, how browsers display web pages, basic HTML tags, formatting of HTML documents, and more. Key points include:
- HTML is the standard markup language used to create web pages
- Web pages are stored on servers and viewed in browsers using HTTP
- Popular programs for writing HTML include Notepad, Textpad, Dreamweaver
- Browsers fetch and display pages using HTML tags to control formatting
- Basic HTML tags include headings, paragraphs, line breaks, comments
- Links, images, backgrounds, and other elements are added using tags
HTML and CSS are markup languages used to structure and style web pages. HTML is used to define the structure and semantics of content, while CSS handles the presentation and layout. Some key points covered include:
- HTML stands for Hypertext Markup Language and uses tags to structure content into headings, paragraphs, lists etc. CSS is used to specify rules that control the presentation and formatting of HTML elements.
- The box model is a fundamental concept in CSS that treats each HTML element as a box, including properties like margins, borders, padding and content.
- Common CSS selectors include element selectors, class selectors, ID selectors and pseudo-classes. The specificity of selectors determines which styles
The document provides an introduction to HTML basics including HTML document structure, common tags, and formatting. It discusses the <!DOCTYPE> declaration, <head> and <body> sections, common text formatting tags, headings, paragraphs, comments, and includes code examples.
Intro to Web Development Part 1: HTML + CSSBasel Issmail
First from series of workshop presentations about HTML and CSS for Those who want to learn how to design and build websites from scratch. Given by Basel Issmail.
Client and Server, Web page tree structure, HTML tags: text, links, images, lists, tables.
This document provides an overview of jQuery including:
- Main jQuery objects like DOM tree, window, and document
- How to select elements using jQuery selectors
- How to get and set attributes, CSS, HTML and text of elements
- How to handle events like click and toggle using jQuery
- How to animate elements by showing, hiding, and changing styles
- Common jQuery plugins and tools for debugging
- Links to documentation and learning resources for jQuery
This document outlines the steps to create two basic websites using HTML and CSS. For the first website, it describes creating the HTML structure with a container, header, blog post, and footer sections. It then details writing the HTML code for each section and linking an external CSS stylesheet to style the webpage. Similar steps are followed for the second website, including defining the HTML structure, writing the code, linking the CSS, and styling elements like the container, header, content and footer. The document concludes by thanking the reader.
This PPT is about my best friends, HTML, CSS and JS. Here I am just talk/show few features of them. all three combined make our web site more powerful in this WWW world.
This document lists various skills and techniques involved in web design including graphic design, interface design, user experience design, search engine optimization, front end and back end development, programming languages like HTML, Java Script, CSS and PHP. It also mentions trends in web design like parallax, responsive design, SVG, interactive and ghost buttons. The document indicates that web designers use different tools depending on their role and lists skills like marketing, communication design, user experience design, page layout, typography, motion graphics and quality of code.
The document discusses jQuery and its selector engine Sizzle, providing an overview of how Sizzle breaks selectors down into arrays and then matches elements by going through the arrays from left to right and testing elements against a set of regular expressions defined in its match object. It also touches on how different JavaScript libraries approach selector matching differently in terms of direction and use of the browser's native querySelectorAll method.
JavaScript was designed to add interactivity to HTML pages. It is a scripting language that is usually embedded directly into HTML pages and allows for dynamic text, event handling, reading/writing HTML elements, and validating form data. JavaScript supports both client-side and server-side scripting and was originally developed by Netscape under the name LiveScript before being renamed. It provides programming capabilities to HTML authors and allows for dynamic content, user interaction, and validation without server requests.
This document provides an overview of type conversion in C++. It discusses implicit and explicit type conversion, including promotion and demotion. It covers numeric type conversion between integral types like int, float, double, and char. It also discusses enum types in C++ and how to declare and use enumerated variable types. Finally, it briefly introduces relational operators. The key topics covered are type conversion between numeric types, both implicitly through promotion and explicitly through casting, as well as how to define and use enum types for a set of named constants.
The document discusses JSON (JavaScript Object Notation), which is a lightweight data format that is easy for both humans and machines to read and write. It uses conventions familiar to programmers and is built upon two basic structures: 1) a collection of name/value pairs (objects) and 2) an ordered list of values (arrays). The document then provides more details on the syntax for objects, arrays, strings, numbers, and how these JSON elements can be nested.
This document provides an introduction and overview of HTML, CSS, and JavaScript for web development. It covers the basics of each language, including common tags and elements in HTML, syntax and selectors in CSS, and how to incorporate JavaScript in HTML pages. It also discusses tools used for web development and lists learning resources for further studying HTML, CSS, and JavaScript.
Tech Altum provides a 4-month web design course covering HTML, CSS, JavaScript, jQuery, Photoshop, responsive layouts and Bootstrap. The course objectives are to provide concepts, technologies and skills for front-end web development. It covers topics such as HTML5 fundamentals, CSS3, responsive websites, Bootstrap framework, and implementing a sample project. The training is conducted by experienced corporate trainers and includes placement assistance and opportunities for live project training.
Introduction to HTML5 and CSS3 (revised)Joseph Lewis
Joseph R. Lewis of Sandia National Laboratories gave a presentation on HTML5 and CSS3 at Oak Ridge National Laboratory. The presentation provided an overview of the history that led to the development of HTML5, described new HTML5 semantic elements and attributes, and covered features of HTML5 like Canvas, SVG, and MathML. It also covered new CSS3 properties and exercises for attendees to experiment with the new technologies.
These are the slides from my Intro to HTML talk that I gave for Trade School Indy on 12 Feb, 2014.
More information posted at http://randyoest.com/html/ or follow me on Twitter at @amazingrando.
This document discusses developing mobile web apps using HTML5, jQuery, and PhoneGap/Apache Cordova. It covers the hybrid approach of using HTML/CSS/JavaScript for the front-end and PhoneGap to package it as a native mobile app. Tools mentioned include Apache Cordova, Node.js, Eclipse, and Xcode. It provides an overview of key topics to be covered in subsequent days, such as the mobile web page structure using jQuery Mobile, connecting to online databases using PHP and MySQL, and building apps with PhoneGap Build.
Slides from 'Back to Basics' quarterly theme presentation @Version 1 covering: general front-end best practice guidelines,HTML markup, CSS, Java Script, Accessibility, Performance, Cross-browser compatibility, Code Reviews and Tools & resources
JSON (JavaScript Object Notation) is a lightweight data format that is easy for humans to read and write and easy for machines to parse and generate. It is built upon two structures: collections of name-value pairs and ordered lists of values. JSON has advantages over XML as it is lighter, easier to parse, and does not require tags.
You've been tasked with developing a new front end feature. HTML, CSS, and JavaScript are nothing new to you, in fact you even know a few tricks to get this feature out the door. It doesn't take you long and the code works like a charm, yet you have a looming suspicion that some of the code might not be up to par. You're likely right, and you're definitely better than that.
We often write code without paying attention to the bigger picture, or overall code base. Upon stepping back we notice areas of duplicate code, ripe for refactoring. It's time to build more modular front ends, focusing on the reusability of HTML, CSS, and JavaScript, and to take maintainability to heart.
This document provides an overview of HTML5, including what it is, new elements and attributes, forms, media capabilities, and APIs. Key points include HTML5 simplifying the DOCTYPE, making small semantic changes to existing elements, removing obsolete elements, adding new semantic elements like article, section, header, footer, and aside, and introducing new form input types. It also covers new media elements like video and audio, the canvas element, local storage, and geolocation.
HTML is a markup language used to define the structure and layout of web pages. It uses tags like <html> and <body> to mark elements in a web page like headings, paragraphs, links, images, and forms. Key HTML elements include headings, paragraphs, links, images, lists, tables, and forms. HTML documents are made up of these basic building blocks and contain HTML tags and plain text.
Tim Berners-Lee imagined the World Wide Web as a space for interconnecting documents through hyperlinks. He created HTML to provide the structure and formatting for documents, CSS for presentation, and JavaScript for interactivity. These three languages work together to display content on the web. HTML uses tags to mark up content like paragraphs, headings, and images. CSS controls how content is styled and presented using selectors, rules and property-value pairs. It can be linked via external stylesheets, embedded in HTML, or used inline. JavaScript adds interactive behaviors to webpages.
After this presentation students will be able to:
1. Define the term hypertext and state the purpose of HTML.
2. Identify the main parts of an HTML document.
3. Identify and state the purpose of different HTML elements.
4. Differentiate between HTML elements, tags, and attributes.
Create web pages using different basic and formatting tags.
The document discusses HTML and creating static websites. It covers key HTML elements like headings, paragraphs, images, links, lists, tables, and forms. It provides examples of how to use these elements to structure a basic website with headings, text, images, and a simple sign up form. The document is intended to teach the basics of HTML and building a website using HTML tags and elements.
This document provides an introduction to HTML, including why it is used, common HTML elements and tags, how to format text and add images and links, and how to create tables, lists, and forms. It explains that HTML is the standard markup language for web pages and is easy to learn. It also lists some popular HTML editors that can be used to write HTML code.
This document provides an overview of an HTML development course taught by Syed Ali. The course covers topics such as HTML, CSS, JavaScript, PHP, Bootstrap, jQuery, and NodeJS. It then goes on to describe key HTML elements such as headings, paragraphs, links, images, lists, forms, and tables. It also covers attributes, styles, multimedia like video and audio, and the structure of an HTML document.
The document provides an overview of HTML including definitions of key terms like HTTP, browsers, and HTML. It describes the significance of HTML as a scripting language that is a subset of SGML and defines the layout and attributes of web documents. It also covers basic HTML elements and tags for text formatting, lists, tables, images, forms, frames, and cascading style sheets.
The document provides an overview of HTML including:
1. It describes some basic HTML elements like lists, tables, images, forms and frames.
2. It explains some key HTML concepts such as tags, the structure of an HTML document, and how to format text.
3. It provides examples of how to create lists, tables, images and forms in HTML.
The document discusses HTML and CSS. It provides code examples of basic HTML elements like headings, paragraphs, images, links, lists, tables, and forms. It also demonstrates how to insert CSS using internal, external and inline styles. CSS is used to style HTML elements by controlling properties like color, font, size, and layout. External CSS allows changing the look of an entire website by modifying one CSS file linked via HTML.
The document provides an overview of HTML (Hypertext Markup Language) including that it is a markup language used to define elements in a web page using tags, describes common HTML tags for headings, paragraphs, lists, links, and tables, and covers basic HTML page structure and syntax such as the <html>, <head>, <body> tags.
HTML - HYPERTEXT MARKUP LANGUAGE AND ITS DIFFERENT ELEMENTSsharunmeetkour20
This contains HTML :
1.History of HTML
2.Basic structure of HTML
3.Elements of HTML
4.Attributes of HTML: Href attribute, Src attribute, style attribute, lang attribute & title attribute.
5.HTML heading & Paragraphs
6.HTML Styles
7.HTML Textformatting
8. HTML Quotation & Citation elements, HTML Comments
HTML Colors, HTML Styles –CSS & HTML links.
9.HTML images: Images, Background images & Picture elements.
10.HTML Favicon & HTML Page title
11. HTML Tables: tables sizes, tables header, Padding & spacing, Colspan
& Rowspan, table styling & table colgroup.
12. HTML List: Ordered, Unordered and other lists.
13.HTML Forms: forms attributes, method attributes, autocomplete attributes,HTML input types ,input attributes, and input form*attributes.
14. References
HTML is a markup language used to create web pages and documents. It uses tags to provide structure and formatting to text and other content. Some key HTML tags include headings, paragraphs, links, images, lists, tables, and forms. HTML has evolved over multiple versions to support additional features like style sheets, frames, and dynamic content.
This document provides an overview of HTML (Hypertext Markup Language) by defining key terms and concepts. It explains that HTML is used to create web documents through the use of tags, and pages are saved with .html or .htm extensions. The document outlines important HTML tags for defining the structure of a page, including <html>, <head>, and <body> tags. It also describes common text formatting tags, lists, links, tables, images, and forms. Cascading Style Sheets (CSS) is introduced as a way to separate document structure from presentation through the use of selectors and style rules.
This document provides an overview of HTML (Hypertext Markup Language) by defining key terms and concepts:
- HTML is used to create web documents and pages through the use of tags that describe formatting, text, images, and hyperlinks. It is a markup language where tags are surrounded by angle brackets.
- HTML documents have two main parts - the head which contains metadata like the title, and the body which contains the visible content. Common tags include <html>, <head>, <title>, and <body>.
- Other tags control text styling (<b> for bold), create lists (<ul> for unordered, <ol> for ordered), add images, create links (<a>),
HTML is used to design web pages and is not a programming language. It uses tags like <h1> and <p> to structure and style text content. Common tags are used to create headings, paragraphs, lists, links, and tables. Forms allow users to enter interactive content through elements like text boxes and buttons. Overall, HTML provides the building blocks for displaying structured documents on the web.
The document provides an overview of full stack web development, including front-end technologies like HTML, CSS, JavaScript and back-end technologies like PHP, Java, and Python. It discusses how websites are structured and hosted, how web pages are built using HTML, and how text editors can be used to write HTML code. It also covers common web development terms like protocols, URLs, and how CSS is used to style web pages.
The document provides an introduction to HTML (Hypertext Markup Language) and describes some of its key components and tags. It discusses that HTML is used to create structured web pages using tags, and that it can include images, scripts, stylesheets and forms. It then explains several important HTML tags like <html>, <head>, <body>, <p>, <a>, <b>, <font>, <form>, and <ol> and their uses.
HTML is a markup language used to define the structure and layout of web pages. HTML uses tags to annotate text, images, and other content for display in a web browser. Some key HTML tags include <h1> for main headings, <p> for paragraphs, <a> for links, <img> for images, <ul> and <ol> for unordered and ordered lists. CSS can be used to style and lay out HTML elements.
The document describes a proposed web-based courier management system that aims to automate the manual processes of a courier company. The current system involves maintaining records and generating reports manually through books. The proposed system is a software application that centralizes data in a database for real-time access and reporting. It allows for tracking shipments, managing employee details and transactions, generating bills and reports. The system has modules for admin and employee functions and is developed using Java/J2EE technologies.
Web based Peripheral trouble shooting management systemFAKHRUN NISHA
The document describes a proposed peripheral troubleshooting management system that allows users to log in, submit complaints about computer peripherals, and check the status of submitted complaints. An administrator can view and assign complaints, add/update user, system, and engineer details, and generate reports. The system aims to provide centralized control, improve efficiency, and utilize technical skills and new technology.
The document describes a proposed prison management system that aims to address the limitations of the existing manual paper-based system. The proposed system would allow administrators and police officials to digitally manage prisoner information and activities. It would offer features like user login and authentication, updating and searching of prisoner details, and generating reports. The system would be developed using technologies like Java, J2EE, and MySQL to provide a more efficient, secure and user-friendly way to manage the prison data.
The document describes an existing manual employee payroll system and proposes an automated web-based system. The existing system is difficult to manage as it requires manually reviewing employee records, department details, attendance, and calculating payroll each month. The proposed system aims to automate all these functions through a web-based system with admin and user modules to more easily manage employee data and payroll processing.
This document describes the development of a web-based meeting scheduler system. The system allows users to call meetings, send details to invitees, and supports scheduling meetings by determining dates, locations and managing conflicts. It has modules for administrators to manage participants, meetings and attendance, and for users to view/update profiles, meetings and attendance. The system is developed using Java/J2EE on the front-end and MySQL on the back-end.
web based Internet cafe system abstractFAKHRUN NISHA
The document describes an internet cafe management software that was developed to computerize the manual process of managing user details and billing. The software allows administrators to manage employee details, machine records, customer information, bills, and complaints online. It also allows employees to perform tasks like registration, billing, viewing machine statuses, and reporting complaints through the software. The system requirements and technologies used to develop the software using Java and MySQL are also outlined.
This document describes a proposed grievance handling system for a municipal corporation. The system will allow citizens to submit grievances online and check the status of those grievances. It will also help streamline the corporation's internal grievance processing. The system has modules for administrators, employees, and users. It aims to increase efficiency by reducing paperwork and making data retrieval and access easier compared to the existing manual system.
The document proposes a web-based Flow Well Automation System to automate various processes for a company including sales order management, quality control, inventory management, and providing management information. The existing system had automated the inventory department but not sales. The proposed system would automate sales order management, quality, inventory/stores, and provide management reports. It would have modules for administrators and users to manage orders, inventory, users, and feedback.
The document outlines the requirements and proposed system for an online equipment rental booking database. The existing system uses Excel sheets which causes delays and lack of accessibility. The proposed system is a web-enabled database that allows customers to select, reserve, and arrange rental equipment online or onsite. It gives multi-user access and control over stock details and generates reports. The system modules include user features like registration, login, ordering, and feedback, as well as admin features like updating equipment and customer details, viewing orders, and sending mail.
The document describes a Disease Report Information System that allows users to register as doctors or patients, view doctors' profiles and contact details, search diseases and view their symptoms and precautions, ask doctors questions, and view daily health tips. The existing system is manual, making tasks like retrieving or updating information difficult. The proposed system automates these processes to make them more efficient. It outlines administrative and user modules, and hardware and software specifications for the system.
This document describes a portal-based system that provides communication between a company, its products, dealers, and clients. The system allows administrators to manage dealer and user registration and product details. It connects users with dealers to buy and sell products without time-consuming personal contact. The system automates order processing, deliveries, receivables, and other functions through modules for administrators, dealers, and users.
This document describes an e-commerce shopping cart system that allows customers to order food online from a catalog. The proposed system maintains and processes order information, controlling the lifecycle of each order. It has user modules that allow customers to register, log in, view menus, add items to a cart, and send orders. Administrator modules allow managing the menu, user details, and order dispatch times. The system is designed using Java/J2EE technologies with a MySQL database on a Windows server.
This document describes an online career guidance system that allows job seekers to register, apply for jobs, take online exams, and check their interview status. The proposed system aims to develop a web-based central recruitment system for a company's HR group. It will automate tasks like creating job postings, storing applicant information, scheduling interviews, and hiring. This will make the recruitment process more efficient compared to a manual system. The system will have modules for administrators, companies, and job seekers.
The document describes a proposed campaign information system that would improve on an existing system. The proposed system would allow for an unlimited number of user groups, store data securely in a database rather than Excel sheets, and provide faster data access. It outlines administrator and user modules that would allow managing campaign, product, and employee details as well as generating reports. The system would be built with Java/J2EE on the front end and MySQL on the back end.
Abstract of Business card management SystemFAKHRUN NISHA
The document describes a business card management system called BisCard that allows users to manage the creation and printing of business cards. It imports employee databases, allows editing card templates online, and places printing orders. The system was created to automate the manual process of designing, ordering, and distributing business cards.
Apartment management system web application projectFAKHRUN NISHA
This document describes an apartment management system created for a construction company to manage records like sales, purchases, receipts, and maintenance in a computerized system rather than manually. It aims to save time and reduce errors. The proposed system has administrator and user modules to handle apartment details, allotments, receipts, maintenance and reports. It is built using Java, JSP, Servlets, MySQL on Windows with a minimum 2GB RAM.
The document provides an introduction to Java servlets and JavaServer Pages (JSP). It discusses servlet lifecycles and interfaces like ServletRequest and RequestDispatcher. It covers session tracking techniques including cookies, hidden form fields, and URL rewriting. It also mentions servlet events and listeners.
Comprehensive Guide to Distribution Line DesignRadharaman48
The Comprehensive Guide to Distribution Line Design offers an in-depth overview of the key principles and best practices involved in designing electrical distribution lines. It covers essential aspects such as line routing, structural layout, pole placement, and coordination with terrain and infrastructure. The guide also explores the two main types of distribution systems Overhead and Underground distribution lines highlighting their construction methods, design considerations, and areas of application.
It provides a clear comparison between overhead and underground systems in terms of installation, maintenance, reliability, safety, and visual impact. Additionally, it discusses various types of cables used in distribution networks, including their classifications based on voltage levels, insulation, and usage in either overhead or underground settings.
Emphasizing safety, reliability, regulatory compliance, and environmental factors, this guide serves as a foundational resource for professionals and students looking to understand how distribution networks are designed to efficiently and securely deliver electricity from substations to consumers.
In the 1993 AASHTO flexible pavement design equation, the structural number (SN) cannot be calculated explicitly based on other input parameters. Therefore, in order to calculate the SN, it is necessary to approximate the relationship using the iterative approach or using the design chart. The use of design chart reduces the accuracy of calculations and, on the other hand, the iterative approach is not suitable for manual calculations. In this research, an explicit equation has been developed to calculate the SN in the 1993 AASHTO flexible pavement structural design guide based on response surface methodology (RSM). RSM is a collection of statistical and mathematical methods for building empirical models. Developed equation based on RMS makes it possible to calculate the SN of different flexible pavement layers accurately. The coefficient of determination of the equation proposed in this study for training and testing sets is 0.999 and error of this method for calculating the SN in most cases is less than 5%. In this study, sensitivity analysis was performed to determine the degree of importance of each independent parameter and parametric analysis was performed to determine the effect of each independent parameter on the SN. Sensitivity analysis shows that the log(W8.2) has the highest degree of importance and the ZR parameter has the lowest one.
Learn how to build a Smart Helmet using Arduino
Read more : https://circuitdigest.com/microcontroller-projects/smart-helmet-using-arduino
With advanced safety features including theft detection, alcohol detection using MQ-3 sensor, drowsiness detection via vibration sensor, and helmet wear detection using IR sensor.
This project uses RF communication between the helmet transmitter and vehicle receiver to ensure safe vehicle operation.
This project report explores the critical domain of cybersecurity, focusing on the practices and principles of ethical hacking as a proactive defense mechanism. With the rapid growth of digital technologies, organizations face a wide range of threats including data breaches, malware attacks, phishing scams, and ransomware. Ethical hacking, also known as penetration testing, involves simulating cyberattacks in a controlled and legal environment to identify system vulnerabilities before malicious hackers can exploit them.
A passionate and result-oriented with over 28 years of multi-disciplinary experience in engineering, construction & maintenance management, and quality control works in oil and gas (offshore and onshore), industrial, and commercial projects. With proven ability in supervising design engineering (FEED) and managing construction, testing, commissioning, and handover of various scales of mechanical, electrical, plumbing, fire protection (MEPF), plant mechanical equipment (static/ rotating), piping, pipeline, and civil projects. A licensed Mechanical Engineer, Registered Master Plumber (Plumbing Engineer equivalent), Certified Project Management Professional (PMP), Occupational Health & Safety Management NEBOSH International General Certificate (IG1) passer, ISO QMS Auditor, ISO QMS, ISO EMS, ISO IMS Implementor, and Master in Business Administration (MBA).
THE RISK ASSESSMENT AND TREATMENT APPROACH IN ORDER TO PROVIDE LAN SECURITY B...ijfcstjournal
Local Area Networks(LAN) at present become an important instrument for organizing of process and
information communication in an organization. They provides important purposes such as association of
large amount of data, hardware and software resources and expanding of optimum communications.
Becase these network do work with valuable information, the problem of security providing is an important
issue in organization. So, the stablishment of an information security management system(ISMS) in
organization is significant. In this paper, we introduce ISMS and its implementation in LAN scop. The
assets of LAN and threats and vulnerabilities of these assets are identified, the risks are evaluated and
techniques to reduce them and at result security establishment of the network is expressed.
Scilab Chemical Engineering application.pptxOmPandey85
This presentation explores the use of Scilab, a powerful open-source alternative to MATLAB, in solving key problems in chemical engineering. Developed during an academic internship, the project demonstrates how Scilab can be effectively applied for simulation, modeling, and optimization of various chemical processes. It covers mass and energy balance calculations for both steady and unsteady-state systems, including the use of differential equations to model dynamic behavior. The report also delves into heat transfer simulations, such as conduction and heat exchanger design, showcasing iterative solutions and energy conservation.
In reaction engineering, Scilab is used to model batch reactors and compare performance metrics between plug flow and continuous stirred tank reactors. The presentation further includes fluid flow simulations using advection-diffusion models and the Navier-Stokes equation, helping visualize mixing and flow behavior. For separation processes, it offers distillation sensitivity analysis using Underwood’s and Gilliland’s correlations. Optimization techniques like gradient descent and genetic algorithms are applied to a plant-wide scenario to minimize energy consumption.
Designed for students, educators, and engineers, this report highlights Scilab's capabilities as a cost-effective and versatile tool for chemical process modeling and control, making it an excellent resource for those seeking practical, open-source engineering solutions. By integrating real-world examples and detailed Scilab code, this presentation serves as a practical guide for anyone interested in chemical process simulation, computational modeling, and open-source software in engineering. Whether you're working on chemical reactor design, heat exchanger analysis, fluid dynamics, or process optimization, Scilab provides a reliable and flexible platform for performing numerical analysis and system simulations. This resource is particularly valuable for chemical engineering students, academic researchers, and professionals looking to reduce software costs while maintaining computational power. With keywords like chemical engineering simulation, Scilab tutorial, MATLAB alternative, and process optimization, this presentation is a go-to reference for mastering Scilab in the context of chemical process engineering.
Peak ground acceleration (PGA) is a critical parameter in ground-motion investigations, in particular in earthquake-prone areas such as Iran. In the current study, a new method based on particle swarm optimization (PSO) is developed to obtain an efficient attenuation relationship for the vertical PGA component within the northern Iranian plateau. The main purpose of this study is to propose suitable attenuation relationships for calculating the PGA for the Alborz, Tabriz and Kopet Dag faults in the vertical direction. To this aim, the available catalogs of the study area are investigated, and finally about 240 earthquake records (with a moment magnitude of 4.1 to 6.4) are chosen to develop the model. Afterward, the PSO algorithm is used to estimate model parameters, i.e., unknown coefficients of the model (attenuation relationship). Different statistical criteria showed the acceptable performance of the proposed relationships in the estimation of vertical PGA components in comparison to the previously developed relationships for the northern plateau of Iran. Developed attenuation relationships in the current study are independent of shear wave velocity. This issue is the advantage of proposed relationships for utilizing in the situations where there are not sufficient shear wave velocity data.
Department of Environment (DOE) Mix Design with Fly Ash.MdManikurRahman
Concrete Mix Design with Fly Ash by DOE Method. The Department of Environmental (DOE) approach to fly ash-based concrete mix design is covered in this study.
The Department of Environment (DOE) method of mix design is a British method originally developed in the UK in the 1970s. It is widely used for concrete mix design, including mixes that incorporate supplementary cementitious materials (SCMs) such as fly ash.
When using fly ash in concrete, the DOE method can be adapted to account for its properties and effects on workability, strength, and durability. Here's a step-by-step overview of how the DOE method is applied with fly ash.
Jamuna river is a morphologically very dynamic river. It carries a vast sediment load from the erosive foothills of Himalaya mountain. The length of the Jamuna River is 220 km. For this research work Jamalpur district is selected to assess morphological changes using hydrodynamic, Artificial intelligence and google satellite images. First, the hydrodynamic model was calibrated and validated at Kazipur station for the years 2018 and 2019 respectively. Then, left overbank maximum discharge, water level, velocity, the slope was extracted from HEC-RAS 1D at 300 m interval interpolated cross-section. Then, this cross-section was exported as a shapefile. In google earth, the erosion rate was measured corresponding to this interpolated cross-section. The results of the hydrodynamic model were given as input variable and erosion rate as an output variable in Machine learning and deep learning technique. Calibration and validation of the regression model was done for the years 2018 and 2019 respectively. This research work can be helpful to locate the area which are vulnerable to bank erosion.
3. WHAT IS HTML?
HTML STANDS FOR HYPER TEXTMARKUP LANGUAGE
HTML IS AMARKUP LANGUAGE
AMARKUP LANGUAGE IS A SET OF MARKUP TAGS
THE TAGS DESCRIBE DOCUMENT CONTENT
HTML DOCUMENTS CONTAIN HTML TAGS AND PLAIN TEXT
HTML DOCUMENTS ARE ALSO CALLED WEB PAGES
4. HTMLTAGS
HTML TAGS ARE KEYWORDS (TAG NAMES) SURROUNDED BY
ANGLE BRACKETS LIKE <HTML>
HTMLTAGS NORMALLY COME IN PAIRS LIKE <P> AND </P>
THE FIRST TAG IN A PAIR IS THE START TAG, THE SECOND TAG IS
THE END TAG
THE END TAG IS WRITTEN LIKE THE START TAG, WITH A SLASH
BEFORE THE TAG NAME
START AND END TAGS ARE ALSO CALLED OPENING TAGS AND
CLOSING TAGS
EXAMPLE
<TAGNAME>CONTENT</TAGNAME>
5. HTML EXAMPLE
<HTML>
<BODY>
<H1>MY FIRST HEADING</H1>
<P>MY FIRST PARAGRAPH.</P>
</BODY>
</HTML>
EXAMPLE EXPLAINED
THE TEXT BETWEEN <HTML> AND </HTML> DESCRIBES THE WEB
PAGE
THE TEXT BETWEEN <BODY> AND </BODY> IS THE VISIBLE PAGE
CONTENT
THE TEXT BETWEEN <H1> AND </H1> IS DISPLAYED AS A HEADING
THE TEXT BETWEEN <P> AND </P> IS DISPLAYED AS A PARAGRAPH
6. HTML EDITORS
WRITE HTMLUSING NOTEPAD OR TEXTEDIT
HTML CAN BE EDITED BY USING A PROFESSIONAL HTML
EDITOR LIKE:
ADOBE DREAMWEAVER
MICROSOFT EXPRESSIONWEB
COFFEECUP HTML EDITOR
HOWEVER, FOR LEARNING HTML WE RECOMMEND A TEXT
EDITOR LIKE NOTEPAD (PC) OR TEXTEDIT (MAC).
WHEN SAVING AN HTML FILE, USE EITHER THE .HTM OR THE
.HTML FILE EXTENSION. THERE IS NO DIFFERENCE, IT IS
ENTIRELY UP TO YOU.
7. HTML TAG
HTML HEADINGS ARE DEFINED WITH THE <H1> TO <H6> TAGS
<H1>THIS IS A HEADING</H1>
HTML PARAGRAPHS ARE DEFINEDWITH THE <P> TAG
<P>THIS IS A PARAGRAPH.</P>
HTML LINKS ARE DEFINEDWITH THE <A> TAG
<A HREF="HTTP://ESPESOLUTIONS.COM">THIS IS A LINK</A>
HTML IMAGES ARE DEFINEDWITH THE <IMG> TAG
<IMG SRC=“ESPELOGO.JPG” ALT=“ESPESOLUTIONS.COM”
WIDTH=“105” HEIGHT=“105”>
HTML USES TAGS LIKE <B> AND <I> FOR FORMATTING OUTPUT,
LIKE BOLD OR ITALIC TEXT.
<B>THIS TEXT IS BOLD</B>,<I>THIS TEXT IS ITALIC</I>
8. HTML ATTRIBUTES
HTML ELEMENTS CAN HAVE ATTRIBUTES
ATTRIBUTES PROVIDE ADDITIONAL INFORMATIONABOUT AN
ELEMENT
ATTRIBUTES ARE ALWAYS SPECIFIED IN THE START TAG
ATTRIBUTES COME IN NAME/VALUE PAIRS LIKE:
NAME="VALUE“
<IMG SRC=“ESPELOGO.JPG” WIDTH=“105” HEIGHT=“105”>
↓ ↓ ↓ ↓ ↓ ↓
NAME VALUE NAME VALUE NAME VALUE
9. HTML TABLES
TABLESARE DEFINED WITH THE <TABLE> TAG.
TABLESARE DIVIDED INTO TABLE ROWS WITH THE <TR> TAG.
TABLE ROWSARE DIVIDED INTO TABLE DATA WITH THE <TD> TAG.
A TABLE ROW CAN ALSO BE DIVIDED INTO TABLE HEADINGS WITH THE
<TH> TAG.
EXAMPLE
<TABLE>
<TR>
<TH>NAME</TH><TH>QUALIFICATION</TH>
</TR>
<TR>
<TD>SANDEEP</TD><TD>CSE</TD>
</TR>
</TABLE>
10. HTML LIST
HTML CAN HAVE UNORDERED LISTS, ORDERED LISTS
UNORDERED HTMLLIST
THE FIRST ITEM
THE SECOND ITEM
THE THIRD ITEM
THE FOURTH ITEM
ORDERED HTMLLIST
1. THE FIRST ITEM
2. THE SECOND ITEM
3. THE THIRD ITEM
4. THE FOURTH ITEM
12. HTML FORMS
HTML FORMS ARE USED TO SELECT DIFFERENT
KINDS OF USER INPUT.
HTML FORMS ARE USED TO PASS DATA TO A SERVER.
AN HTML FORM CAN CONTAIN INPUT ELEMENTS
LIKE TEXT FIELDS, CHECKBOXES, RADIO-BUTTONS,
SUBMIT BUTTONS AND MORE. A FORM CAN ALSO
CONTAIN SELECT LISTS, TEXTAREA, FIELDSET,
LEGEND, AND LABEL ELEMENTS.
SYNTAX:
<FORM>
INPUT ELEMENTS
</FORM>
13. INPUT ELEMENT
THE MOST IMPORTANT FORM ELEMENT IS THE <INPUT>
ELEMENT.
THE <INPUT> ELEMENT IS USED TO SELECT USER
INFORMATION.
AN <INPUT> ELEMENT CAN VARY IN MANY WAYS,
DEPENDING ON THE TYPE ATTRIBUTE.
AN <INPUT> ELEMENT CAN BE OF TYPE TEXT FIELD,
CHECKBOX, PASSWORD, RADIO BUTTON, SUBMIT BUTTON,
AND MORE.
14. TEXT FIELDS
DEFINES ONE LINE INPUT FIELDWHERE USER CAN ENTER TEXT.
EXAMPLE:
<FORM>
FIRST NAME: <INPUT TYPE="TEXT“ NAME="FIRSTNAME"><BR>
LAST NAME: <INPUT TYPE="TEXT" NAME="LASTNAME">
</FORM>
OUTPUT:
FIRST NAME:
LAST NAME:
15. PASSWORD FIELD
PASSWORD DEFINES A PASSWORD FIELD.
<INPUT TYPE=“PASSWORD”>
THE TEXT ENTERED IN THE TEXTFIELD WILL VIEW AS *******.
SYNTAX:
PASSWORD:<INPUT TYPE =“PASSWORD” NAME=“ PASSWORD”>
OUTPUT:
PASSWORD: *********
16. RADIO BUTTONS
RADIO BUTTONS LET A USER SELECT ONLY ONE
OF A LIMITED NUMBER OF CHOICES.
<INPUT TYPE="RADIO“>
SYNTAX:
<FORM>
<INPUT TYPE="RADIO" NAME=“GENDER"
VALUE="MALE">MALE<BR>
<INPUT TYPE="RADIO" NAME=“GENDER"
VALUE="FEMALE">FEMALE
</FORM>
OUTPUT:
MALE
FEMALE
17. CHECKBOXES
CHECKBOXES LET A USER SELECT ZERO OR MORE OPTIONS
OF A LIMITED NUMBER OF CHOICES.
<INPUT TYPE="CHECKBOX“>
SYNTAX:
<FORM>
<INPUT TYPE="CHECKBOX" NAME="VEHICLE"
VALUE="BIKE">I HAVE A BIKE<BR>
<INPUT TYPE="CHECKBOX" NAME="VEHICLE" VALUE="CAR">I
HAVE A CAR
</FORM>
OUTPUT:
I HAVE A BIKE
I HAVE A CAR
18. SUBMIT
A SUBMIT BUTTON IS USED TO SEND FORM DATA TO A
SERVER.
THE DATA IS SENT TO THE PAGE SPECIFIED IN THE FORM'S
ACTION ATTRIBUTE. T
THE FILE DEFINED IN THE ACTION ATTRIBUTE USUALLY
DOES SOMETHING WITH THE RECEIVED INPUT.
<INPUT TYPE="SUBMIT“>
TYPE: SUBMIT.
NAME: VALUE USED BY THE CGI (COMMON GATEWAY
INTERFACE)SCRIPT FOR PROCESSING.
VALUE: DETERMINES THE TEXT LABEL ON THE BUTTON,
USUALLY SUBMIT QUERY.
CGI: EXTERNAL PROGRAM USE STANDARD INPUT AND
OUTPUT FOR DATA EXCHANGE.
20. RESET
IT ALLOWS THE SURFER TO CLEAR ALL THE INPUT IN THE
FORM.
FOR RESET GIVE <INPUT TYPE=“RESET”>
THE BROWSER DISPLAY RESET BUTTON.
21. DROP-DOWN LIST
LET A USER SELECT ONE OR MORE CHOICES FROM LIMITED
NUMBER OF OPTIONS.
SYNTAX:
<HTML>
<BODY>
<SELECT>
<OPTION VALUE=“FIAT">FIAT</OPTION>
<OPTION VALUE="AUDI">AUDI</OPTION>
</SELECT>
</BODY>
</HTML>
22. TEXTAREA
THE <TEXTAREA> TAG DEFINES A MULTI-LINE TEXT INPUT
CONTROL.
THE SIZE OF A TEXT AREA CAN BE SPECIFIED BY THE COLS AND
ROWS ATTRIBUTES, OR EVEN BETTER; THROUGH CSS' HEIGHT
ANDWIDTH PROPERTIES.
Syntax:
<html>
< body>
<textarea rows="10"
cols="30">
</textarea>
</body>
</html>
output
25. WHAT IS CSS?
CSS STANDS FOR CASCADING STYLE SHEETS
STYLES DEFINE HOWTO DISPLAY HTML ELEMENTS
STYLESWERE ADDED TO HTML 4.0 TO SOLVE A PROBLEM
EXTERNAL STYLE SHEETS CAN SAVE A LOT OFWORK
EXTERNAL STYLE SHEETS ARE STORED IN CSS FILES
CSS SYNTAX
A CSS RULE SET CONSISTS OF A SELECTOR AND A DECLARATION
BLOCK:
26. CSS EXAMPLE
A CSS DECLARATION ALWAYS ENDS WITH A SEMICOLON, AND
DECLARATION GROUPS ARE SURROUNDED BY CURLY BRACES:
P {
COLOR: RED;
TEXT-ALIGN: CENTER;
}
CSS SELECTORS
CSS SELECTORS ARE USED TO "FIND" (OR SELECT) HTML
ELEMENTS BASED ON THEIR ID, CLASSES, TYPES, ATTRIBUTES,
VALUES OF ATTRIBUTES AND MUCH MORE.
ELEMENT SELECTOR
ID SELECTOR
CLASS SELECTOR
27. THE ELEMENT SELECTOR
THE ELEMENT SELECTOR SELECTS ELEMENTS BASED ON THE
ELEMENT NAME.
P {
TEXT-ALIGN: CENTER;
COLOR: RED;
}
THE ID SELECTOR
THE ID SELECTOR USES THE ID ATTRIBUTE OF AN HTML TAG TO
FIND THE SPECIFIC ELEMENT.
AN ID SHOULD BE UNIQUE WITHIN A PAGE, SO YOU SHOULD
USE THE ID SELECTOR WHEN YOU WANT TO FIND A SINGLE,
UNIQUE ELEMENT.
28. <P ID=“PARA1”>HI</P>
#PARA1
{
TEXT-ALIGN: CENTER;
COLOR: RED;
}
THE CLASS SELECTOR
THE CLASS SELECTOR FINDS ELEMENTS WITH THE SPECIFIC CLASS.
THE CLASS SELECTOR USES THE HTML CLASS ATTRIBUTE.
HTML ELEMENTS WITH CLASS="CENTER"
.CENTER{
TEXT-ALIGN : CENTER;
COLOR: RED;
}
29. THREE WAYS TO INSERT CSS
THERE ARE THREEWAYS OF INSERTING A STYLE SHEET:
EXTERNAL STYLE SHEET
INTERNAL STYLE SHEET
INLINE STYLE
EXTERNAL STYLE SHEET
AN EXTERNAL STYLE SHEET IS IDEAL WHEN THE STYLE IS
APPLIED TO MANY PAGES. WITH AN EXTERNAL STYLE SHEET,
YOU CAN CHANGE THE LOOK OF AN ENTIRE WEB SITE BY
CHANGING JUST ONE FILE.
<HEAD>
<LINK REL="STYLESHEET" TYPE="TEXT/CSS“
HREF="MYSTYLE.CSS">
</HEAD>
30. INTERNAL STYLE SHEET
AN INTERNAL STYLE SHEET SHOULD BE USED WHEN A SINGLE
DOCUMENT HAS A UNIQUE STYLE. YOU DEFINE INTERNAL
STYLES IN THE HEAD SECTION OF AN HTML PAGE, INSIDE THE
<STYLE> TAG, LIKE THIS:
<HEAD>
<STYLE>
BODY {
BACKGROUND-COLOR: LINEN;
}
H1 {
COLOR: MAROON;
MARGIN-LEFT: 40PX;
}
</STYLE>
</HEAD>
31. INLINE STYLES
AN INLINE STYLE LOSES MANY OF THE ADVANTAGES OF A
STYLE SHEET (BY MIXING CONTENT WITH PRESENTATION). USE
THIS METHOD SPARINGLY!
TO USE INLINE STYLES, ADD THE STYLE ATTRIBUTE TO THE
RELEVANT TAG. THE STYLE ATTRIBUTE CAN CONTAIN ANY CSS
PROPERTY.
EXAMPLE:
<H1 STYLE="COLOR:BLUE;MARGIN-LEFT:30PX;">THIS IS
AHEADING.</H1>
32. STYLING LINKS
LINKS CAN BE STYLED WITH ANY CSS PROPERTY (E.G. COLOR,
FONT-FAMILY, BACKGROUND, ETC.).
THE FOUR LINKS STATES ARE:
A:LINK - A NORMAL, UNVISITED LINK
A:VISITED - A LINK THE USER HAS VISITED
A:HOVER - A LINK WHEN THE USER MOUSES OVER
IT
A:ACTIVE - A LINK THE MOMENT IT IS CLICKED
33. EXAMPLE:
/* UNVISITED LINK */
A:LINK {
COLOR: #FF0000;
}
/* VISITED LINK */
A:VISITED {
COLOR: #00FF00;
}
/* MOUSE OVER LINK */
A:HOVER {
COLOR: #FF00FF;
}
/* SELECTED LINK */
A:ACTIVE {
COLOR: #0000FF;
}
34. LIST
IN HTML, THERE ARE TWO TYPES OF LISTS:
UNORDERED LISTS - THE LIST ITEMS ARE MARKED WITH
BULLETS
ORDERED LISTS - THE LIST ITEMS ARE MARKED WITH
NUMBERS OR LETTERS
UL {
LIST-STYLE-IMAGE: URL('SQPURPLE.GIF');
}
UL {
LIST-STYLE-TYPE: CIRCLE;
}
OL{
LIST-STYLE-TYPE: UPPER-ROMAN;
}
35. TABLE BORDERS
TO SPECIFY TABLE BORDERS IN CSS, USE THE BORDER
PROPERTY.
TABLE,TH,TD
{
BORDER : 1PX SOLID BLACK;
}
COLLAPSE BORDERS
THE BORDER-COLLAPSE PROPERTY SETS WHETHER THE
TABLE BORDERS ARE COLLAPSED INTO A SINGLE BORDER
OR SEPARATED:
TABLE{BORDER-COLLAPSE: COLLAPSE;}
TABLE,TH,TD
{
BORDER : 1PX SOLID BLACK;
}
36. TABLE WIDTH, HEIGHT, TEXT ALIGNMENT
AND PADDING
WIDTH AND HEIGHT OF A TABLE IS DEFINED BY THE WIDTH AND
HEIGHT PROPERTIES.
TABLE{
WIDTH: 100%;
}
TH{
HEIGHT: 50PX;
}
TD{
TEXT-ALIGN: RIGHT;
PADDING: 15PX;
}
37. THE CSS BOX MODEL
ALL HTML ELEMENTS CAN BE CONSIDERED AS BOXES. IN CSS,
THE TERM "BOX MODEL" IS USED WHEN TALKING ABOUT DESIGN
AND LAYOUT.
THE IMAGE BELOW ILLUSTRATES THE BOX MODEL:
Explanation of the different parts:
Content - The content of the box, where text and images appear
Padding - Clears an area around the content. The padding is transparent
Border - A border that goes around the padding and content
Margin - Clears an area outside the border. The margin is transparent
39. client-side programming with JavaScript
scripts vs. programs
JavaScript vs. JScript vs. VBScript
common tasks for client-side scripts
JavaScript
data types & expressions
control statements
functions & libraries
strings & arrays
Date, document, navigator, user-defined classes
40. CLIENT-SIDE PROGRAMMING
client-side programming
programs are written in a separate programming (or scripting)
language
e.g., JavaScript, JScript, VBScript
programs are embedded in the HTML of a Web page, with
(HTML) tags to identify the program component
e.g., <script type="text/javascript"> … </script>
the browser executes the program as it loads the page,
integrating the dynamic output of the program with the static
content of HTML
could also allow the user (client) to input information and
process it, might be used to validate input before it’s submitted
to a remote server
41. JAVASCRIPT
JAVASCRIPT CODE CAN BE EMBEDDED IN A WEB PAGE USING <SCRIPT>
TAGS
<html>
<!–- COMP519 js01.html 16.08.06 -->
<head>
<title>JavaScript Page</title>
</head>
<body>
<script type="text/javascript">
// silly code to demonstrate output
document.write("<p>Hello
world!</p>");
document.write(" <p>How are <br/> "
+
" <i>you</i>?</p> ");
</script>
<p>Here is some static text as
well.</p>
</body>
</html>
document.write displays text in
the page text to be displayed can
include HTML tags the tags are
interpreted by the browser when
the text is displayed as in
C++/Java, statements end with ;
but a line break might also be
interpreted as the end of a
statement (depends upon
browser).JavaScript comments
similar to C++/Java
// starts a single line comment
/*…*/ enclose multi-line
comments
42. JAVASCRIPT DATA TYPES & VARIABLES
JAVASCRIPT HAS ONLY THREE PRIMITIVE DATA TYPES
STRING : "FOO" 'HOW DO YOU DO?' "I SAID 'HI'." ""
NUMBER: 12 3.14159 1.5E6
BOOLEAN : TRUE FALSE *FIND INFO ON NULL, UNDEFINED
<html>
<!–- COMP519 js02.html 16.08.06 -->
<head>
<title>Data Types and Variables</title>
</head>
<body>
<script type="text/javascript">
var x, y;
x= 1024;
y=x; x = "foobar";
document.write("<p>x = " + y + "</p>");
document.write("<p>x = " + x + "</p>");
</script>
</body>
</html>
43. JAVASCRIPT OPERATORS & CONTROL
STATEMENTS
<html>
<!–- COMP519 js03.html 08.10.10 -->
<head>
<title>Folding Puzzle</title>
</head>
<body>
<script type="text/javascript">
var distanceToSun = 93.3e6*5280*12;
var thickness = .002;
var foldCount = 0;
while (thickness < distanceToSun) {
thickness *= 2;
foldCount++;
}
document.write("Number of folds = " +
foldCount);
</script>
</body>
</html>
standard C++/Java operators &
control statements are provided in
JavaScript
• +, -, *, /, %, ++, --, …
• ==, !=, <, >, <=, >=
• &&, ||, !,===,!==
• if , if-else, switch
• while, for, do-while, …
PUZZLE: Suppose you took a
piece of paper and folded it in
half, then in half again, and so on.
How many folds before the
thickness of the paper reaches
from the earth to the sun?
*Lots of information is available
online
44. JAVASCRIPT MATH ROUTINES
<html>
<!–- COMP519 js04.html 08.10.10 -->
<head>
<title>Random Dice Rolls</title>
</head>
<body>
<div style="text-align:center">
<script type="text/javascript">
var roll1 = Math.floor(Math.random()*6) + 1;
var roll2 = Math.floor(Math.random()*6) + 1;
document.write("<img src='http://www.csc.liv.ac.uk/"+
"~martin/teaching/comp519/Images/die" +
roll1 + ".gif‘ alt=‘dice showing ‘ + roll1 />");
document.write(" ");
document.write("<img src='http://www.csc.liv.ac.uk/"+
"~martin/teaching/comp519/Images/die" +
roll2 + ".gif‘ alt=‘dice showing ‘ + roll2 />");
</script>
</div>
</body>
</html>
the built-in Math
object contains
functions and
constants
Math.sqrt
Math.pow
Math.abs
Math.max
Math.min
Math.floor
Math.ceil
Math.round
Math.PI
Math.E
Math.random
function returns a
real number in [0..1)
45. INTERACTIVE PAGES USING PROMPT
<html>
<!-- COMP519 js05.html 08.10.10 -->
<head>
<title>Interactive page</title>
</head>
<body>
<script type="text/javascript">
var userName = prompt("What is your name?", "");
var userAge = prompt("Your age?", "");
var userAge = parseFloat(userAge);
document.write("Hello " + userName + ".")
if (userAge < 18) {
document.write(" Do your parents know " +
"you are online?");
}
else {
document.write(" Welcome friend!");
}
</script>
<p>The rest of the page...</p>
</body>
</html>
crude user interaction can
take place using prompt
1st argument: the prompt
message that appears in the
dialog box
2nd argument: a default
value that will appear in the
box (in case the user enters
nothing)the function returns
the value entered by the user
in the dialog box (a string)
if value is a number, must
use parseFloat (or parseInt)
to convert
forms will provide a better
interface for interaction
(later)
46. USER-DEFINED FUNCTIONS
FUNCTION DEFINITIONS ARE SIMILAR TO C++/JAVA, EXCEPT:
NO RETURN TYPE FOR THE FUNCTION (SINCE VARIABLES ARE LOOSELY TYPED)
NO VARIABLE TYPING FOR PARAMETERS (SINCE VARIABLES ARE LOOSELY TYPED)
BY-VALUE PARAMETER PASSING ONLY (PARAMETER GETS COPY OF ARGUMENT)
function isPrime(n)
// Assumes: n > 0
// Returns: true if n is prime, else false
{
if (n < 2) {
return false;
}
else if (n == 2) {
return true;
}
else {
for (var i = 2; i <= Math.sqrt(n); i++) {
if (n % i == 0) {
return false;
}
}
return true;
}
}
Can limit variable scope
to the function.
if the first use of a
variable is preceded
with var, then that
variable is local to the
function
for modularity, should
make all variables in a
function local
47. STRING EXAMPLE: PALINDROMES
function strip(str)
// Assumes: str is a string
// Returns: str with all but letters removed
{
var copy = "";
for (var i = 0; i < str.length; i++) {
if ((str.charAt(i) >= "A" && str.charAt(i) <= "Z")
||
(str.charAt(i) >= "a" && str.charAt(i) <=
"z")) {
copy += str.charAt(i);
}
}
return copy;
}
function isPalindrome(str)
// Assumes: str is a string
// Returns: true if str is a palindrome, else false
{
str = strip(str.toUpperCase());
for(var i = 0; i < Math.floor(str.length/2); i++) {
if (str.charAt(i) != str.charAt(str.length-i-1)) {
return false;
}
}
return true;
}
suppose we want to
test whether a word or
phrase is a
palindrome
48. <html>
<!–- COMP519 js09.html 11.10.2011 -->
<head>
<title>Palindrome Checker</title>
<script type="text/javascript">
function strip(str)
{
// CODE AS SHOWN ON PREVIOUS SLIDE
}
function isPalindrome(str)
{
// CODE AS SHOWN ON PREVIOUS SLIDE
}
</script>
</head>
<body>
<script type="text/javascript">
text = prompt("Enter a word or phrase", "Madam, I'm Adam");
if (isPalindrome(text)) {
document.write("'" + text + "' <b>is</b> a palindrome.");
}
else {
document.write("'" + text + "' <b>is not</b> a palindrome.");
}
</script>
</body>
</html>
49. JAVASCRIPT ARRAYS
• ARRAYS STORE A SEQUENCE OF ITEMS, ACCESSIBLE VIA AN INDEX
SINCE JAVASCRIPT IS LOOSELY TYPED, ELEMENTS DO NOT HAVE TO BE THE
SAME TYPE
• TO CREATE AN ARRAY, ALLOCATE SPACE USING NEW (OR CAN ASSIGN
DIRECTLY)
• ITEMS = NEW ARRAY(10); // ALLOCATES SPACE FOR 10 ITEMS
• ITEMS = NEW ARRAY(); // IF NO SIZE GIVEN, WILL ADJUST DYNAMICALLY
• ITEMS = [0,0,0,0,0,0,0,0,0,0]; // CAN ASSIGN SIZE & VALUES []
• TO ACCESS AN ARRAY ELEMENT, USE [] (AS IN C++/JAVA)
• FOR (I = 0; I < 10; I++) {
• ITEMS[I] = 0; // STORES 0 AT EACH INDEX
• }
• THE LENGTH PROPERTY STORES THE NUMBER OF ITEMS IN THE ARRAY
• FOR (I = 0; I < ITEMS.LENGTH; I++) {
• DOCUMENT.WRITE(ITEMS[I] + "<BR>"); // DISPLAYS ELEMENTS
• }
50. ARRAY EXAMPLE
<html>
<!–- COMP519 js10.html 11.10.2011 -->
<head>
<title>Die Statistics</title>
<script type="text/javascript"
src="http://www.csc.liv.ac.uk/~martin/teaching/comp519/JS/ran
dom.js">
</script>
</head>
<body>
<script type="text/javascript">
numRolls = 60000;
dieSides = 6;
rolls = new Array(dieSides+1);
for (i = 1; i < rolls.length; i++) {
rolls[i] = 0;
}
for(i = 1; i <= numRolls; i++) {
rolls[randomInt(1, dieSides)]++;
}
for (i = 1; i < rolls.length; i++) {
document.write("Number of " + i + "'s = " +
rolls[i] + "<br />");
}
</script>
</body>
</html>
suppose we want to
simulate die rolls and
verify even distribution
keep an array of counters:
initialize each count to 0
each time you roll X,
increment rolls[X]
display each counter
51. DATE OBJECT
STRING & ARRAY ARE THE MOST COMMONLY USED OBJECTS IN
JAVASCRIPT
OTHER, SPECIAL PURPOSE OBJECTS ALSO EXIST
THE DATE OBJECT CAN BE USED TO ACCESS THE DATE AND TIME
TO CREATE A DATE OBJECT, USE NEW & SUPPLY
YEAR/MONTH/DAY/… AS DESIRED
TODAY = NEW DATE(); // SETS TO CURRENT DATE & TIME
NEWYEAR = NEW DATE(2002,0,1); //SETS TO JAN 1, 2002 12:00AM
METHODS INCLUDE:
NEWYEAR.GETYEAR()
NEWYEAR.GETMONTH()
NEWYEAR.GETDAY()
NEWYEAR.GETHOURS()
NEWYEAR.GETMINUTES()
NEWYEAR.GETSECONDS()
NEWYEAR.GETMILLISECONDS()
52. DATE EXAMPLE
<html>
<!–- COMP519 js11.html 16.08.2006 -->
<head>
<title>Time page</title>
</head>
<body>
Time when page was loaded:
<script type="text/javascript">
now = new Date();
document.write("<p>" + now + "</p>");
time = "AM";
hours = now.getHours();
if (hours > 12) {
hours -= 12;
time = "PM"
}
else if (hours == 0) {
hours = 12;
}
document.write("<p>" + hours + ":" +
now.getMinutes() + ":" +
now.getSeconds() + " " +
time + "</p>");
</script>
</body>
</html>
by default, a date will be
displayed in full, e.g.,
Sun Feb 03 22:55:20
GMT-0600 (Central
Standard Time) 2002
can pull out portions of the
date using the methods and
display as desired
here, determine if "AM"
or "PM" and adjust so
hour between 1-12
10:55:20 PM
53. JavaScript and HTML validators
In order to use an HTML validator, and not get error messages
from the JavaScript portions, you must “mark” the JavaScipt sections
in a particular manner. Otherwise the validator will try to interpret
the script as HTML code.
To do this, you can use a markup like the following in your inline
code (this isn’t necessary for scripts stored in external files).
<script type=“text/javascript”> // <![CDATA[
document.write(“<p>The quick brown fox jumped over the lazy
dogs.</p>”); // **more code here, etc.
</script>
54. <!DOCTYPE html>
<html>
<head>
<script>
function validateForm() {
var x = document.forms["myForm"]["fname"].value;
if (x==null || x=="") {
alert("First name must be filled out");
return false;
}
}
</script>
</head>
<body>
<form name="myForm" action="demo_form.asp" onsubmit="return
validateForm()" method="post">
First name: <input type="text" name="fname">
<input type="submit" value="Submit">
</form>
</body>
</html>
57. JQUERY
JQUERY IS A JAVASCRIPT LIBRARY.
JQUERY GREATLY SIMPLIFIES JAVASCRIPT PROGRAMMING.
JQUERY IS EASY TO LEARN.
EXAMPLE
<HTML>
<HEAD>
$(DOCUMENT).READY(FUNCTION(){
$("P").CLICK(FUNCTION(){
$(THIS).HIDE();
});
});
</SCRIPT>
</HEAD>
<BODY>
<P>CLICK ME AWAY!</P>
<P>CLICK ME TOO!</P>
</BODY>
58. OUTPUT 1
CLICK ME AWAY!
CLICK ME TOO!
OUTPUT 2
CLICK ME AWAY!
JQUERY SYNTAX
THE JQUERY SYNTAX IS TAILOR MADE FOR SELECTING HTML
ELEMENTS AND PERFORMING SOME ACTION ON THE
ELEMENT(S).
$(SELECTOR).ACTION()
A $ SIGN TO DEFINE/ACCESS JQUERY
A (SELECTOR) TO "QUERY (OR FIND)" HTML ELEMENTS
A JQUERY ACTION() TO BE PERFORMED ON THE ELEMENT(S)
59. EXAMPLES
$(THIS).HIDE() - HIDES THE CURRENT ELEMENT.
$("P").HIDE() - HIDES ALL <P> ELEMENTS.
$(".TEST").HIDE() - HIDES ALL ELEMENTS WITH CLASS="TEST".
$("#TEST").HIDE() - HIDES THE ELEMENT WITH ID="TEST".
THE DOCUMENT READY EVENT
YOU MIGHT HAVE NOTICED THAT ALL JQUERYMETHODS IN
OUR EXAMPLES, ARE INSIDE A DOCUMENT READY EVENT:]
$(DOCUMENT).READY(FUNCTION(){
// JQUERY METHODS GO HERE...
});
60. JQUERY EVENT METHODS
ALL THE DIFFERENT VISITOR'S ACTIONS THAT A WEB PAGE CAN
RESPOND TO ARE CALLED EVENTS.
AN EVENT REPRESENTS THE PRECISE MOMENT WHEN SOMETHING
HAPPENS.
MOUSE EVENTS
CLICK
DBLCLICK
MOUSEENTER
MOUSELEAVE
KEYBOARD EVENTS
KEYPRESS
KEYDOWN
KEYUP
64. JQUERY HIDE() AND SHOW()
WITH JQUERY, YOU CAN HIDE AND SHOW HTML ELEMENTS WITH
THE HIDE() AND SHOW() METHODS:
EXAMPLE
<SCRIPT>
$(DOCUMENT).READY(FUNCTION(){
$("#HIDE").CLICK(FUNCTION(){
$("P").HIDE();
});
$("#SHOW").CLICK(FUNCTION(){
$("P").SHOW();
});
});
</SCRIPT>
65. EXAMPLE CON
<BODY>
<P>IF YOU CLICK ON THE "HIDE" BUTTON, I WILL DISAPPEAR.</P>
<BUTTON ID="HIDE">HIDE</BUTTON>
<BUTTON ID="SHOW">SHOW</BUTTON>
</BODY>
OUTPUT 1
IF YOU CLICK ON THE "HIDE" BUTTON, I WILL DISAPPEAR.
OUTPUT 2
66. OUTPUT 3
OUTPUT 4
IF YOU CLICK ON THE "HIDE" BUTTON, I WILL DISAPPEAR.
67. JQUERY SLIDING METHODS
JQUERYYOU CAN CREATE A SLIDING EFFECT ON ELEMENTS.
JQUERY HAS THE FOLLOWING SLIDE METHODS:
SLIDEDOWN()
SLIDEUP()
SLIDETOGGLE()
SYNTAX:
$(SELECTOR).SLIDEDOWN(SPEED, CALLBACK);
THE OPTIONAL SPEED PARAMETER SPECIFIES THE DURATION
OF THE EFFECT. IT CAN TAKE THE FOLLOWING VALUES: "SLOW",
"FAST", OR MILLISECONDS.
68. EXAMPLE:
<SCRIPT>
$(DOCUMENT).READY(FUNCTION(){
$("#FLIP").CLICK(FUNCTION(){
$("#PANEL").SLIDEDOWN("SLOW");
});
});
</SCRIPT>
<BODY>
<DIV ID="FLIP">CLICK TO SLIDE DOWN PANEL</DIV>
<DIV ID="PANEL">HELLO WORLD!</DIV>
</BODY>
70. TRAVERSING
JQUERY TRAVERSING, WHICH MEANS "MOVE THROUGH", ARE
USED TO "FIND" (OR SELECT) HTML ELEMENTS BASED ON THEIR
RELATION TO OTHER ELEMENTS. START WITH ONE SELECTION
AND MOVE THROUGH THAT SELECTION UNTIL YOU REACH THE
ELEMENTS YOU DESIRE.
71. TRAVERSING – ANCESTORS
AN ANCESTOR IS A PARENT, GRANDPARENT, GREAT-GRANDPARENT,
AND SO ON.
WITH JQUERY YOU CAN TRAVERSE UP THE DOM TREE TO FIND
ANCESTORS OF AN ELEMENT.
THREE USEFUL JQUERY METHODS FOR TRAVERSING UP THE
DOM TREE ARE:
PARENT()
PARENTS()
PARENTSUNTIL()