SlideShare una empresa de Scribd logo
1 de 41
Descargar para leer sin conexión
webDEV@RGU
creating html pages
Today
Going to look at how we can create an
HTML page from a ‘template’. We’ll use:
http://www.rgu.ac.uk
Two parts to this:
1. Looking at the template and splitting it
into different sections
2. Creating the HTML for these individual
sections
Template
Deconstruction
this is the page we’ll be
looking at
Header Quick Links
Logo Search Bar
Navigation
Main
3 sections
Header
Form
Navigation
Image
Article Article Article
Header
Image
Text (description)
Footer
Heading
Links
Creating the
html
<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>RGU Homepage</title>

</head>

<body>



</body>

</html>
<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>RGU Homepage</title>

</head>

<body>

<!--START OF HEADER -->

<header>



</header>

<!--END OF HEADER -->



<!--START OF MAIN -->

<main>



</main>

<!--END OF MAIN -->



<!--START OF FOOTER -->

<footer>



</footer>

<!--END OF FOOTER -->

</body>

</html>
<header>

<div id="quicklinks">

<ul>

<li><a href ="#">Home</a></li>

<li><a href ="#">About</a></li>

<li><a href ="#">RGYou</a></li>

<li><a href ="#">Staff & Current Students</a></li>

<li><a href ="#">A to Z</a></li>

</ul>

</div>



<img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>



<div id="seachbox">

<form>

<p>Search</p>

<input type="text" name="searchfield">

<input type="submit" value="Go">

</form>

</div>



<nav>

<ul>

<li><a href ="#">Areas of Study</a></li>

<li><a href ="#">Future Students</a></li>

<li><a href ="#">...</a></li>

<li><a href ="#">Contact Us</a></li>

</ul>

</nav>

</header>
1. Everything that we do in the header is contained within our <header> tags
<header>

<div id="quicklinks">

<ul>

<li><a href ="#">Home</a></li>

<li><a href ="#">About</a></li>

<li><a href ="#">RGYou</a></li>

<li><a href ="#">Staff & Current Students</a></li>

<li><a href ="#">A to Z</a></li>

</ul>

</div>



<img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>



<div id="seachbox">

<form>

<p>Search</p>

<input type="text" name="searchfield">

<input type="submit" value="Go">

</form>

</div>



<nav>

<ul>

<li><a href ="#">Areas of Study</a></li>

<li><a href ="#">Future Students</a></li>

<li><a href ="#">...</a></li>

<li><a href ="#">Contact Us</a></li>

</ul>

</nav>

</header>
Quick Links
1. Create a DIV to hold the information in
2. It is best to use an unordered list to create a series of links
3. Use the # symbol when we don’t yet know where the link is going to go
<header>

<div id="quicklinks">

<ul>

<li><a href ="#">Home</a></li>

<li><a href ="#">About</a></li>

<li><a href ="#">RGYou</a></li>

<li><a href ="#">Staff & Current Students</a></li>

<li><a href ="#">A to Z</a></li>

</ul>

</div>



<img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>



<div id="seachbox">

<form>

<p>Search</p>

<input type="text" name="searchfield">

<input type="submit" value="Go">

</form>

</div>



<nav>

<ul>

<li><a href ="#">Areas of Study</a></li>

<li><a href ="#">Future Students</a></li>

<li><a href ="#">...</a></li>

<li><a href ="#">Contact Us</a></li>

</ul>

</nav>

</header>
1. Give the logo an id so that we can style it later in css
2. Use src to give the location of the logo
3. Give the image alternative text to aid with accessibility
<header>

<div id="quicklinks">

<ul>

<li><a href ="#">Home</a></li>

<li><a href ="#">About</a></li>

<li><a href ="#">RGYou</a></li>

<li><a href ="#">Staff & Current Students</a></li>

<li><a href ="#">A to Z</a></li>

</ul>

</div>



<img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>



<div id="seachbox">

<form>

<p>Search</p>

<input type="text" name="searchfield">

<input type="submit" value="Go">

</form>

</div>



<nav>

<ul>

<li><a href ="#">Areas of Study</a></li>

<li><a href ="#">Future Students</a></li>

<li><a href ="#">...</a></li>

<li><a href ="#">Contact Us</a></li>

</ul>

</nav>

</header>
1. Contain the search box in a DIV and give it an ID to make styling easier in CSS
2. The search box should be contained within a form
3. Use the text input type to create the box
4. Use the submit input type to create the button
5. In the future we would add a location for this form to be sent to
<header>

<div id="quicklinks">

<ul>

<li><a href ="#">Home</a></li>

<li><a href ="#">About</a></li>

<li><a href ="#">RGYou</a></li>

<li><a href ="#">Staff & Current Students</a></li>

<li><a href ="#">A to Z</a></li>

</ul>

</div>



<img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>



<div id="seachbox">

<form>

<p>Search</p>

<input type="text" name="searchfield">

<input type="submit" value="Go">

</form>

</div>



<nav>

<ul>

<li><a href ="#">Areas of Study</a></li>

<li><a href ="#">Future Students</a></li>

<li><a href ="#">...</a></li>

<li><a href ="#">Contact Us</a></li>

</ul>

</nav>

</header>
1. Similar to before when creating this navigation bar
2. Remember to use a list
3. This time, we can use the nav element to contain everything together
<header>

<div id="quicklinks">

<ul>

<li><a href ="#">Home</a></li>

<li><a href ="#">About</a></li>

<li><a href ="#">RGYou</a></li>

<li><a href ="#">Staff & Current Students</a></li>

<li><a href ="#">A to Z</a></li>

</ul>

</div>



<img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>



<div id="seachbox">

<form>

<p>Search</p>

<input type="text" name="searchfield">

<input type="submit" value="Go">

</form>

</div>



<nav>

<ul>

<li><a href ="#">Areas of Study</a></li>

<li><a href ="#">Future Students</a></li>

<li><a href ="#">...</a></li>

<li><a href ="#">Contact Us</a></li>

</ul>

</nav>

