You are on page 1of 35

Web Engineering

Lect 3 (HTML)
Instructor: Faheem Shaukat
Meeting Hours
Wednesday and Thursday
12PM to 02PM
• <body>

• <header>

• header element - Some header information goes here. Usually consists of company logo, some tag line, etc. Sometimes, navigation is contained in the header as well.

• <nav>nav (short for navigation) element - Usually contains links to different parts of the web site.</nav>

• </header>

• <h1>Main Heading of the Page (hard not to have it)</h1>

• <section>

• Section 1

• <article>Article 1</article>

• <article>Article 2</article>

• <article>Article 3</article>

• </section>

• <section>

• Section 2

• <article>Article 4</article>

• <article>Article 5</article>

• <article>Article 6</article>

• <div>Regular DIV element</div>

• </section>

• <aside>

• ASIDE - Some information that relates to the main topic, i.e., related posts.

• </aside>

• <footer>

• JHU Copyright 2015

• </footer>

• </body>
• <body>
• <h1>Unordered list</h1>
• <div>

• My typical dinner shopping list:

• Milk
• Donuts
• Cookies
• Chocolate
• Sugar
• Peanut Butter
• Pepto Bismol

• </div>
• </body>
• <body>
• <h1>Unordered list</h1>
• <div>

• My typical dinner shopping list:
• <ul>
• <li>Milk</li>
• <li>Donuts</li>
• <li>Cookies
• <ul>
• <li>Chocolate</li>
• <li>Sugar</li>
• <li>Peanut Butter</li>
• </ul>
• </li>
• <li>Pepto Bismol</li>
• </ul>

• </div>
• </body>
• <body>
• <h1>Ordered list</h1>
• <div>
• Oreo cookie eating procedure:
• <ol>
• <li>Open box</li>
• <li>Take out cookie</li>
• <li>Make a Double Oreo
• <ol>
• <li>Peel off the top part</li>
• <li>Place another cookie in the middle</li>
• <li>Put back the top part</li>
• </ol>
• </li>
• <li>Enjoy!</li>
• </ol>
• </div>
• </body>
• <body>
• <h1>Don't be afraid to be <then a 100% success & >more:</h1>
• <p>
• "It is not the critic who counts; not the man who points out how the strong man stumbles,
• or where the doer of deeds could have done them better. The credit belongs to the man who is
actually
• in the arena, whose face is marred by dust and sweat and blood; who strives valiantly; who errs, who
• comes short again and again, because there is no effort without error and shortcoming; but who does
• actually strive to do the deeds; who knows great enthusiasms, the great devotions; who spends
himself
• in a worthy cause; who at the best knows in the end the triumph of high achievement, and who at the
• worst, if he fails, at least fails while daring greatly, so that his place shall never be with those
• cold and timid souls who neither know victory nor defeat."
• </p>
• <p>Theodor Roosevelt 1910 Copyright</p>
• </body>
• <body>
• <h1>Don't be afraid to be &lt;then a 100% success &amp; &gt;more:</h1>
• <p>
• &quot;It is not the critic who counts; not the man who points out how the
strong man stumbles, or where the doer of deeds could have done them better.
The credit belongs to the man who is actually in the arena, whose face is marred
by dust and sweat and blood; who strives valiantly; who errs, who comes short
again and again, because there is no effort without error and shortcoming; but
who does actually strive to do the deeds; who knows great enthusiasms, the
great devotions; who spends himself in a worthy cause; who at the best knows in
the end the triumph of high achievement, and who at the worst, if he fails, at
least fails while daring greatly, so that his place shall never be with those cold
and timid souls who neither know victory&nbsp;nor&nbsp;defeat.&quot;
• </p>
• <p>Theodor Roosevelt 1910 &copy; Copyright</p>
• </body>
• <body>
• <h1>Internal Links</h1>
• <section>
• We can link to a file in the same directory as this HTML file like this:
• <a href="same-directory.html" title="same dir link">Linking to a file in
the same directory</a>

• <a href="same-directory.html" title="same dir link">


• <div> DIV Linking to a file in the same directory</div>
• </a>
• </section>
• </body>
• <body>
• <h1 id="top">External Links</h1>
• <section>
• <p>
• Let's link to a Facebook Fan page I created for this course!
• <!-- link to Facebook page WITH TARGET-->
• <a href="http://www.facebook.com/CourseraWebDev"
• target="_blank" title="Like Our Page!">Course Facebook Page</a>
• </p>
• </section>
• </body>
• <body>
• <h1 id="top">Links to Sections of The Same Page</h1>
• <section>
• <ul>
• <!-- Link to every section in the page -->
• <li><a href="#section1">#section1</a></li>
• <li><a href="#section2">#section2</a></li>
• </ul>
• </section>
• <section id="section1">
• <h3>(#section1) Section 1</h3>
• <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus dignissimos aut quasi quibusdam aspernatur possimus officia nulla consectetur </p>
• </section>
• <section id="section2">
• <h3>(#section2) Section 2</h3>
• <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus debitis voluptatibus facere repellat deserunt sint, beatae optio cupiditate </p>
• </section>
• <div>
• <h2><a name="section6">(#section6) Section 6</a></h2>
• <p>
• Back to top: <a href="#top">Back to Top</a>
• </p>
• </div>
• </body>
• <body>
• <h1>Don't be afraid to be &lt;then a 100% success:</h1>
• <p>
• <img src="picture-with-quote.jpg" width="400" height="235"
alt="Picture with a quote“>
• </p>
• <p>
• <img src="http://lorempixel.com/output/nature-q-c-640-480-1.jpg"
width="640" height="480">
• </p>
• <p>Theodore Roosevelt 1910 &copy; Copyright</p>
• </body>

You might also like