This document provides an overview of HTML and CSS basics, including:
1) Formatting tags like <br>, <hr>, and for spacing and lines. Special formatting tags like <pre>, <kbd>, <samp>, and <code>.
2) Text formatting tags like <b>, <i>, <sub>, <sup>, and <mark>. The <a> tag for hyperlinks.
3) The <img> tag for images, including attributes like src, alt, width, and height.
4) HTML elements for tables, lists, blocks, and inline elements. The <div> and <span> tags.
5) CSS syntax including selectors, declarations,
The document provides an introduction to CSS (Cascading Style Sheets), explaining what CSS is, how it works, and some basic syntax and concepts. CSS allows separation of document content from document presentation by defining styles that are applied to HTML elements. Styles can be defined internally, in an external CSS file, or inline. The CSS box model is also explained, with the content, padding, border, and margin areas of elements illustrated. Common CSS properties for text formatting are also listed.
Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation of HTML documents. CSS describes how HTML elements are displayed on screen, paper, or other media. CSS saves work by allowing control of layout and presentation for multiple web pages from one stylesheet file. CSS solves the problem of formatting documents that originally arose from adding font tags and other styling attributes directly into HTML.
The document summarizes Workshop #2 on web development hosted by Sohail Asghar and Saad Mustafa. It covers the basics of HTML, CSS, and JavaScript. For HTML, it discusses basic tags like headings, paragraphs, links, images and lists. For CSS, it explains concepts like selectors, colors, backgrounds, borders, fonts, padding, and margins. For JavaScript, it provides introductions to variables, output, data types, and more.
This document provides an introduction to CSS (Cascading Style Sheets) including:
- CSS allows separation of document content from design and formatting through stylesheets.
- Stylesheets define how HTML elements are displayed and can be internal, external, or inline.
- Multiple stylesheets and style definitions will cascade together based on specificity.
- The CSS syntax uses selectors to target elements and properties to define styles like colors, fonts, spacing.
- Comments, classes, IDs, and other selectors provide control over styling different elements.
CSS allows styling of HTML elements through style rules defined in internal or external style sheets. A style rule has a selector that specifies the element to style and declarations that define the properties and values to apply. External style sheets can control styling across multiple pages by linking the style sheet to each page. Common CSS properties include font, color, size and other text properties that can be applied through class or element selectors to groups of elements.
This document provides an introduction and overview of Cascading Style Sheets (CSS). It discusses using CSS to control the appearance of websites by separating content from presentation. It describes various methods for including CSS with HTML, including inline styles, embedded style sheets within <style> tags, and external CSS files linked via <link> tags. Key CSS concepts covered include selectors, the CSS syntax of rules and declarations, and using type, class, ID and other selectors to target specific elements. Maintaining styles in external CSS files is presented as the preferred approach for organization and maintenance.
The document provides an introduction to CSS (Cascading Style Sheets), explaining what CSS is, how it works, and some basic syntax and concepts. CSS allows separation of document content from document presentation by defining styles that are applied to HTML elements. Styles can be defined internally, in an external CSS file, or inline. The CSS box model is also explained, with the content, padding, border, and margin areas of elements illustrated. Common CSS properties for text formatting are also listed.
Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation of HTML documents. CSS describes how HTML elements are displayed on screen, paper, or other media. CSS saves work by allowing control of layout and presentation for multiple web pages from one stylesheet file. CSS solves the problem of formatting documents that originally arose from adding font tags and other styling attributes directly into HTML.
The document summarizes Workshop #2 on web development hosted by Sohail Asghar and Saad Mustafa. It covers the basics of HTML, CSS, and JavaScript. For HTML, it discusses basic tags like headings, paragraphs, links, images and lists. For CSS, it explains concepts like selectors, colors, backgrounds, borders, fonts, padding, and margins. For JavaScript, it provides introductions to variables, output, data types, and more.
This document provides an introduction to CSS (Cascading Style Sheets) including:
- CSS allows separation of document content from design and formatting through stylesheets.
- Stylesheets define how HTML elements are displayed and can be internal, external, or inline.
- Multiple stylesheets and style definitions will cascade together based on specificity.
- The CSS syntax uses selectors to target elements and properties to define styles like colors, fonts, spacing.
- Comments, classes, IDs, and other selectors provide control over styling different elements.
CSS allows styling of HTML elements through style rules defined in internal or external style sheets. A style rule has a selector that specifies the element to style and declarations that define the properties and values to apply. External style sheets can control styling across multiple pages by linking the style sheet to each page. Common CSS properties include font, color, size and other text properties that can be applied through class or element selectors to groups of elements.
This document provides an introduction and overview of Cascading Style Sheets (CSS). It discusses using CSS to control the appearance of websites by separating content from presentation. It describes various methods for including CSS with HTML, including inline styles, embedded style sheets within <style> tags, and external CSS files linked via <link> tags. Key CSS concepts covered include selectors, the CSS syntax of rules and declarations, and using type, class, ID and other selectors to target specific elements. Maintaining styles in external CSS files is presented as the preferred approach for organization and maintenance.
CSS (Cascading Style Sheets) allows separation of document content from document presentation by defining styles. CSS can be defined internally, inline, or externally in CSS files. CSS rules have selectors and declarations, where properties and values are used to style elements. Common CSS properties control color, text formatting, background images and colors. Styles can be applied to HTML elements, classes, or IDs. When multiple conflicting styles are defined, styles are cascaded according to precedence rules with inline styles having the highest priority.
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Erin M. Kidwell
The document provides instructions for downloading Aptana Studio and provides a brandery airport code. It includes the following information:
1. It instructs readers to download Aptana Studio from the provided URL if they have not already done so.
2. It provides a brandery airport code of "brandery123".
3. The document does not contain any other information.
Feel free to share to every aspiring ICT SHS teacher that is starting out. Just please do not take the copyright credit. The content is taken from Rex and Abiva Empowerment Technologies books.
The document describes the basic structure and common elements of HTML documents. It explains that all HTML documents must begin with <!DOCTYPE html> and contain <html> and <body> tags. It also outlines common text formatting tags (e.g. <p>, <b>, <i>), links (<a>), images (<img>), tables (<table>, <tr>, <td>), forms (<select>, <textarea>, <button>), and how CSS can be used to style HTML elements.
This document provides an overview of CSS (Cascading Style Sheets) including definitions, advantages, properties and techniques. It defines CSS as defining how HTML elements are displayed and styles being stored in style sheets. Advantages of CSS include reduced code/page size, easier design/maintenance. Style rules define how to change default element behaviors and have selectors and declarations. External style sheets can apply styles across pages by linking via <LINK>. CSS selection techniques include selecting multiple elements, by context, with classes, <DIV> and <SPAN>. Font properties that can be controlled include family, size, weight, line height and color.
The document discusses the three main technologies used to build user interfaces: HTML for structure, CSS for presentation, and JavaScript for behavior. It emphasizes that each technology should only be used for its intended purpose to improve accessibility, portability, maintainability, and performance. HTML provides structure using tags, CSS handles styling and layout with rules, and JavaScript adds interactive behaviors. The document then goes into more detail about each technology and their various components.
The document provides an introduction to HTML and covers the basics of creating HTML pages including page structure, tags, attributes, formatting text, and comments. It explains key elements like <html>, <head>, <title>, <body>, headings, paragraphs, and lists. It also covers attributes, presentational tags, phrase tags, and the difference between block and inline elements. The document is intended as an introductory workshop on HTML for day one.
This document provides an introduction to HTML (Hypertext Markup Language) and how to create basic HTML pages. It discusses HTML tags like <html>, <head>, <title>, <body>, and <meta> that form the basic structure of an HTML page. It also describes how to use text editors like Notepad to write HTML code and save files with the .html or .htm extension. The document provides examples of creating headings, paragraphs, line breaks and horizontal rules. It covers core HTML attributes and formatting tags to style text.
Introduction to web design discussing which languages is used for website des...Aditya Dwivedi
This PPT on web design gives you a brief introduction to web design discussing which languages is used for website designing
This PPT covers the following topics:
• What is website design
• Languages for web design
• Html (Hypertext markup language)
• Html elements
• Tables in HTML
• Html forms
• Tags of HTML
• Introduction to CSS
• CSS (Cascading Stylesheet)
• Types of stylesheet
• CSS selectors
• CSS background property
• CSS images
• CSS links
• CSS position
MAAN Software Inc. is a leading software firm generating its services since a long time in the domain of digital solution. It has successfully managed to aid hundreds of entrepreneurs and small businessmen to launch their endeavors and turn them into successful digital units.
The document provides an overview of HTML (Hypertext Markup Language) including:
1) HTML is a markup language used to describe web pages using tags to structure content like headings, paragraphs, lists, links, images and tables.
2) Various HTML tags are described like <h1>-<h6> for headings, <p> for paragraphs, <b> for bold, <i> for italic, and <a> for links.
3) Additional HTML concepts covered include internal and external CSS, meta tags, images, tables, frames, iframes and cascading style sheets (CSS) for styling content.
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.
visit : www.dmdiploma.com
HTML is the standard markup language for creating Web pages.
HTML stands for Hyper Text Markup Language
HTML describes the structure of a Web page
HTML consists of a series of elements
HTML elements tell the browser how to display the content
HTML elements are represented by tags
HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
Browsers do not display the HTML tags, but use them to render the content of the page
Raj Acharya presents details of his internship project on front-end web development. He completed a month-long training program at BIRLA Institute of Technology in Jaipur, India, where he learned HTML, CSS, and JavaScript. He describes the basic concepts and elements of HTML, including headings, paragraphs, links, images, tables, and lists. He also provides an overview of CSS and how it is used to style web pages.
HTML allows users to create web pages. It uses tags to format text, add images and other multimedia, and create hyperlinks. Some key points:
- HTML was created by Tim Berners-Lee in 1989 and standardized in 1997.
- It uses tags enclosed in angle brackets like <p> to format text into paragraphs.
- Common tags include <h1> for main headings, <img> to add images, and <a> for hyperlinks.
- Tables, lists, and forms can be added using <table>, <ul>/<ol>, and <form> tags.
- HTML pages are plain text files that can be viewed on any browser.
CNC Web World is great IT Training Institute in Nagpur. They provide 100% practical training one faculty for one student.
We offer C, C++, Java programming, Android programming, PHP Development, .Net Programming, Web Designing and all other IT related training courses. Web development is all about building great software products and CNC Web World is best in teaching how to build those products.
Web Technology under CSS - Introduction, Advantages, Adding CSS, Browser Compatibility, CSS and Page Layout finally Selectors all are referred with Uttam K. Roy
The document provides information about CSS (Cascading Style Sheets) including what CSS is, how it solves problems with HTML formatting, CSS syntax, and examples of using CSS for text formatting and backgrounds. CSS allows separation of document structure (HTML) from presentation (CSS). CSS defines how elements are displayed, and styles can be applied internally, externally, or inline. CSS follows cascading rules to determine which styles take precedence.
This document provides an overview of HTML elements and tags for creating web pages. It discusses common HTML tags like headings, paragraphs, links, images, lists, forms, and tables. It also covers CSS for styling HTML elements and JavaScript for adding interactivity. The document is intended as a tutorial for learning basic HTML.
Cascading Style Sheets (CSS) is a language for styling web pages that allows separation of document content from document presentation. CSS controls the look and formatting of content like colors, layout, fonts, and more. There are several ways to associate CSS with HTML documents, including internal CSS within <style> tags, inline CSS with the style attribute, external CSS in a .css file linked via <link>, and @import rules. CSS rules are made of selectors, properties, and values to style elements. Common properties include color, font-family, background, and text-align. CSS handles global presentation of content across devices.
International Conference on NLP, Artificial Intelligence, Machine Learning an...gerogepatton
International Conference on NLP, Artificial Intelligence, Machine Learning and Applications (NLAIM 2024) offers a premier global platform for exchanging insights and findings in the theory, methodology, and applications of NLP, Artificial Intelligence, Machine Learning, and their applications. The conference seeks substantial contributions across all key domains of NLP, Artificial Intelligence, Machine Learning, and their practical applications, aiming to foster both theoretical advancements and real-world implementations. With a focus on facilitating collaboration between researchers and practitioners from academia and industry, the conference serves as a nexus for sharing the latest developments in the field.
CSS (Cascading Style Sheets) allows separation of document content from document presentation by defining styles. CSS can be defined internally, inline, or externally in CSS files. CSS rules have selectors and declarations, where properties and values are used to style elements. Common CSS properties control color, text formatting, background images and colors. Styles can be applied to HTML elements, classes, or IDs. When multiple conflicting styles are defined, styles are cascaded according to precedence rules with inline styles having the highest priority.
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Erin M. Kidwell
The document provides instructions for downloading Aptana Studio and provides a brandery airport code. It includes the following information:
1. It instructs readers to download Aptana Studio from the provided URL if they have not already done so.
2. It provides a brandery airport code of "brandery123".
3. The document does not contain any other information.
Feel free to share to every aspiring ICT SHS teacher that is starting out. Just please do not take the copyright credit. The content is taken from Rex and Abiva Empowerment Technologies books.
The document describes the basic structure and common elements of HTML documents. It explains that all HTML documents must begin with <!DOCTYPE html> and contain <html> and <body> tags. It also outlines common text formatting tags (e.g. <p>, <b>, <i>), links (<a>), images (<img>), tables (<table>, <tr>, <td>), forms (<select>, <textarea>, <button>), and how CSS can be used to style HTML elements.
This document provides an overview of CSS (Cascading Style Sheets) including definitions, advantages, properties and techniques. It defines CSS as defining how HTML elements are displayed and styles being stored in style sheets. Advantages of CSS include reduced code/page size, easier design/maintenance. Style rules define how to change default element behaviors and have selectors and declarations. External style sheets can apply styles across pages by linking via <LINK>. CSS selection techniques include selecting multiple elements, by context, with classes, <DIV> and <SPAN>. Font properties that can be controlled include family, size, weight, line height and color.
The document discusses the three main technologies used to build user interfaces: HTML for structure, CSS for presentation, and JavaScript for behavior. It emphasizes that each technology should only be used for its intended purpose to improve accessibility, portability, maintainability, and performance. HTML provides structure using tags, CSS handles styling and layout with rules, and JavaScript adds interactive behaviors. The document then goes into more detail about each technology and their various components.
The document provides an introduction to HTML and covers the basics of creating HTML pages including page structure, tags, attributes, formatting text, and comments. It explains key elements like <html>, <head>, <title>, <body>, headings, paragraphs, and lists. It also covers attributes, presentational tags, phrase tags, and the difference between block and inline elements. The document is intended as an introductory workshop on HTML for day one.
This document provides an introduction to HTML (Hypertext Markup Language) and how to create basic HTML pages. It discusses HTML tags like <html>, <head>, <title>, <body>, and <meta> that form the basic structure of an HTML page. It also describes how to use text editors like Notepad to write HTML code and save files with the .html or .htm extension. The document provides examples of creating headings, paragraphs, line breaks and horizontal rules. It covers core HTML attributes and formatting tags to style text.
Introduction to web design discussing which languages is used for website des...Aditya Dwivedi
This PPT on web design gives you a brief introduction to web design discussing which languages is used for website designing
This PPT covers the following topics:
• What is website design
• Languages for web design
• Html (Hypertext markup language)
• Html elements
• Tables in HTML
• Html forms
• Tags of HTML
• Introduction to CSS
• CSS (Cascading Stylesheet)
• Types of stylesheet
• CSS selectors
• CSS background property
• CSS images
• CSS links
• CSS position
MAAN Software Inc. is a leading software firm generating its services since a long time in the domain of digital solution. It has successfully managed to aid hundreds of entrepreneurs and small businessmen to launch their endeavors and turn them into successful digital units.
The document provides an overview of HTML (Hypertext Markup Language) including:
1) HTML is a markup language used to describe web pages using tags to structure content like headings, paragraphs, lists, links, images and tables.
2) Various HTML tags are described like <h1>-<h6> for headings, <p> for paragraphs, <b> for bold, <i> for italic, and <a> for links.
3) Additional HTML concepts covered include internal and external CSS, meta tags, images, tables, frames, iframes and cascading style sheets (CSS) for styling content.
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.
visit : www.dmdiploma.com
HTML is the standard markup language for creating Web pages.
HTML stands for Hyper Text Markup Language
HTML describes the structure of a Web page
HTML consists of a series of elements
HTML elements tell the browser how to display the content
HTML elements are represented by tags
HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
Browsers do not display the HTML tags, but use them to render the content of the page
Raj Acharya presents details of his internship project on front-end web development. He completed a month-long training program at BIRLA Institute of Technology in Jaipur, India, where he learned HTML, CSS, and JavaScript. He describes the basic concepts and elements of HTML, including headings, paragraphs, links, images, tables, and lists. He also provides an overview of CSS and how it is used to style web pages.
HTML allows users to create web pages. It uses tags to format text, add images and other multimedia, and create hyperlinks. Some key points:
- HTML was created by Tim Berners-Lee in 1989 and standardized in 1997.
- It uses tags enclosed in angle brackets like <p> to format text into paragraphs.
- Common tags include <h1> for main headings, <img> to add images, and <a> for hyperlinks.
- Tables, lists, and forms can be added using <table>, <ul>/<ol>, and <form> tags.
- HTML pages are plain text files that can be viewed on any browser.
CNC Web World is great IT Training Institute in Nagpur. They provide 100% practical training one faculty for one student.
We offer C, C++, Java programming, Android programming, PHP Development, .Net Programming, Web Designing and all other IT related training courses. Web development is all about building great software products and CNC Web World is best in teaching how to build those products.
Web Technology under CSS - Introduction, Advantages, Adding CSS, Browser Compatibility, CSS and Page Layout finally Selectors all are referred with Uttam K. Roy
The document provides information about CSS (Cascading Style Sheets) including what CSS is, how it solves problems with HTML formatting, CSS syntax, and examples of using CSS for text formatting and backgrounds. CSS allows separation of document structure (HTML) from presentation (CSS). CSS defines how elements are displayed, and styles can be applied internally, externally, or inline. CSS follows cascading rules to determine which styles take precedence.
This document provides an overview of HTML elements and tags for creating web pages. It discusses common HTML tags like headings, paragraphs, links, images, lists, forms, and tables. It also covers CSS for styling HTML elements and JavaScript for adding interactivity. The document is intended as a tutorial for learning basic HTML.
Cascading Style Sheets (CSS) is a language for styling web pages that allows separation of document content from document presentation. CSS controls the look and formatting of content like colors, layout, fonts, and more. There are several ways to associate CSS with HTML documents, including internal CSS within <style> tags, inline CSS with the style attribute, external CSS in a .css file linked via <link>, and @import rules. CSS rules are made of selectors, properties, and values to style elements. Common properties include color, font-family, background, and text-align. CSS handles global presentation of content across devices.
International Conference on NLP, Artificial Intelligence, Machine Learning an...gerogepatton
International Conference on NLP, Artificial Intelligence, Machine Learning and Applications (NLAIM 2024) offers a premier global platform for exchanging insights and findings in the theory, methodology, and applications of NLP, Artificial Intelligence, Machine Learning, and their applications. The conference seeks substantial contributions across all key domains of NLP, Artificial Intelligence, Machine Learning, and their practical applications, aiming to foster both theoretical advancements and real-world implementations. With a focus on facilitating collaboration between researchers and practitioners from academia and industry, the conference serves as a nexus for sharing the latest developments in the field.
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesChristina Lin
Traditionally, dealing with real-time data pipelines has involved significant overhead, even for straightforward tasks like data transformation or masking. However, in this talk, we’ll venture into the dynamic realm of WebAssembly (WASM) and discover how it can revolutionize the creation of stateless streaming pipelines within a Kafka (Redpanda) broker. These pipelines are adept at managing low-latency, high-data-volume scenarios.
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTjpsjournal1
The rivalry between prominent international actors for dominance over Central Asia's hydrocarbon
reserves and the ancient silk trade route, along with China's diplomatic endeavours in the area, has been
referred to as the "New Great Game." This research centres on the power struggle, considering
geopolitical, geostrategic, and geoeconomic variables. Topics including trade, political hegemony, oil
politics, and conventional and nontraditional security are all explored and explained by the researcher.
Using Mackinder's Heartland, Spykman Rimland, and Hegemonic Stability theories, examines China's role
in Central Asia. This study adheres to the empirical epistemological method and has taken care of
objectivity. This study analyze primary and secondary research documents critically to elaborate role of
china’s geo economic outreach in central Asian countries and its future prospect. China is thriving in trade,
pipeline politics, and winning states, according to this study, thanks to important instruments like the
Shanghai Cooperation Organisation and the Belt and Road Economic Initiative. According to this study,
China is seeing significant success in commerce, pipeline politics, and gaining influence on other
governments. This success may be attributed to the effective utilisation of key tools such as the Shanghai
Cooperation Organisation and the Belt and Road Economic Initiative.
6th International Conference on Machine Learning & Applications (CMLA 2024)ClaraZara1
6th International Conference on Machine Learning & Applications (CMLA 2024) will provide an excellent international forum for sharing knowledge and results in theory, methodology and applications of on Machine Learning & Applications.
Advanced control scheme of doubly fed induction generator for wind turbine us...IJECEIAES
This paper describes a speed control device for generating electrical energy on an electricity network based on the doubly fed induction generator (DFIG) used for wind power conversion systems. At first, a double-fed induction generator model was constructed. A control law is formulated to govern the flow of energy between the stator of a DFIG and the energy network using three types of controllers: proportional integral (PI), sliding mode controller (SMC) and second order sliding mode controller (SOSMC). Their different results in terms of power reference tracking, reaction to unexpected speed fluctuations, sensitivity to perturbations, and resilience against machine parameter alterations are compared. MATLAB/Simulink was used to conduct the simulations for the preceding study. Multiple simulations have shown very satisfying results, and the investigations demonstrate the efficacy and power-enhancing capabilities of the suggested control system.
Literature Review Basics and Understanding Reference Management.pptxDr Ramhari Poudyal
Three-day training on academic research focuses on analytical tools at United Technical College, supported by the University Grant Commission, Nepal. 24-26 May 2024
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...University of Maribor
Slides from talk presenting:
Aleš Zamuda: Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapter and Networking.
Presentation at IcETRAN 2024 session:
"Inter-Society Networking Panel GRSS/MTT-S/CIS
Panel Session: Promoting Connection and Cooperation"
IEEE Slovenia GRSS
IEEE Serbia and Montenegro MTT-S
IEEE Slovenia CIS
11TH INTERNATIONAL CONFERENCE ON ELECTRICAL, ELECTRONIC AND COMPUTING ENGINEERING
3-6 June 2024, Niš, Serbia
3. Formatting
I You cannot change the output by adding extra spaces or lines
in HTML code. The browser will ignore whitespace.
I New horizontal line: <hr >
I New Line tag: <br >
I Whitespace:  
I There are a variety of ways to introduce tab spacing, most of
them using CSS.
4. Special formatting tags
Certain text usually has a conventional formatting, HTML has a
few special formatting tags, usueful especially for computer code.
I <pre>- for preformatted text. Forces the browser to render
white space as-is.
I <kbd>- for specifying keyboard input.
I <samp>- for specifying console output.
I <code>- for specifying computer code. Monotype font.
Ignores whitespace.
5. Text Formatting
I Use tags for formatting output.
I A list of formatting tags:
I <b>: defines bold text
I <i>: defines italic text
I <sub>: defines subscripted text
I <sup>: defines superscripted text
I <mark>: defines marked/highlighted text
6. Hyperlink
I The <a>tag defines hyperlink.
I A hyperlink is a word, group of words, or image that you can
click on to jump to another web page.
I The href is the most important attribute, which indicates the
links destination.
<a href=“http://www.google.com”>Go To Google </a>
I The target attribute specifies where to open the linked
document.
I blank: in a new window or tab
I self: in the same frame as it was clicked (default)
7. Images
I <img>tag is always an empty tag. It contains attributes and
has no closing tag.
I You need to use the src attribute. The value of this attribute
is the URL of the image.
Syntax: <img src=“sampleImage.JPEG” alt=“hint” >
I alt defines the text for an image when the image cannot be
displayed.
I The width and height attributes define the size of the image.
8. HTML Table Element
I To start off a tables, use the <table>
I A table consists of rows <tr>. Each row is divided into data
cells <td>(td stands for table data)
I A <td>tag can contain text, links, images, lists, forms, and
other tables.
9. HTML Lists
I Lists can be ordered and unordered.
I An unordered list starts with the <ul>tag.
I An ordered list starts with the <ol>tag.
I Each item starts with the <li>tag.
I A description list is a list of items with a description of each
term/name.
I The <dl>tag defines a description list. <dl>is used with
<dt>(defines items) and <dd>(describes each item).
10. Block and Inline Elements
I HTML elements are either block level elements or inline
elements.
I Block level Elements start with a new line.
E.g., <p>, <table>, <div>
I Inline elements are displayed without a new line.
E.g., <b>, <td>, <a>, <img>
11. <span>element
I <span>element is an inline element that can be used as a
container for text.
I <span>element usually is used to set style to parts of the
text.
12. DIV tag
I The <div>tag defines a division or a section in an HTML
document.
I The <div>tag is used to group block-elements to format
them with CSS.
13. CSS Syntax
I A CSS file consists of rule set, which define the presentation
element for a particular part of the HTML document.
I A CSS rule set consists of a selector and a declaration block.
I A Rule Set has a selector and a declaration block.
I The declaration block is enclosed in { }.
I The declaration block contains one or more declarations
separated by semicolons.
I Each declaration includes a property name and a value,
separated by a colon.
I To make the CSS code more readable, you can put one
declaration on each line.
14. CSS Comments
I CSS comments follow the multiline C comment syntax.
I A CSS comment starts with /* and ends with */.
I Comments can also span multiple lines and are ignored by
browsers.
I Single line comments can start with “//”.
15. CSS Selectors
I CSS selectors allow you to select and manipulate HTML
elements.
I They are used to “find” HTML elements based on id, classes,
types, attributes, values of attributes, etc.
I Typically, selectors are one of 3 kinds:
I id selector
I element selector
I class selector
16. Element Selector
I The element selector selects elements based on the element
name.
I Applied to all elements with the same name (tag).
I Example:
p {
text-align: center;
color: red;
}
17. ID Selector
I The id selector uses the id attribute of an HTML tag to find
the specific element.
I An id should be unique within a page.
I To find an element with a specific id, write the character
formerly known as the pound (#), followed by the id of the
element.
I Example
#para1 {
text-align: center;
color: red;
}
18. Class Selector
I The class selector finds elements with the specific class.
I The class selector uses the HTML class attribute.
I To find elements with a specific class, write a period
character, followed by the name of the class.
I Example:
.center {
text-align: center;
color: red;
}
I You can also specify that only specific HTML elements should
be affected by a class.
I p.center {
text-align: center;
color: red;
}
19. Grouping Selectors
I In style sheets there are often elements with the same style.
I In the interest of code minimization, we can group selectors.
I Selectors are separated by commas.
I Example:
h1, h2, p {
text-align: center;
color: red;
}
20. Adding CSS to your HTML document
There are 3 ways to do styling
I Inline Style - Style elements are included as HTML attributes.
I Internal Style Sheets - A <style>tag is used in the HTML
document to specify the presentation elements. External
Style Sheets - A separate “.css” file is used as a part of your
set of documents. It contains all the styling elements.
21. Inline CSS
I What little styling weve been doing so far.
I Mixes content with presentation. Loses many of the
advantages of a style sheet.
I Used very rarely (when very few elements require styling).
I Add the style attribute to the relevant tag. The style attribute
can contain any CSS property.
I Example:
<h1 style=“color:blue; margin-left:30px;”>This is a heading.
</h1>
22. Internal CSS
I Used when the current document has a unique style.
I A <style>tag is used under the <head>tag of the document
to define the styles.
I The content of the <style>tag follows CSS syntax.
I Example:
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
</head>
23. External CSS
I Used when a style is applied to many pages (like a theme).
I The look of the webpage can be changed by just changing one
file.
I Each page must include a link to the style sheet with the
<link>tag. The <link>tag goes inside the head section.
I An external stylesheet is written as a separate file with a
“.css” extension.
I The file should go into the same relative path as the rest of
the files (or can be referred by absolute path).
I The external stylesheet should not contain any HTML tags.
24. External Stylesheet Example
I myStyle.css
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
I In the head tag of the HTML document
<head>
<link rel=“stylesheet” type=“text/css” href=“mystyle.css”>
</head>
25. Why “Cascading”?
I Multiple styles will cascade into one.
I Styles can be specified:
I inside an HTML element
I inside the head section of an HTML page
I in an external CSS file
I Generally speaking we can say that all the styles will
“cascade” into a new “virtual” style sheet by the following
rules, where number one has the highest priority:
1. Inline style (inside an HTML element)
2. Internal style sheet (in the head section)
3. External style sheet
4. Browser default