</header>
<main>
<!-- Section 1 -->

<section>

</section>
<!-- Section 2 -->
<section>

</section>
<!-- Section 3 -->
<section>

</section>

</main>
1. Split the <main> into 3 <section> tags
<section>

<h2>Search our courses</h2>

<form>

<input type="text" name="keywordbox" value="Enter Keyword">

<select>

<option value="compsci">Computer Science</option>

<option value="digmed">Digital Media</option>

<option value="network">Computer Network Management and Design</option>

<option value="other">Other</option>

</select>

<input type="submit" value="search">

</form>

<ul>

<li>Architeture, Construction & Surveying</li>

<li>Business, Management & Accounting</li>

<li>Engineering</li>

<li>...</li>

</ul>

</section>
1. All of our content goes between the <section> tags
<section>

<h2>Search our courses</h2>

<form>

<input type="text" name="keywordbox" value="Enter Keyword">

<select>

<option value="compsci">Computer Science</option>

<option value="digmed">Digital Media</option>

<option value="network">Computer Network Management and Design</option>

<option value="other">Other</option>

</select>

<input type="submit" value="search">

</form>

<ul>

<li>Architeture, Construction & Surveying</li>

<li>Business, Management & Accounting</li>

<li>Engineering</li>

<li>...</li>

</ul>

</section>
1. Create our header for this section
<section>

<h2>Search our courses</h2>

<form>

<input type="text" name="keywordbox" value="Enter Keyword">

<select>

<option value="compsci">Computer Science</option>

<option value="digmed">Digital Media</option>

<option value="network">Computer Network Management and Design</option>

<option value="other">Other</option>

</select>

<input type="submit" value="search">

</form>

<ul>

<li>Architeture, Construction & Surveying</li>

<li>Business, Management & Accounting</li>

<li>Engineering</li>

<li>...</li>

</ul>

</section>
1. Create the form allowing people to search
2. use the text type for the first box
3. use a <select> for the second
1. Every option in the dropdown has to have an option
4. Use a submit type for the button
<section>

<h2>Search our courses</h2>

<form>

<input type="text" name="keywordbox" value="Enter Keyword">

<select>

<option value="compsci">Computer Science</option>

<option value="digmed">Digital Media</option>

<option value="network">Computer Network Management and Design</option>

<option value="other">Other</option>

</select>

<input type="submit" value="search">

</form>

<ul>

<li>Architeture, Construction & Surveying</li>

<li>Business, Management & Accounting</li>

<li>Engineering</li>

<li>...</li>

</ul>

</section>
1. Create an unordered list to hold all of the links
2. use <li> to hold each one
spot the mistake…I should have done the following…
<li><a href=“#”>My link text</a></li>
<section>

<h2>Search our courses</h2>

<form>

<input type="text" name="keywordbox" value="Enter Keyword">

<select>

<option value="compsci">Computer Science</option>

<option value="digmed">Digital Media</option>

<option value="network">Computer Network Management and Design</option>

<option value="other">Other</option>

</select>

<input type="submit" value="search">

</form>

<ul>

<li>Architeture, Construction & Surveying</li>

<li>Business, Management & Accounting</li>

<li>Engineering</li>

<li>...</li>

</ul>

</section>
<section>


<img src="advertbanner.png" alt="Top UK University for Graduate Employment - HESA Destination of UK
Leavers Survey 2013/14. Published by HESA, August 2015”/>


</section>
1. Fairly easy section, just remember to include the alt text for the
image.
1. If there is text in the image you should have the text in the
‘alt’ (screenreaders can’t read images)
<section>

<!-- Article 1 -->

<article>

</article>



<!-- Article 2 -->

<article>

</article>



<!-- Article 3 -->

<article>

</article>


</section>
1. Split the 3 different articles into 3 different article tags and do each
one
<article>

<h3>Postgraduate Open Evening</h3>

<img src="newsarticle1.png" alt="Postgraduate students talking">

<p>Register to attend...</p>

</article>
1. Contain everything inside the <article> tags
<article>

<h3>Postgraduate Open Evening</h3>

<img src="newsarticle1.png" alt="Postgraduate students talking">

<p>Register to attend...</p>

</article>
1. Put the article heading in <h3> tags
<article>

<h3>Postgraduate Open Evening</h3>

<img src="newsarticle1.png" alt="Postgraduate students talking">

<p>Register to attend...</p>

</article>
1. Remember to say where the image is (src)
and what the images is (alt)
<article>

<h3>Postgraduate Open Evening</h3>

<img src="newsarticle1.png" alt="Postgraduate students talking">

<p>Register to attend...</p>

</article>
1. Put the text in a <p> tag
<article>

<h3>Postgraduate Open Evening</h3>

<img src="newsarticle1.png" alt="Postgraduate students talking">

<p>Register to attend...</p>

</article>
<section>

<!-- Article 1 -->

<article>

<h3>Postgraduate Open Evening</h3>

<img src="newsarticle1.png" alt="Postgraduate students talking">

<p>Register to attend...</p>

</article>



<!-- Article 2 -->

<article>

<h3>Visit Us</h3>

<img src="newsarticle2.png" alt="Sir Ian Wood Building">

<p>Your chance to visit...</p>

</article>



<!-- Article 3 -->

<article>

<h3>International Students</h3>

<img src="newsarticle3.png" alt="Students deep in thought">

<p>Information for future...</p>

</article>

</section>
<footer>

<h2>Connect with Us</h2>

<ul>

<li><a href="http://www.facebook.com"><img src="facebooklogo.png" alt="Facebook"></a></li>

<li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></a></li>

<li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></a></li>

<li>...</li>

</ul>

</footer>
1. Contain everything within the <footer> tags
<footer>

<h2>Connect with Us</h2>

<ul>

<li><a href="http://www.facebook.com"><img src="facebooklogo.png" alt="Facebook"></a></li>

<li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></a></li>

<li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></a></li>

<li>...</li>

</ul>

</footer>
1. Create the heading for this section
<footer>

