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

Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
Chamnap Chhorn
 

La actualidad más candente (20)

Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
Front End Development | Introduction
Front End Development | IntroductionFront End Development | Introduction
Front End Development | Introduction
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
 
Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap
 
Bootstrap Part - 1
Bootstrap Part - 1Bootstrap Part - 1
Bootstrap Part - 1
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
 
Web hosting presentations by hostindia.net
Web hosting presentations by hostindia.netWeb hosting presentations by hostindia.net
Web hosting presentations by hostindia.net
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
metadata.pptx
metadata.pptxmetadata.pptx
metadata.pptx
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Java script
Java scriptJava script
Java script
 
Introduction To WordPress
Introduction To WordPressIntroduction To WordPress
Introduction To WordPress
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Introduction To Web Technology
Introduction To Web TechnologyIntroduction To Web Technology
Introduction To Web Technology
 
Css ppt
Css pptCss ppt
Css ppt
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
CSS
CSS CSS
CSS
 

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.
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
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
 
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

%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+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
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 

Último (20)

Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+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...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
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...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
%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
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 

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