HTML 1
CS 337 - Web Programming University of Arizona - Spring 2014
HTML 1 CS 337 - Web Programming University of Arizona - Spring 2014 - - PowerPoint PPT Presentation
HTML 1 CS 337 - Web Programming University of Arizona - Spring 2014 Day 1 Review There are four main technological elements used in a majority of websites Design Interaction Logic Database (HTML & CSS) (JavaScript) (PHP/ (MySQL/
CS 337 - Web Programming University of Arizona - Spring 2014
There are four main technological elements used in a majority of websites
CS 337 - Web Programming University of Arizona - Spring 2014
Design (HTML & CSS) Interaction (JavaScript) Logic (PHP/ ASP.NET/ Java) Database (MySQL/ SQL Server/ Oracle)
able to:
elements and tags, and indention
correct order of the required declarations and elements of an HTML document
and inline elements and two generic tags that represent them.
CS 337 - Web Programming University of Arizona - Spring 2014
Naming a file:
characters for best results
CS 337 - Web Programming University of Arizona - Spring 2014
Comments are started with a <!-- and end with --> Example: <!-- This is a comment -->
CS 337 - Web Programming University of Arizona - Spring 2014
Browser View
to be machine-readable
tags with the ability to define attributes and the text in the element
CS 337 - Web Programming University of Arizona - Spring 2014
machine reading my page that I want it to define paragraph, I would put the word paragraph in a tag
<paragraph>
CS 337 - Web Programming University of Arizona - Spring 2014
knows where the end of the tag is
name of the tag
<paragraph> </paragraph>
CS 337 - Web Programming University of Arizona - Spring 2014
between the opening and closing tags (inside an element) is displayed to the user
<paragraph>Hello World</paragraph>
CS 337 - Web Programming University of Arizona - Spring 2014
Browser View
element by putting the attribute in the
<paragraph name="myParagraph"> Hello World </paragraph>
CS 337 - Web Programming University of Arizona - Spring 2014
for standard tags so it is faster to type
<p>Hello World</p>
CS 337 - Web Programming University of Arizona - Spring 2014
nested
should be indented by human readability <p>Hello World <p> Goodbye World </p> </p>
CS 337 - Web Programming University of Arizona - Spring 2014
Browser View
able to:
elements and tags, and indention
correct order of the required declarations and elements of an HTML document
and inline elements and two generic tags that represent them.
CS 337 - Web Programming University of Arizona - Spring 2014
able to:
elements and tags, and indention
correct order of the required declarations and elements of an HTML document
and inline elements and two generic tags that represent them.
CS 337 - Web Programming University of Arizona - Spring 2014
HTML document
CS 337 - Web Programming University of Arizona - Spring 2014
HTML document
CS 337 - Web Programming University of Arizona - Spring 2014
document
CS 337 - Web Programming University of Arizona - Spring 2014
document <!DOCTYPE html> <title>Example Page</title>
CS 337 - Web Programming University of Arizona - Spring 2014
Browser View
the document that contains html (which is all of it)
the document so that there is an element that contains everything
CS 337 - Web Programming University of Arizona - Spring 2014
<!DOCTYPE html> <html> <title>Example Page</title> </html>
about the HTML document itself
should be displayed to the user
CS 337 - Web Programming University of Arizona - Spring 2014
<!DOCTYPE html> <html> <head> <title> Example Page </title> </head> </html>
be displayed to the user
CS 337 - Web Programming University of Arizona - Spring 2014
<!DOCTYPE html> <html> <head> <title>Example Page</title> </head> <body> <p>Hello World!</p> </body> </html>
CS 337 - Web Programming University of Arizona - Spring 2014
an HTML document
twice with different attributes
CS 337 - Web Programming University of Arizona - Spring 2014
an example page">
engines
but aren’t as common
CS 337 - Web Programming University of Arizona - Spring 2014
CS 337 - Web Programming University of Arizona - Spring 2014
... <head> <title>Example Page</title> <meta charset="UTF-8" /> <meta name="description" content="This is an example page"> </head> ...
CS 337 - Web Programming University of Arizona - Spring 2014
elements commonly used to structure the body of a website
CS 337 - Web Programming University of Arizona - Spring 2014
<header> <nav> <section> <article> <aside> <footer>
CS 337 - Web Programming University of Arizona - Spring 2014
CS 337 - Web Programming University of Arizona - Spring 2014
able to:
elements and tags, and indention
correct order of the required declarations and elements of an HTML document
and inline elements and two generic tags that represent them.
CS 337 - Web Programming University of Arizona - Spring 2014
able to:
elements and tags, and indention
correct order of the required declarations and elements of an HTML document
and inline elements and two generic tags that represent them.
CS 337 - Web Programming University of Arizona - Spring 2014
CS 337 - Web Programming University of Arizona - Spring 2014
fill its parent container
fit its child elements
CS 337 - Web Programming University of Arizona - Spring 2014
CS 337 - Web Programming University of Arizona - Spring 2014
settings, but will apply left and right margins, and any padding
properties
CS 337 - Web Programming University of Arizona - Spring 2014
CS 337 - Web Programming University of Arizona - Spring 2014
CS 337 - Web Programming University of Arizona - Spring 2014
CS 337 - Web Programming University of Arizona - Spring 2014
able to:
elements and tags, and indention
correct order of the required declarations and elements of an HTML document
and inline elements and two generic tags that represent them.
CS 337 - Web Programming University of Arizona - Spring 2014
able to:
elements and tags, and indention
correct order of the required declarations and elements of an HTML document
and inline elements and two generic tags that represent them.
CS 337 - Web Programming University of Arizona - Spring 2014