<h2>Connect with Us</h2>

<ul>

<li><a href="http://www.facebook.com"><img src="facebooklogo.png" alt="Facebook"></a></li>

<li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></a></li>

<li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></a></li>

<li>...</li>

</ul>

</footer>
1. Create the set of links
2. <ul> to create the unordered list
3. <li> for each item
4. <a> to let every image link to somewhere
5. <img> to have the image itself
<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>RGU Homepage</title>

</head>

<body>

<!--START OF HEADER -->

<header>

<div id="quicklinks">

<ul>

<li><a href ="#">Home</a></li>

<li><a href ="#">About</a></li>

<li><a href ="#">RGYou</a></li>

<li><a href ="#">Staff & Current Students</a></li>

<li><a href ="#">A to Z</a></li>

</ul>

</div>



<img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>



<div id="seachbox">

<form>

<p>Search</p>

<input type="text" name="searchfield">

<input type="submit" value="Go">

</form>

</div>



<nav>

<ul>

<li><a href ="#">Areas of Study</a></li>

<li><a href ="#">Future Students</a></li>

<li><a href ="#">...</a></li>

<li><a href ="#">Contact Us</a></li>

</ul>

</nav>



</header>

<!--END OF HEADER -->



<!--START OF MAIN -->

<main>

<section>

<h2>Search our courses</h2>

<form>

<input type="text" name="keywordbox" value="Enter Keyword">

<select>

<option value="compsci">Computer Science</option>

<option value="digmed">Digital Media</option>

<option value="network">Computer Network Management and Design</option>

<option value="other">Other</option>

</select>

<input type="submit" value="search">

</form>

<ul>

<li>Architeture, Construction & Surveying</li>

<li>Business, Management & Accounting</li>

<li>Engineering</li>

<li>...</li>

</ul>

</section>



<section>

<img src="advertbanner.png" alt="Top UK University for Graduate Employment -
HESA Desintation of Uk Leavers Survey 2013/14. Published by HESA, August 2015">

</section>



<section>

<!-- Article 1 -->

<article>

<h3>Postgraduate Open Evening</h3>

<img src="newsarticle1.png" alt="Postgraduate students talking">

<p>Register to attend...</p>

</article>



<!-- Article 2 -->

<article>

<h3>Visit Us</h3>

<img src="newsarticle2.png" alt="Sir Ian Wood Building">

<p>Your chance to visit...</p>

</article>



<!-- Article 3 -->

<article>

<h3>International Students</h3>

<img src="newsarticle3.png" alt="Students deep in thought">

<p>Information for future...</p>

</article>

</section>



</main>

<!--END OF MAIN -->



<!--START OF FOOTER -->

<footer>

<h2>Connect with Us</h2>

<ul>

<li><a href="http://www.facebook.com"><img src="facebooklogo.png"
alt="Facebook"></a></li>

<li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></
a></li>

<li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></
a></li>

<li>...</li>

</ul>

</footer>

<!--END OF FOOTER -->

</body>

</html>
<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>RGU Homepage</title>

</head>

<body>

<!--START OF HEADER -->

<header>

<div id="quicklinks">

<ul>

<li><a href ="#">Home</a></li>

<li><a href ="#">About</a></li>

<li><a href ="#">RGYou</a></li>

<li><a href ="#">Staff & Current Students</a></li>

<li><a href ="#">A to Z</a></li>

</ul>

</div>



<img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>



<div id="seachbox">

<form>

<p>Search</p>

<input type="text" name="searchfield">

<input type="submit" value="Go">

</form>

</div>



<nav>

<ul>

<li><a href ="#">Areas of Study</a></li>

<li><a href ="#">Future Students</a></li>

<li><a href ="#">...</a></li>

<li><a href ="#">Contact Us</a></li>

</ul>

</nav>



</header>

<!--END OF HEADER -->



<!--START OF MAIN -->

<main>

<section>

<h2>Search our courses</h2>

<form>

<input type="text" name="keywordbox" value="Enter Keyword">

<select>

<option value="compsci">Computer Science</option>

<option value="digmed">Digital Media</option>

<option value="network">Computer Network Management and Design</option>

<option value="other">Other</option>

</select>

<input type="submit" value="search">

</form>

<ul>

<li>Architeture, Construction & Surveying</li>

<li>Business, Management & Accounting</li>

<li>Engineering</li>

<li>...</li>

</ul>

</section>



<section>

<img src="advertbanner.png" alt="Top UK University for Graduate Employment -
HESA Desintation of Uk Leavers Survey 2013/14. Published by HESA, August 2015">

</section>



<section>

<!-- Article 1 -->

<article>

<h3>Postgraduate Open Evening</h3>

<img src="newsarticle1.png" alt="Postgraduate students talking">

<p>Register to attend...</p>

</article>



<!-- Article 2 -->

<article>

<h3>Visit Us</h3>

<img src="newsarticle2.png" alt="Sir Ian Wood Building">

<p>Your chance to visit...</p>

</article>



<!-- Article 3 -->

<article>

<h3>International Students</h3>

<img src="newsarticle3.png" alt="Students deep in thought">

<p>Information for future...</p>

</article>

</section>



</main>

<!--END OF MAIN -->



<!--START OF FOOTER -->

<footer>

<h2>Connect with Us</h2>

<ul>

<li><a href="http://www.facebook.com"><img src="facebooklogo.png"
alt="Facebook"></a></li>

<li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></
a></li>

<li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></
a></li>

<li>...</li>

</ul>

</footer>

<!--END OF FOOTER -->

</body>

</html>
Remember, this is only the HTML (the structure)
We still need to make the CSS (the design)
Your turn…pick one of the following website and create the html for it
http://www.comp.rgu.ac.uk/
http://www.bbc.co.uk/news
http://www.bbc.co.uk/sport/
http://www.techradar.com/
http://www.metoffice.gov.uk/
http://mashable.com/
want some feedback?send me a tweet!
@mike_crabb
Lecturer in Web Development
Robert Gordon University
Scotland

