Here are some tips for hands-on part 2:
- Add a class like .paragraph to the <p> tags containing your sentences
- Add an ID like #image to the <img> tag
- In an internal or external CSS file:
.paragraph {
color: blue;
font-size: 20px;
}
#image {
padding: 10px;
display: block;
margin: 0 auto;
}
- For background:
body {
background-color: lightgray;
}
- Play around with other CSS properties like text-align, font-family etc.
html & css powerpoint slide show for presentation. Here, basic concept of css using with html. a webpage decorated by css.
HTML- Hyper text markup language.
CSS- Cascading Style sheet.
The document covers various topics related to CSS including CSS introduction, syntax, selectors, inclusion methods, setting backgrounds, fonts, manipulating text, and working with images. Key points include how CSS handles web page styling, the advantages of CSS, CSS versions, associating styles using embedded, inline, external and imported CSS, and properties for backgrounds, fonts, text formatting, and images.
The document provides an agenda for a workshop on HTML, CSS, and putting them together. It covers HTML topics like semantic tags, comments, and best practices. It then discusses CSS topics such as IDs vs classes, floats, shorthand, and putting HTML and CSS together with project structure and layouts. The workshop aims to give an introduction to HTML, CSS, and how to structure websites using these languages.
This document discusses web structure mining and related concepts. It defines web mining as applying data mining techniques to discover patterns from the web using web content, structure, and usage data. Web structure mining analyzes the hyperlinks between pages to discover useful information. Key aspects covered include the bow-tie model of the web graph, measures of in-degree and out-degree, Google's PageRank algorithm, the HITS algorithm for identifying hub and authority pages, and using link structure for applications like ranking pages and finding related information.
HTML5 Tutorial For Beginners - Learning HTML 5 in simple and easy steps with examples covering 2D Canvas, Audio, Video, New Semantic Elements, Geolocation, Persistent Local Storage, Web Storage, Forms Elements,Application Cache,Inline SVG,Document
This document discusses machine learning with Python. It provides an overview of Python, highlighting that it is easy to learn, has a vast community and documentation, and is versatile. It then defines machine learning and discusses popular Python libraries for machine learning like NumPy, SciPy, Matplotlib, Pandas, and OpenCV. It provides examples of operations that can be performed with OpenCV, like reading and manipulating images. Overall the document serves as an introduction to machine learning with Python and the main libraries used.
The document discusses HTML and CSS. It provides information on basic HTML tags and page structure. It also defines CSS and describes the different ways to insert CSS code into an HTML document, including internal, external, and inline stylesheets. The document further explains CSS syntax, selectors like id and class, and properties of the box model. It provides an example of CSS code to style a signup form.
This document provides an overview of convolutional neural networks (CNNs). It defines CNNs as multiple layer feedforward neural networks used to analyze visual images by processing grid-like data. CNNs recognize images through a series of layers, including convolutional layers that apply filters to detect patterns, ReLU layers that apply an activation function, pooling layers that detect edges and corners, and fully connected layers that identify the image. CNNs are commonly used for applications like image classification, self-driving cars, activity prediction, video detection, and conversion applications.
Web content mining mines data from web pages including text, images, audio, video, metadata and hyperlinks. It examines the content of web pages and search results to extract useful information. Web content mining helps understand customer behavior, evaluate website performance, and boost business through research. It can classify data into structured, unstructured, semi-structured and multimedia types and applies techniques such as information extraction, topic tracking, summarization, categorization and clustering to analyze the data.
A web crawler is a program that browses the World Wide Web methodically by following links from page to page and downloading each page to be indexed later by a search engine. It initializes seed URLs, adds them to a frontier, selects URLs from the frontier to fetch and parse for new links, adding those links to the frontier until none remain. Web crawlers are used by search engines to regularly update their databases and keep their indexes current.
This 20-minute presentation provides an introduction to several HTML5 semantic tags: article, section, aside, header, footer, nav. Includes how you can address browser compatibility issues.
The document discusses precision and recall, which are measures used to evaluate search engines. Precision measures the percentage of retrieved documents that are relevant, while recall measures the percentage of relevant documents that are retrieved. The document provides examples of precision and recall calculations and discusses how to improve precision by finding less irrelevant results and improve recall by finding more relevant results.
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.
Web crawlers, also known as robots or bots, are programs that systematically browse the internet and index websites for search engines. Crawlers follow links from seed URLs and download pages to extract new URLs to crawl. They use techniques like breadth-first crawling to efficiently discover as much of the web as possible. Crawlers must have policies to select pages, revisit sites, be polite to not overload websites, and coordinate distributed crawling. Their high-performance architecture is crucial for search engines to comprehensively index the large and constantly changing web.
The document discusses various techniques for optimizing web site performance, including reducing file sizes, decreasing HTTP requests, using content delivery networks, optimizing assets, leveraging caching, and minimizing JavaScript and CSS. It provides examples and recommendations for compressing and combining files, placing scripts and stylesheets strategically, and using tools like Firebug and YSlow to analyze performance. The overall goal is to make web pages load as fast as possible by decreasing download sizes and network traffic.
The document provides an overview of Bootstrap, including:
- Bootstrap is an open-source HTML, CSS, and JS framework for developing responsive mobile-first websites and web apps.
- It contains utilities for typography, forms, buttons, navigation, and other interface components, as well as optional JavaScript extensions.
- The document describes various Bootstrap components like grids, navigation, buttons, forms, images, alerts, progress bars, and panels. It provides code examples for how to implement these components.
Over 200 Pages of resources and code snippets to learn JavaScript and JavaScript DOM manipulation. JavaScript is the most popular web programming language and this eBook will help you learn more about JavaScript Coding
This document provides an overview of HTML and CSS for website development. It discusses how websites use HTML for content, CSS for presentation, and JavaScript for behavior. It then covers basic HTML tags and structure, as well as CSS selectors, the box model, positioning, and floats. The goal is to teach the essentials of using HTML to structure content and CSS to style and position that content for websites.
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
The document discusses HTML5 semantic and non-semantic elements. It defines semantic elements as those with inherent meaning, like <form> and <table>, while non-semantic elements like <div> and <span> do not convey meaning. New HTML5 semantic elements are introduced, including <section> for sections, <article> for independent content, <header> and <footer> for introductory and footer content, and <nav> for navigation links. Semantic elements are important for search engines and accessibility by clearly defining the meaning of different parts of a web page.
Information Retrieval Techniques of Google Cyr Ish
油
Google was founded in 1998 by Larry Page and Sergei Brin. It uses "spiders" to index web pages from links and fetch the pages they point to. When conducting searches, Google considers the order of words with the first being most important and ignores common words. It selects search results based on factors like page rank and proximity of terms.
Deep learning (also known as deep structured learning or hierarchical learning) is the application of artificial neural networks (ANNs) to learning tasks that contain more than one hidden layer. Deep learning is part of a broader family of machine learning methods based on learning data representations, as opposed to task-specific algorithms. Learning can be supervised, partially supervised or unsupervised.
This document provides an overview and introduction to responsive design using Bootstrap. It defines responsive design as designs that work on any resolution and are user friendly. It explains Bootstrap's grid system and standard device resolutions for extra small, small, medium, and large devices. Key Bootstrap components are summarized like the grid system, Glyphicons, and JavaScript plugins. The basic differences between HTML, CSS, and Bootstrap are outlined. Finally, the main purposes of using Bootstrap are listed as decreasing costs and code while providing an excellent and understandable user experience.
JQuery is a JavaScript library that simplifies HTML document manipulation, event handling, animations, and Ajax interactions. It works across browsers and makes tasks like DOM traversal and manipulation, event handling, animation, and Ajax much simpler. JQuery's versatility, extensibility, and cross-browser compatibility have made it popular, with millions of developers using it to write JavaScript.
The document discusses various HTML form elements and their attributes. It describes the <form> element which defines an HTML form, and common form elements like <input>, <select>, <textarea> and <button>. It provides examples and explanations of different input types such as text, password, checkbox, radio and submit. It also covers attributes like name, value, readonly and disabled.
If you are using jQuery, you need to understand the Document Object Model and how it accounts for all the elements inside any HTML document or Web page.
The document provides an introduction to HTML, CSS, and JavaScript. It includes sections on:
- What HTML, CSS, and JavaScript are and their purposes. HTML is for describing web pages, CSS is for styling elements, and JavaScript is for creating dynamic content.
- Basic HTML page structure including common tags like <html>, <head>, <body>.
- Key CSS concepts like selectors, properties, values, and the box model.
- Core JavaScript concepts including the DOM, jQuery, AJAX, and the differences between JavaScript and jQuery.
- Examples are provided throughout to demonstrate uses of each technology.
Emmanuel Anyanwu is a stock handler with 3 years of experience in inventory management seeking a new challenging position. He has a proven track record of efficiently receiving, storing, and documenting a wide range of goods. His areas of expertise include stock handling, customer service, administrative duties, and he holds a B.Sc. in Communication Technology from the National Open University of Nigeria.
Web content mining mines data from web pages including text, images, audio, video, metadata and hyperlinks. It examines the content of web pages and search results to extract useful information. Web content mining helps understand customer behavior, evaluate website performance, and boost business through research. It can classify data into structured, unstructured, semi-structured and multimedia types and applies techniques such as information extraction, topic tracking, summarization, categorization and clustering to analyze the data.
A web crawler is a program that browses the World Wide Web methodically by following links from page to page and downloading each page to be indexed later by a search engine. It initializes seed URLs, adds them to a frontier, selects URLs from the frontier to fetch and parse for new links, adding those links to the frontier until none remain. Web crawlers are used by search engines to regularly update their databases and keep their indexes current.
This 20-minute presentation provides an introduction to several HTML5 semantic tags: article, section, aside, header, footer, nav. Includes how you can address browser compatibility issues.
The document discusses precision and recall, which are measures used to evaluate search engines. Precision measures the percentage of retrieved documents that are relevant, while recall measures the percentage of relevant documents that are retrieved. The document provides examples of precision and recall calculations and discusses how to improve precision by finding less irrelevant results and improve recall by finding more relevant results.
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.
Web crawlers, also known as robots or bots, are programs that systematically browse the internet and index websites for search engines. Crawlers follow links from seed URLs and download pages to extract new URLs to crawl. They use techniques like breadth-first crawling to efficiently discover as much of the web as possible. Crawlers must have policies to select pages, revisit sites, be polite to not overload websites, and coordinate distributed crawling. Their high-performance architecture is crucial for search engines to comprehensively index the large and constantly changing web.
The document discusses various techniques for optimizing web site performance, including reducing file sizes, decreasing HTTP requests, using content delivery networks, optimizing assets, leveraging caching, and minimizing JavaScript and CSS. It provides examples and recommendations for compressing and combining files, placing scripts and stylesheets strategically, and using tools like Firebug and YSlow to analyze performance. The overall goal is to make web pages load as fast as possible by decreasing download sizes and network traffic.
The document provides an overview of Bootstrap, including:
- Bootstrap is an open-source HTML, CSS, and JS framework for developing responsive mobile-first websites and web apps.
- It contains utilities for typography, forms, buttons, navigation, and other interface components, as well as optional JavaScript extensions.
- The document describes various Bootstrap components like grids, navigation, buttons, forms, images, alerts, progress bars, and panels. It provides code examples for how to implement these components.
Over 200 Pages of resources and code snippets to learn JavaScript and JavaScript DOM manipulation. JavaScript is the most popular web programming language and this eBook will help you learn more about JavaScript Coding
This document provides an overview of HTML and CSS for website development. It discusses how websites use HTML for content, CSS for presentation, and JavaScript for behavior. It then covers basic HTML tags and structure, as well as CSS selectors, the box model, positioning, and floats. The goal is to teach the essentials of using HTML to structure content and CSS to style and position that content for websites.
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
The document discusses HTML5 semantic and non-semantic elements. It defines semantic elements as those with inherent meaning, like <form> and <table>, while non-semantic elements like <div> and <span> do not convey meaning. New HTML5 semantic elements are introduced, including <section> for sections, <article> for independent content, <header> and <footer> for introductory and footer content, and <nav> for navigation links. Semantic elements are important for search engines and accessibility by clearly defining the meaning of different parts of a web page.
Information Retrieval Techniques of Google Cyr Ish
油
Google was founded in 1998 by Larry Page and Sergei Brin. It uses "spiders" to index web pages from links and fetch the pages they point to. When conducting searches, Google considers the order of words with the first being most important and ignores common words. It selects search results based on factors like page rank and proximity of terms.
Deep learning (also known as deep structured learning or hierarchical learning) is the application of artificial neural networks (ANNs) to learning tasks that contain more than one hidden layer. Deep learning is part of a broader family of machine learning methods based on learning data representations, as opposed to task-specific algorithms. Learning can be supervised, partially supervised or unsupervised.
This document provides an overview and introduction to responsive design using Bootstrap. It defines responsive design as designs that work on any resolution and are user friendly. It explains Bootstrap's grid system and standard device resolutions for extra small, small, medium, and large devices. Key Bootstrap components are summarized like the grid system, Glyphicons, and JavaScript plugins. The basic differences between HTML, CSS, and Bootstrap are outlined. Finally, the main purposes of using Bootstrap are listed as decreasing costs and code while providing an excellent and understandable user experience.
JQuery is a JavaScript library that simplifies HTML document manipulation, event handling, animations, and Ajax interactions. It works across browsers and makes tasks like DOM traversal and manipulation, event handling, animation, and Ajax much simpler. JQuery's versatility, extensibility, and cross-browser compatibility have made it popular, with millions of developers using it to write JavaScript.
The document discusses various HTML form elements and their attributes. It describes the <form> element which defines an HTML form, and common form elements like <input>, <select>, <textarea> and <button>. It provides examples and explanations of different input types such as text, password, checkbox, radio and submit. It also covers attributes like name, value, readonly and disabled.
If you are using jQuery, you need to understand the Document Object Model and how it accounts for all the elements inside any HTML document or Web page.
The document provides an introduction to HTML, CSS, and JavaScript. It includes sections on:
- What HTML, CSS, and JavaScript are and their purposes. HTML is for describing web pages, CSS is for styling elements, and JavaScript is for creating dynamic content.
- Basic HTML page structure including common tags like <html>, <head>, <body>.
- Key CSS concepts like selectors, properties, values, and the box model.
- Core JavaScript concepts including the DOM, jQuery, AJAX, and the differences between JavaScript and jQuery.
- Examples are provided throughout to demonstrate uses of each technology.
Emmanuel Anyanwu is a stock handler with 3 years of experience in inventory management seeking a new challenging position. He has a proven track record of efficiently receiving, storing, and documenting a wide range of goods. His areas of expertise include stock handling, customer service, administrative duties, and he holds a B.Sc. in Communication Technology from the National Open University of Nigeria.
This document provides instructions for setting up a local PHP development environment using WAMP server on Windows. It outlines potential errors when installing WAMP like the service icon remaining amber, and solutions like disabling Skype or IIS. Files should be saved to the 'www' folder in the WAMP directory in order to run PHP code locally. A simple PHP echo statement example is provided to test the setup.
This document provides an overview of various front-end frameworks and tools. It discusses HTML templating languages like HAML and templating engines like Handlebars. It also covers CSS preprocessors like SASS and LESS. JavaScript libraries and frameworks covered include jQuery, Backbone, Spine and CoffeeScript. Boilerplates like HTML5 Boilerplate and frameworks like Twitter Bootstrap and Zurb Foundation are also summarized. The document encourages trying new tools but not feeling overwhelmed by the many options and focusing on those most helpful.
League of extraordinary front end dev toolsSherif Tariq
油
Welcome to Dev City. Once a safe place for developers. Until the coming of the dark times: Microsoft. IE6. Enter the league of extraordinary front end dev tools. Node! Sass! Grunt!
This document discusses the challenges of professional front-end development. It notes the many factors that must be considered, such as performance, usability, accessibility and more. Front-end development is described as "the most hostile software development environment imaginable". The document advocates for recognizing front-end development as a profession that requires principles like availability, openness, richness and stability. It recommends approaches like semantic HTML, object-oriented CSS, and unobstructive JavaScript to implement these principles.
A talk on front-end developer tools including Yeoman, Grunt.js, Require.js, Bower, and SASS given at Drupal Camp LA 2013.
This talk doesn't address Drupal specifically, but it was aimed to give the audience of drupal developers a look into the state of the art.
Photoshop is a leading professional image editing program released by Adobe that allows users to easily create and edit images for print and online use. It has high quality features for tasks like making quick image corrections, controlling color and tone, intelligent image editing, and painting/drawing. Photoshop is commonly used by professional photographers and those interested in photo editing for tasks like special effects, creating posters, and image archives.
The document discusses front end development and the skills required. It begins by addressing misunderstandings about front end work, noting the complexity involved. It outlines the steps taken in front end projects, including communication, layout analysis, component identification, and integration. The document discusses reasons one may or may not want to pursue front end development, noting it requires skills like aesthetics, curiosity, and communication. Hard skills mentioned include HTML, CSS, JavaScript, performance, and responsiveness. Throughout, it emphasizes that front end work requires constant learning as technologies evolve rapidly.
Reveal.js is an HTML presentation framework that allows users to create beautiful presentations using HTML. It has features like vertical slides, nested slides, Markdown support, different transition styles, themes, slide backgrounds, images, video, tables, quotes, and linking between slides. Presentations can be exported to PDF and custom states and events can be triggered on each slide. The framework is touch optimized and works on devices like mobile phones and tablets.
Code & design your first website (3:16)Thinkful
油
This document provides an overview of how to code and design a first website. It discusses HTML, CSS, and web development fundamentals. It guides the reader through building a simple "About Me" webpage using Codepen.io to practice HTML and CSS. Tips are provided on downloading the code to a text editor and making the page viewable locally. The document also briefly touches on additional layout concepts like inline vs block elements and the box model. Overall, the document serves as an introductory tutorial for someone with little to no experience to code their first website.
This document provides an introduction to HTML by outlining its basic structure and common elements. It begins with defining HTML as a markup language used to describe web pages. The core components of an HTML page are explained, including the <html>, <head>, and <body> tags. Common elements like headings, paragraphs, links and images are demonstrated. Formatting text with tags like <strong> and <em> is also covered. The document concludes with resources for learning more about HTML elements and web design frameworks.
This document provides an overview of HTML basics for an ARTDM 171 class. It discusses setting up local folders for HTML work, common HTML tags like <html>, <head>, <title>, <body>, and <p>, semantic tags, linking with <a> tags, adding images with <img>, lists with <ul> and <ol>, tables with <table>, <tr>, and <td> tags, and introducing CSS for styling. It provides examples of basic page structure and tags. Homework is to refine last week's work with additional CSS styling rules.
The document discusses the topics that will be covered in a six-session course on casual content management and WordPress development. The sessions will include an overview of PHP, four weeks focused on WordPress development, and a final project presentation week. Students will start with warm-up PHP exercises and build up to creating a WordPress child theme and WordPress theme from scratch.
This document provides a summary of a one day web design bootcamp. The agenda includes an introduction to HTML5, CSS3, CSS frameworks, and SASS & Compass. In the HTML5 section, the document defines new HTML5 elements and features. It also discusses CSS units, selectors, properties, inheritance, specificity, and techniques for resolving conflicts. The CSS frameworks section demonstrates CSS resets and grids. The document concludes with an overview of SASS and Compass.
HTML defines the structure of a webpage, CSS controls the appearance, and JavaScript adds behavior. HTML uses elements like <body>, <h1>, and <p> to structure content. CSS opens with { and ends lines with ;, and is used to style elements with properties like color, float, and pseudo elements. The Chrome Developer console allows inspecting page elements and debugging code.
This document provides an introduction to HTML and CSS for building websites. It begins with introductions and background on the instructor and Thinkful. It then discusses why students may be interested in learning web development. The document proceeds to cover basic HTML tags and elements to build a simple website, then introduces CSS to style the HTML. Key concepts of CSS like selectors, properties, and values are explained. Students are given challenges to practice these new skills. Finally, tips are provided for continuing to learn and information on Thinkful's programs is shared.
I based my presention on the great "HTML5 for Web designers" by Jeremy Keith. Awesome and pragmatic book, the way I like it. Get your copy on: http://books.alistapart.com/products/html5-for-web-designers
This presentation will introduce the audience to designing a WordPress theme in HTML5 and CSS3. Well discuss the history of HTML5, why HTML5 makes blog design easier, and what you need to do to get WordPress to output valid HTML5 code. Youll also see how CSS3 can be used to generate an awesome-looking site using little to no graphics.
This class covers basic HTML tags and terminology. The instructor introduces common HTML tags like <html>, <head>, <title>, <body>, <p>, <h1-h6>, <strong>, and <a> and explains how they are used. Students learn about HTML elements, self-closing tags, and attributes. The goal is for students to understand basic HTML terms and structure, know common tags, and be able to build a simple HTML page by the end of the class.
The document provides instructions on basic HTML structure and elements. It explains how to begin an HTML document with a DOCTYPE declaration and <html> tags. It also describes how to add a <head> with <title> and <meta> tags, and a <body> with headings, paragraphs, articles, sections, headers, footers, comments and other elements. Closing tags and attributes like id and class are also covered.
This document provides an overview of HTML and CSS for creating interactive web pages. It defines HTML as the standard markup language used to describe web page structure using elements like <head>, <body>, <h1>, and <p>. CSS is used to format and style HTML elements, and can be added inline, internally, or through external stylesheets. Key HTML tags are explained, like <img> for embedding images. The document also covers basic CSS syntax and how it is used to control properties like colors, fonts, spacing and layout.
The document provides an introduction to HTML (Hypertext Markup Language) and the basic structure and elements of an HTML document. It explains that HTML is used to display web pages in browsers using tags, and common tags like <html>, <head>, <title>, and <body> are discussed. Basic HTML tags for formatting text, paragraphs, images, links and tables are also outlined. The document recommends practicing coding HTML in the browser and introduces CSS and HTML5. It provides homework of experimenting with two new HTML5 tags and modifying an existing website.
This document provides an introduction to HTML structure and layout. It covers key HTML elements like paragraphs, headings, links, images and their tags. It also discusses HTML attributes, block and inline elements, and how to use style attributes to format text. The document introduces HTML lists, tables, forms and input elements.
This document discusses optimizing a website for search engines by ordering content properly and making the template search engine friendly. It recommends:
- Placing important content above elements search engines can't read like Flash
- Grouping and reordering content divisions so the most important content is higher in the source code
- Using CSS for layout instead of tables to allow proper reading by crawlers
- Generating the right H1, H2, H3 tags using template overrides
The document demonstrates these techniques by restructuring a sample template's CSS and HTML to make the content flow in a search engine optimized order from top to bottom.
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptxbmit1
油
This document provides an overview of HTML and CSS for a lab exercise on creating interactive web sites. It defines HTML as the standard markup language used to structure web pages and describes common HTML elements like headings, paragraphs, and images. It then defines CSS as the language used to format and style HTML elements, describing how CSS can be added inline, internally, or via external stylesheets to control properties like colors, fonts, spacing, and layout. The document provides examples of HTML code and both internal and external CSS.
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.
4. Why WebDev?
Create cool looking websites
Hack online games (like Cookie Clicker!!)
Create your own online games
5. How Websites Work
Website = HTML document + resources (CSS,
images, JavaScript)
Browsers (Chrome, Firefox, etc.) read HTML and
render the appropriate page
Or if Internet Explorer, the wrong page
Websites can be on your local computer or on a web
server
7. What is HTML?
HTML = Hyper Text Markup Language
Language of the web!
All webpages are structured in HTML
Composed of elements which consist of tags
Tags mark beginning and end of elements
Ex. A paragraph element - <p>Paragraph Content</p>
8. Common Elements
Common Elements
HTML - <html></html>
Head - <head></head>
Body - <body></body>
Heading - <h1></h1>
Paragraph - <p></p>
Anchor - <a></a>
Image - <img />
9. Starting
HTML documents start with <!DOCTYPE html>
Tells browser to render as HTML5
Then <html> to put everything inside
Most elements need to be closed
HTML is highest order, so end with </html>
11. Header Element
Next is the head element, <head>
This is where you bring in style files, scripts, etc.
No actual content seen on the page will be here!
Ex. Titles, Style tags (CSS basically), etc.
15. Saving and Viewing
File -> save as nameofFile.html
Naming doesnt matter
MvHacks.html
HTML files dont need to be compiled
Open browser, click File -> Open file. and navigate to your
html document
Or with Brackets, use live-view (sideways lightning bolt)
16. HTML Details 1
Headings, <h1> . <h6>
6 different levels, appropriately used to section content
Cannot nest headings in each other, like <h1><h2></h2></h1>, that is bad
How to use:
<h1>Favorite Foods</h1>
<h2>Korean Food</h2>
<p>Korean food is awesome!</p>
<h2>Thai Food</h2>
<p>Thai food is also awesome!</p>
17. HTML Details 2
Paragraph, <p>
Most common/general text element
Automatically includes margins (spacing) between paragraphs
Line break, <br>
Separates lines of text
Can be placed in a <p> element
<p>The following sentence is true.<br> The previous sentence is
false.</p> Output:
The following sentence is true.
The previous sentence is false.
18. HTML Details 3
Anchor (link), <a>
Used to create hyperlink to separate content
Must declare href attribute with value as destination
Destination can be URL (http://www.google.com/) or a relative
destination (doc2.html)
Link text enclosed in element
<a href=http://www.google.com/>This link goes to Google.</a>
<a href=doc2.html>This link goes to doc2</a>
19. HTML Details 4
Blocks, <div>
Used to separate different sections of an html doc
You can nest as many as these within each other as you want, but keep in mind to close each one!
You can also set ids to them to set them apart (useful for CSS)
<div id=tasty_delicious_food></div>
<div id=Food>
<div id = more_food>
<div id = even_more_food>
</div>
</div>
</div>
20. HTML Details 5
Image, <img>
Used to input images into the doc
You can specify width and height through the tag
Width & height are both in measured in pixels
The <img> doesnt have a closing tag
<img src=/slideshow/basics-of-front-end-web-dev-powerpoint-53856351/53856351/penguinsFlying.jpg >
<img src=moreFlyingStuff.jpg width=100 height=100>
21. HTML Details 6
Lists
<ul> - unordered lists aka bullet lists
<ol> - ordered lists aka numbered lists
<li> - these will be the individual points within each list
<ul>
<li>Birds</li>
<li>Penguins</li> </ul>
<ol>
<li>Fuzzy Creatures</li>
<li>Pandas</li> </ol>
Output:
Birds
Penguins
1. Fuzzy Creatures
2. Pandas
22. Hands-On Part 1
Create a VERY basic HTML website that includes:
1. At least one picture
2. A proper title (for the webpage)
3. A few sentences (in bullet or numbered points) about yourself
4. Anything else you want
You have 5 minutes. If you are done or need
help, raise your hand.
23. HTML Details 7
Tables, <table>
Are used to display data in a table-like fashion
If you dont specify a border, itll display with no borders
<table border = 1>
<tr>
<td>Blah</td>
</tr>
<tr>
<td>Blah again</td>
</tr>
</table>
24. HTML 5
Cool new HTML version that includes:
<video> is used to embed a YouTube-esque video player in your website
Supported video formats include MP4, Ogg, and WebM
<video src=/slideshow/basics-of-front-end-web-dev-powerpoint-53856351/53856351/"Ep. 35 - The Tales of Ba Sing Se.mp4" controls>
Your browser does not support the video element.
</video>
<audio> is used to embed an audio player in your website
Supported audio formats include MP3, Wav, and Ogg
<audio src="leaves.mp3" controls>
Your browser does not support the audio element.
</audio>
27. What is CSS?
CSS stands for Cascade Style Sheets
CSS allows you to style your webpages by matching the
rules with HTML tags
This is were <div> ids come in handy!
28. How to Incorporate CSS
1. Make an external CSS spreadsheet (style.css)
Add with <link rel = stylesheet type=text/css href=style.css>
Must be in the <head> section!
CSS file must be in same folder as HTML
2. Internal CSS
Put everything in between <style> </style> elements
Again, must be in the <head> section
3. Inline Stylesheet
Manually write style=
Like: <p style=color: # 421c52;> Yo! </p>
29. Some Syntax
body {
background: #ffffff;
font-size: 16px;
}
div#css_lessons {
width: 100%;
height: 960px;
background: #421c52;
}
Whatever is in the {} is what you are modifying
If you gave an ID, then you have to use #Idname
selector
If you have a class, then the .classname selector
Generally, most things like font-size work in the
syntax ->
nameofRule:
30. CSS Selectors 1
Tag
Use element name, applies to all elements of that type in the document
p { color: blue; }
Class
Use class name, applies to all elements of that class in the document
.subtext { font-weight: bold; }
ID
Use id name, applies to only element with specified id
#key { font-size: 28px; }
31. CSS Selectors 2
You can group selectors together in the same CSS rule
Enclosed properties apply to all selected elements
/* Applies to all paragraph elements, and heading 1s with id title */
p, h1#title {
font-style: italic;
}
32. CSS Properties 1
Text properties
Font-family
Font-style
Font-size
Font-weight
Color
p {
font-weight: bold;
font-style: italic;
font-size: 20px;
font-family: serif;
color: #666666;
}
/* All paragraphs are now bold, italic, 20px large, serif font, and gray */
33. CSS Properties 2
Background properties
Background-color
Background-image
Background-repeat
Background-attachment
Background-position
body {
background-image: url(/slideshow/basics-of-front-end-web-dev-powerpoint-53856351/53856351/background.png);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center top;
}
/* Sets bodys background image as fixed at
the top of the page */
34. CSS Positioning
Margin
Space surrounding element
Border
Element border
Padding
Space surrounding element content
35. CSS Positioning 1
Margin:
Clears a space around your element
Imagine theres a border around it, margin clears
everything outside of it
Usable one of two ways: long-hand way or short-hand
way
/*creates a margin above, right, below, left shorthand*/
div#Hacks {
margin: 5px 6px 7px 8px;
}
/*creates a margin above,right, below, left longhand*/
div#Hacks {
margin-top: 5px;
margin-right: 6px;
margin-bottom: 7px;
margin-left: 8px;
}
36. CSS Positioning 2
Margins a useful trick for aligning the element into the center of the page
/*centers an element into the center of the page*/
div#pieText {
margin: 0 auto;
}
Why does this work?
The 0 tells the browser to set the top and bottom margins to 0
The auto tells the browser to split up the left and right evenly so the element is centered
37. CSS Positioning 3
Padding:
Clears a space around the content within the
element
Imagine a box around the element, padding
applies to everything within the border
/*creates padding above, right, below, left
shorthand*/
p {
padding: 5px 6px 7px 8px;
}
/*creates padding above, right, below, left
longhand*/
p {
padding-top: 5px;
padding-right: 6px;
padding-bottom: 7px;
padding-left: 8px;
}
38. CSS Positioning 4
Floating
Allow you to float an element left or right
Great for layouts and images
*Float to the left*/
div#pieImage {
float: left;
}
/*Float to the right*/
div#pieImage {
float: right;
}
39. Hands-On Part 2
Take your previous HTML website and using CSS,
1. Add at least 1 class and 1 ID and style them
2. Style the background (colors, designs, etc.)
3. Style the sentences you wrote (colors, fonts, etc.)
4. Challenge: put some padding on the image and center it
You have 5 minutes. If you are done or need
help, raise your hand.