Más contenido relacionado

La actualidad más candente

Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12
Hitesh Patel
 

La actualidad más candente (20)

Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTML
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
 
HTML & CSS
HTML & CSSHTML & CSS
HTML & CSS
 
CSS Grid
CSS GridCSS Grid
CSS Grid
 
Html & Css presentation
Html  & Css presentation Html  & Css presentation
Html & Css presentation
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
HTML Dasar : #5 Heading
HTML Dasar : #5 HeadingHTML Dasar : #5 Heading
HTML Dasar : #5 Heading
 
Css Basics
Css BasicsCss Basics
Css Basics
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
Html graphics
Html graphicsHtml graphics
Html graphics
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
 
Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12
 
Page layout with css
Page layout with cssPage layout with css
Page layout with css
 
Html ppt
Html pptHtml ppt
Html ppt
 
Bootstrap ppt
Bootstrap pptBootstrap ppt
Bootstrap ppt
 

Destacado

Destacado (20)

CSS Grid Layout for Topconf, Linz
CSS Grid Layout for Topconf, LinzCSS Grid Layout for Topconf, Linz
CSS Grid Layout for Topconf, Linz
 
Introduction to Go programming
Introduction to Go programmingIntroduction to Go programming
Introduction to Go programming
 
Test Automation - Principles and Practices
Test Automation - Principles and PracticesTest Automation - Principles and Practices
Test Automation - Principles and Practices
 
New Amazing Things about AngularJS 2.0
New Amazing Things about AngularJS 2.0New Amazing Things about AngularJS 2.0
New Amazing Things about AngularJS 2.0
 
Testing at Spotify
Testing at SpotifyTesting at Spotify
Testing at Spotify
 
Node.js and The Internet of Things
Node.js and The Internet of ThingsNode.js and The Internet of Things
Node.js and The Internet of Things
 
Introduction to Information Architecture
Introduction to Information ArchitectureIntroduction to Information Architecture
Introduction to Information Architecture
 
iOS Scroll Performance
iOS Scroll PerformanceiOS Scroll Performance
iOS Scroll Performance
 
Top Insights from SaaStr by Leading Enterprise Software Experts
Top Insights from SaaStr by Leading Enterprise Software ExpertsTop Insights from SaaStr by Leading Enterprise Software Experts
Top Insights from SaaStr by Leading Enterprise Software Experts
 
Launching a Rocketship Off Someone Else's Back
Launching a Rocketship Off Someone Else's BackLaunching a Rocketship Off Someone Else's Back
Launching a Rocketship Off Someone Else's Back
 
Data made out of functions
Data made out of functionsData made out of functions
Data made out of functions
 
Montreal Girl Geeks: Building the Modern Web
Montreal Girl Geeks: Building the Modern WebMontreal Girl Geeks: Building the Modern Web
Montreal Girl Geeks: Building the Modern Web
 
The Future of Real-Time in Spark
The Future of Real-Time in SparkThe Future of Real-Time in Spark
The Future of Real-Time in Spark
 
Introduction to Development for the Internet
Introduction to Development for the InternetIntroduction to Development for the Internet
Introduction to Development for the Internet
 
Mobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigitalMobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigital
 
What to Upload to SlideShare
What to Upload to SlideShareWhat to Upload to SlideShare
What to Upload to SlideShare
 
Dear NSA, let me take care of your slides.
Dear NSA, let me take care of your slides.Dear NSA, let me take care of your slides.
Dear NSA, let me take care of your slides.
 
What I Carry: 10 Tools for Success
What I Carry: 10 Tools for SuccessWhat I Carry: 10 Tools for Success
What I Carry: 10 Tools for Success
 
IT in Healthcare
IT in HealthcareIT in Healthcare
IT in Healthcare
 
SXSW 2016 takeaways
SXSW 2016 takeawaysSXSW 2016 takeaways
SXSW 2016 takeaways
 

Similar a Creating HTML Pages

HTML CSS Best Practices
HTML CSS Best PracticesHTML CSS Best Practices
HTML CSS Best Practices
hoctudau
 
Fronttechnieken met HTML5 en de Slice-template
Fronttechnieken met HTML5 en de Slice-templateFronttechnieken met HTML5 en de Slice-template
Fronttechnieken met HTML5 en de Slice-template
Inventis Web Architects
 
Index of jquery template 2 Minuteman Summer Web Dev.
Index of jquery template 2 Minuteman Summer Web Dev.Index of jquery template 2 Minuteman Summer Web Dev.
Index of jquery template 2 Minuteman Summer Web Dev.
Daniel Downs
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Terry Ryan
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
Amanda Case
 
Hypertext markup language(html)
Hypertext markup language(html)Hypertext markup language(html)
Hypertext markup language(html)
Jayson Cortez
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
Maria S Rivera
 

Similar a Creating HTML Pages (20)

Ifi7174 lesson1
Ifi7174 lesson1Ifi7174 lesson1
Ifi7174 lesson1
 
HTML CSS Best Practices
HTML CSS Best PracticesHTML CSS Best Practices
HTML CSS Best Practices
 
Polytechnic speaker deck oluwadamilare
Polytechnic speaker deck oluwadamilarePolytechnic speaker deck oluwadamilare
Polytechnic speaker deck oluwadamilare
 
Polytechnic speaker deck oluwadamilare
Polytechnic speaker deck oluwadamilarePolytechnic speaker deck oluwadamilare
Polytechnic speaker deck oluwadamilare
 
Fronttechnieken met HTML5 en de Slice-template
Fronttechnieken met HTML5 en de Slice-templateFronttechnieken met HTML5 en de Slice-template
Fronttechnieken met HTML5 en de Slice-template
 
Take Your Markup to 11
Take Your Markup to 11Take Your Markup to 11
Take Your Markup to 11
 
Html tags-chart
Html tags-chartHtml tags-chart
Html tags-chart
 
HTML & CSS 2017
HTML & CSS 2017HTML & CSS 2017
HTML & CSS 2017
 
Index of jquery template 2 Minuteman Summer Web Dev.
Index of jquery template 2 Minuteman Summer Web Dev.Index of jquery template 2 Minuteman Summer Web Dev.
Index of jquery template 2 Minuteman Summer Web Dev.
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Updated html programs
Updated html programsUpdated html programs
Updated html programs
 
TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單
 
jQuery Mobile - Desenvolvimento para dispositivos móveis
jQuery Mobile - Desenvolvimento para dispositivos móveisjQuery Mobile - Desenvolvimento para dispositivos móveis
jQuery Mobile - Desenvolvimento para dispositivos móveis
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
 
HTML tags
HTML tagsHTML tags
HTML tags
 
html-tags-chart.pdf
html-tags-chart.pdfhtml-tags-chart.pdf
html-tags-chart.pdf
 
Hypertext markup language(html)
Hypertext markup language(html)Hypertext markup language(html)
Hypertext markup language(html)
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
 
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using BootstrapStop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
 

Más de Mike Crabb

Más de Mike Crabb (20)

Hard to Reach Users in Easy to Reach Places
Hard to Reach Users in Easy to Reach PlacesHard to Reach Users in Easy to Reach Places
Hard to Reach Users in Easy to Reach Places
 
Accessible and Assistive Interfaces
Accessible and Assistive InterfacesAccessible and Assistive Interfaces
Accessible and Assistive Interfaces
 
Accessible Everyone
Accessible EveryoneAccessible Everyone
Accessible Everyone
 
The Peer Review Process
The Peer Review ProcessThe Peer Review Process
The Peer Review Process
 
Managing Quality In Qualitative Research
Managing Quality In Qualitative ResearchManaging Quality In Qualitative Research
Managing Quality In Qualitative Research
 
Analysing Qualitative Data
Analysing Qualitative DataAnalysing Qualitative Data
Analysing Qualitative Data
 
Conversation Discourse and Document Analysis
Conversation Discourse and Document AnalysisConversation Discourse and Document Analysis
Conversation Discourse and Document Analysis
 
Ethnographic and Observational Research
Ethnographic and Observational ResearchEthnographic and Observational Research
Ethnographic and Observational Research
 
Doing Focus Groups
Doing Focus GroupsDoing Focus Groups
Doing Focus Groups
 
Doing Interviews
Doing InterviewsDoing Interviews
Doing Interviews
 
Designing Qualitative Research
Designing Qualitative ResearchDesigning Qualitative Research
Designing Qualitative Research
 
Introduction to Accessible Design
Introduction to Accessible DesignIntroduction to Accessible Design
Introduction to Accessible Design
 
Accessible Everyone
Accessible EveryoneAccessible Everyone
Accessible Everyone
 
Texture and Glyph Design
Texture and Glyph DesignTexture and Glyph Design
Texture and Glyph Design
 
Pattern Perception and Map Design
Pattern Perception and Map DesignPattern Perception and Map Design
Pattern Perception and Map Design
 
Dealing with Enterprise Level Data
Dealing with Enterprise Level DataDealing with Enterprise Level Data
Dealing with Enterprise Level Data
 
Using Cloud in an Enterprise Environment
Using Cloud in an Enterprise EnvironmentUsing Cloud in an Enterprise Environment
Using Cloud in an Enterprise Environment
 
Teaching Cloud to the Programmers of Tomorrow
Teaching Cloud to the Programmers of TomorrowTeaching Cloud to the Programmers of Tomorrow
Teaching Cloud to the Programmers of Tomorrow
 
Sql Injection and XSS
Sql Injection and XSSSql Injection and XSS
Sql Injection and XSS
 
Forms and Databases in PHP
Forms and Databases in PHPForms and Databases in PHP
Forms and Databases in PHP
 

Último

Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Último (20)

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 

Creating HTML Pages

  • 2. Today Going to look at how we can create an HTML page from a ‘template’. We’ll use: http://www.rgu.ac.uk Two parts to this: 1. Looking at the template and splitting it into different sections 2. Creating the HTML for these individual sections
  • 4. this is the page we’ll be looking at
  • 5. Header Quick Links Logo Search Bar Navigation
  • 13. <!DOCTYPE html>
 <html lang="en">
 <head>
 <meta charset="UTF-8">
 <title>RGU Homepage</title>
 </head>
 <body>
 
 </body>
 </html>
  • 14. <!DOCTYPE html>
 <html lang="en">
 <head>
 <meta charset="UTF-8">
 <title>RGU Homepage</title>
 </head>
 <body>
 <!--START OF HEADER -->
 <header>
 
 </header>
 <!--END OF HEADER -->
 
 <!--START OF MAIN -->
 <main>
 
 </main>
 <!--END OF MAIN -->
 
 <!--START OF FOOTER -->
 <footer>
 
 </footer>
 <!--END OF FOOTER -->
 </body>
 </html>
  • 15. <header>
 <div id="quicklinks">
 <ul>
 <li><a href ="#">Home</a></li>
 <li><a href ="#">About</a></li>
 <li><a href ="#">RGYou</a></li>
 <li><a href ="#">Staff & Current Students</a></li>
 <li><a href ="#">A to Z</a></li>
 </ul>
 </div>
 
 <img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>
 
 <div id="seachbox">
 <form>
 <p>Search</p>
 <input type="text" name="searchfield">
 <input type="submit" value="Go">
 </form>
 </div>
 
 <nav>
 <ul>
 <li><a href ="#">Areas of Study</a></li>
 <li><a href ="#">Future Students</a></li>
 <li><a href ="#">...</a></li>
 <li><a href ="#">Contact Us</a></li>
 </ul>
 </nav>
 </header> 1. Everything that we do in the header is contained within our <header> tags
  • 16. <header>
 <div id="quicklinks">
 <ul>
 <li><a href ="#">Home</a></li>
 <li><a href ="#">About</a></li>
 <li><a href ="#">RGYou</a></li>
 <li><a href ="#">Staff & Current Students</a></li>
 <li><a href ="#">A to Z</a></li>
 </ul>
 </div>
 
 <img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>
 
 <div id="seachbox">
 <form>
 <p>Search</p>
 <input type="text" name="searchfield">
 <input type="submit" value="Go">
 </form>
 </div>
 
 <nav>
 <ul>
 <li><a href ="#">Areas of Study</a></li>
 <li><a href ="#">Future Students</a></li>
 <li><a href ="#">...</a></li>
 <li><a href ="#">Contact Us</a></li>
 </ul>
 </nav>
 </header> Quick Links 1. Create a DIV to hold the information in 2. It is best to use an unordered list to create a series of links 3. Use the # symbol when we don’t yet know where the link is going to go
  • 17. <header>
 <div id="quicklinks">
 <ul>
 <li><a href ="#">Home</a></li>
 <li><a href ="#">About</a></li>
 <li><a href ="#">RGYou</a></li>
 <li><a href ="#">Staff & Current Students</a></li>
 <li><a href ="#">A to Z</a></li>
 </ul>
 </div>
 
 <img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>
 
 <div id="seachbox">
 <form>
 <p>Search</p>
 <input type="text" name="searchfield">
 <input type="submit" value="Go">
 </form>
 </div>
 
 <nav>
 <ul>
 <li><a href ="#">Areas of Study</a></li>
 <li><a href ="#">Future Students</a></li>
 <li><a href ="#">...</a></li>
 <li><a href ="#">Contact Us</a></li>
 </ul>
 </nav>
 </header> 1. Give the logo an id so that we can style it later in css 2. Use src to give the location of the logo 3. Give the image alternative text to aid with accessibility
  • 18. <header>
 <div id="quicklinks">
 <ul>
 <li><a href ="#">Home</a></li>
 <li><a href ="#">About</a></li>
 <li><a href ="#">RGYou</a></li>
 <li><a href ="#">Staff & Current Students</a></li>
 <li><a href ="#">A to Z</a></li>
 </ul>
 </div>
 
 <img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>
 
 <div id="seachbox">
 <form>
 <p>Search</p>
 <input type="text" name="searchfield">
 <input type="submit" value="Go">
 </form>
 </div>
 
 <nav>
 <ul>
 <li><a href ="#">Areas of Study</a></li>
 <li><a href ="#">Future Students</a></li>
 <li><a href ="#">...</a></li>
 <li><a href ="#">Contact Us</a></li>
 </ul>
 </nav>
 </header> 1. Contain the search box in a DIV and give it an ID to make styling easier in CSS 2. The search box should be contained within a form 3. Use the text input type to create the box 4. Use the submit input type to create the button 5. In the future we would add a location for this form to be sent to
  • 19. <header>
 <div id="quicklinks">
 <ul>
 <li><a href ="#">Home</a></li>
 <li><a href ="#">About</a></li>
 <li><a href ="#">RGYou</a></li>
 <li><a href ="#">Staff & Current Students</a></li>
 <li><a href ="#">A to Z</a></li>
 </ul>
 </div>
 
 <img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>
 
 <div id="seachbox">
 <form>
 <p>Search</p>
 <input type="text" name="searchfield">
 <input type="submit" value="Go">
 </form>
 </div>
 
 <nav>
 <ul>
 <li><a href ="#">Areas of Study</a></li>
 <li><a href ="#">Future Students</a></li>
 <li><a href ="#">...</a></li>
 <li><a href ="#">Contact Us</a></li>
 </ul>
 </nav>
 </header> 1. Similar to before when creating this navigation bar 2. Remember to use a list 3. This time, we can use the nav element to contain everything together
  • 20. <header>
 <div id="quicklinks">
 <ul>
 <li><a href ="#">Home</a></li>
 <li><a href ="#">About</a></li>
 <li><a href ="#">RGYou</a></li>
 <li><a href ="#">Staff & Current Students</a></li>
 <li><a href ="#">A to Z</a></li>
 </ul>
 </div>
 
 <img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>
 
 <div id="seachbox">
 <form>
 <p>Search</p>
 <input type="text" name="searchfield">
 <input type="submit" value="Go">
 </form>
 </div>
 
 <nav>
 <ul>
 <li><a href ="#">Areas of Study</a></li>
 <li><a href ="#">Future Students</a></li>
 <li><a href ="#">...</a></li>
 <li><a href ="#">Contact Us</a></li>
 </ul>
 </nav>
 </header>
  • 21. <main> <!-- Section 1 -->
 <section>
 </section> <!-- Section 2 --> <section>
 </section> <!-- Section 3 --> <section>
 </section>
 </main> 1. Split the <main> into 3 <section> tags
  • 22. <section>
 <h2>Search our courses</h2>
 <form>
 <input type="text" name="keywordbox" value="Enter Keyword">
 <select>
 <option value="compsci">Computer Science</option>
 <option value="digmed">Digital Media</option>
 <option value="network">Computer Network Management and Design</option>
 <option value="other">Other</option>
 </select>
 <input type="submit" value="search">
 </form>
 <ul>
 <li>Architeture, Construction & Surveying</li>
 <li>Business, Management & Accounting</li>
 <li>Engineering</li>
 <li>...</li>
 </ul>
 </section> 1. All of our content goes between the <section> tags
  • 23. <section>
 <h2>Search our courses</h2>
 <form>
 <input type="text" name="keywordbox" value="Enter Keyword">
 <select>
 <option value="compsci">Computer Science</option>
 <option value="digmed">Digital Media</option>
 <option value="network">Computer Network Management and Design</option>
 <option value="other">Other</option>
 </select>
 <input type="submit" value="search">
 </form>
 <ul>
 <li>Architeture, Construction & Surveying</li>
 <li>Business, Management & Accounting</li>
 <li>Engineering</li>
 <li>...</li>
 </ul>
 </section> 1. Create our header for this section
  • 24. <section>
 <h2>Search our courses</h2>
 <form>
 <input type="text" name="keywordbox" value="Enter Keyword">
 <select>
 <option value="compsci">Computer Science</option>
 <option value="digmed">Digital Media</option>
 <option value="network">Computer Network Management and Design</option>
 <option value="other">Other</option>
 </select>
 <input type="submit" value="search">
 </form>
 <ul>
 <li>Architeture, Construction & Surveying</li>
 <li>Business, Management & Accounting</li>
 <li>Engineering</li>
 <li>...</li>
 </ul>
 </section> 1. Create the form allowing people to search 2. use the text type for the first box 3. use a <select> for the second 1. Every option in the dropdown has to have an option 4. Use a submit type for the button
  • 25. <section>
 <h2>Search our courses</h2>
 <form>
 <input type="text" name="keywordbox" value="Enter Keyword">
 <select>
 <option value="compsci">Computer Science</option>
 <option value="digmed">Digital Media</option>
 <option value="network">Computer Network Management and Design</option>
 <option value="other">Other</option>
 </select>
 <input type="submit" value="search">
 </form>
 <ul>
 <li>Architeture, Construction & Surveying</li>
 <li>Business, Management & Accounting</li>
 <li>Engineering</li>
 <li>...</li>
 </ul>
 </section> 1. Create an unordered list to hold all of the links 2. use <li> to hold each one spot the mistake…I should have done the following… <li><a href=“#”>My link text</a></li>
  • 26. <section>
 <h2>Search our courses</h2>
 <form>
 <input type="text" name="keywordbox" value="Enter Keyword">
 <select>
 <option value="compsci">Computer Science</option>
 <option value="digmed">Digital Media</option>
 <option value="network">Computer Network Management and Design</option>
 <option value="other">Other</option>
 </select>
 <input type="submit" value="search">
 </form>
 <ul>
 <li>Architeture, Construction & Surveying</li>
 <li>Business, Management & Accounting</li>
 <li>Engineering</li>
 <li>...</li>
 </ul>
 </section>
  • 27. <section> 
 <img src="advertbanner.png" alt="Top UK University for Graduate Employment - HESA Destination of UK Leavers Survey 2013/14. Published by HESA, August 2015”/> 
 </section> 1. Fairly easy section, just remember to include the alt text for the image. 1. If there is text in the image you should have the text in the ‘alt’ (screenreaders can’t read images)
  • 28. <section>
 <!-- Article 1 -->
 <article>
 </article>
 
 <!-- Article 2 -->
 <article>
 </article>
 
 <!-- Article 3 -->
 <article>
 </article> 
 </section> 1. Split the 3 different articles into 3 different article tags and do each one
  • 29. <article>
 <h3>Postgraduate Open Evening</h3>
 <img src="newsarticle1.png" alt="Postgraduate students talking">
 <p>Register to attend...</p>
 </article> 1. Contain everything inside the <article> tags
  • 30. <article>
 <h3>Postgraduate Open Evening</h3>
 <img src="newsarticle1.png" alt="Postgraduate students talking">
 <p>Register to attend...</p>
 </article> 1. Put the article heading in <h3> tags
  • 31. <article>
 <h3>Postgraduate Open Evening</h3>
 <img src="newsarticle1.png" alt="Postgraduate students talking">
 <p>Register to attend...</p>
 </article> 1. Remember to say where the image is (src) and what the images is (alt)
  • 32. <article>
 <h3>Postgraduate Open Evening</h3>
 <img src="newsarticle1.png" alt="Postgraduate students talking">
 <p>Register to attend...</p>
 </article> 1. Put the text in a <p> tag
  • 33. <article>
 <h3>Postgraduate Open Evening</h3>
 <img src="newsarticle1.png" alt="Postgraduate students talking">
 <p>Register to attend...</p>
 </article>
  • 34. <section>
 <!-- Article 1 -->
 <article>
 <h3>Postgraduate Open Evening</h3>
 <img src="newsarticle1.png" alt="Postgraduate students talking">
 <p>Register to attend...</p>
 </article>
 
 <!-- Article 2 -->
 <article>
 <h3>Visit Us</h3>
 <img src="newsarticle2.png" alt="Sir Ian Wood Building">
 <p>Your chance to visit...</p>
 </article>
 
 <!-- Article 3 -->
 <article>
 <h3>International Students</h3>
 <img src="newsarticle3.png" alt="Students deep in thought">
 <p>Information for future...</p>
 </article>
 </section>
  • 35. <footer>
 <h2>Connect with Us</h2>
 <ul>
 <li><a href="http://www.facebook.com"><img src="facebooklogo.png" alt="Facebook"></a></li>
 <li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></a></li>
 <li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></a></li>
 <li>...</li>
 </ul>
 </footer> 1. Contain everything within the <footer> tags
  • 36. <footer>
 <h2>Connect with Us</h2>
 <ul>
 <li><a href="http://www.facebook.com"><img src="facebooklogo.png" alt="Facebook"></a></li>
 <li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></a></li>
 <li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></a></li>
 <li>...</li>
 </ul>
 </footer> 1. Create the heading for this section
  • 37. <footer>
 <h2>Connect with Us</h2>
 <ul>
 <li><a href="http://www.facebook.com"><img src="facebooklogo.png" alt="Facebook"></a></li>
 <li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></a></li>
 <li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></a></li>
 <li>...</li>
 </ul>
 </footer> 1. Create the set of links 2. <ul> to create the unordered list 3. <li> for each item 4. <a> to let every image link to somewhere 5. <img> to have the image itself
  • 38. <!DOCTYPE html>
 <html lang="en">
 <head>
 <meta charset="UTF-8">
 <title>RGU Homepage</title>
 </head>
 <body>
 <!--START OF HEADER -->
 <header>
 <div id="quicklinks">
 <ul>
 <li><a href ="#">Home</a></li>
 <li><a href ="#">About</a></li>
 <li><a href ="#">RGYou</a></li>
 <li><a href ="#">Staff & Current Students</a></li>
 <li><a href ="#">A to Z</a></li>
 </ul>
 </div>
 
 <img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>
 
 <div id="seachbox">
 <form>
 <p>Search</p>
 <input type="text" name="searchfield">
 <input type="submit" value="Go">
 </form>
 </div>
 
 <nav>
 <ul>
 <li><a href ="#">Areas of Study</a></li>
 <li><a href ="#">Future Students</a></li>
 <li><a href ="#">...</a></li>
 <li><a href ="#">Contact Us</a></li>
 </ul>
 </nav>
 
 </header>
 <!--END OF HEADER -->
 
 <!--START OF MAIN -->
 <main>
 <section>
 <h2>Search our courses</h2>
 <form>
 <input type="text" name="keywordbox" value="Enter Keyword">
 <select>
 <option value="compsci">Computer Science</option>
 <option value="digmed">Digital Media</option>
 <option value="network">Computer Network Management and Design</option>
 <option value="other">Other</option>
 </select>
 <input type="submit" value="search">
 </form>
 <ul>
 <li>Architeture, Construction & Surveying</li>
 <li>Business, Management & Accounting</li>
 <li>Engineering</li>
 <li>...</li>
 </ul>
 </section>
 
 <section>
 <img src="advertbanner.png" alt="Top UK University for Graduate Employment - HESA Desintation of Uk Leavers Survey 2013/14. Published by HESA, August 2015">
 </section>
 
 <section>
 <!-- Article 1 -->
 <article>
 <h3>Postgraduate Open Evening</h3>
 <img src="newsarticle1.png" alt="Postgraduate students talking">
 <p>Register to attend...</p>
 </article>
 
 <!-- Article 2 -->
 <article>
 <h3>Visit Us</h3>
 <img src="newsarticle2.png" alt="Sir Ian Wood Building">
 <p>Your chance to visit...</p>
 </article>
 
 <!-- Article 3 -->
 <article>
 <h3>International Students</h3>
 <img src="newsarticle3.png" alt="Students deep in thought">
 <p>Information for future...</p>
 </article>
 </section>
 
 </main>
 <!--END OF MAIN -->
 
 <!--START OF FOOTER -->
 <footer>
 <h2>Connect with Us</h2>
 <ul>
 <li><a href="http://www.facebook.com"><img src="facebooklogo.png" alt="Facebook"></a></li>
 <li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></ a></li>
 <li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></ a></li>
 <li>...</li>
 </ul>
 </footer>
 <!--END OF FOOTER -->
 </body>
 </html>
  • 39. <!DOCTYPE html>
 <html lang="en">
 <head>
 <meta charset="UTF-8">
 <title>RGU Homepage</title>
 </head>
 <body>
 <!--START OF HEADER -->
 <header>
 <div id="quicklinks">
 <ul>
 <li><a href ="#">Home</a></li>
 <li><a href ="#">About</a></li>
 <li><a href ="#">RGYou</a></li>
 <li><a href ="#">Staff & Current Students</a></li>
 <li><a href ="#">A to Z</a></li>
 </ul>
 </div>
 
 <img id="rgu_logo" src="robertgordonlogo.jpeg" alt="Robert Gordon University"/>
 
 <div id="seachbox">
 <form>
 <p>Search</p>
 <input type="text" name="searchfield">
 <input type="submit" value="Go">
 </form>
 </div>
 
 <nav>
 <ul>
 <li><a href ="#">Areas of Study</a></li>
 <li><a href ="#">Future Students</a></li>
 <li><a href ="#">...</a></li>
 <li><a href ="#">Contact Us</a></li>
 </ul>
 </nav>
 
 </header>
 <!--END OF HEADER -->
 
 <!--START OF MAIN -->
 <main>
 <section>
 <h2>Search our courses</h2>
 <form>
 <input type="text" name="keywordbox" value="Enter Keyword">
 <select>
 <option value="compsci">Computer Science</option>
 <option value="digmed">Digital Media</option>
 <option value="network">Computer Network Management and Design</option>
 <option value="other">Other</option>
 </select>
 <input type="submit" value="search">
 </form>
 <ul>
 <li>Architeture, Construction & Surveying</li>
 <li>Business, Management & Accounting</li>
 <li>Engineering</li>
 <li>...</li>
 </ul>
 </section>
 
 <section>
 <img src="advertbanner.png" alt="Top UK University for Graduate Employment - HESA Desintation of Uk Leavers Survey 2013/14. Published by HESA, August 2015">
 </section>
 
 <section>
 <!-- Article 1 -->
 <article>
 <h3>Postgraduate Open Evening</h3>
 <img src="newsarticle1.png" alt="Postgraduate students talking">
 <p>Register to attend...</p>
 </article>
 
 <!-- Article 2 -->
 <article>
 <h3>Visit Us</h3>
 <img src="newsarticle2.png" alt="Sir Ian Wood Building">
 <p>Your chance to visit...</p>
 </article>
 
 <!-- Article 3 -->
 <article>
 <h3>International Students</h3>
 <img src="newsarticle3.png" alt="Students deep in thought">
 <p>Information for future...</p>
 </article>
 </section>
 
 </main>
 <!--END OF MAIN -->
 
 <!--START OF FOOTER -->
 <footer>
 <h2>Connect with Us</h2>
 <ul>
 <li><a href="http://www.facebook.com"><img src="facebooklogo.png" alt="Facebook"></a></li>
 <li><a href="http://www.twitter.com"><img src="twitterlogo.png" alt="Twitter"></ a></li>
 <li><a href="http://www.youtube.com"><img src="youtubelogo.png" alt="Youtube"></ a></li>
 <li>...</li>
 </ul>
 </footer>
 <!--END OF FOOTER -->
 </body>
 </html> Remember, this is only the HTML (the structure) We still need to make the CSS (the design)
  • 40. Your turn…pick one of the following website and create the html for it http://www.comp.rgu.ac.uk/ http://www.bbc.co.uk/news http://www.bbc.co.uk/sport/ http://www.techradar.com/ http://www.metoffice.gov.uk/ http://mashable.com/
  • 41. want some feedback?send me a tweet! @mike_crabb Lecturer in Web Development Robert Gordon University Scotland