HTML Extra Markup CS 1150 Spring 2017.

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
© Ms. Masihi 1.  A web page is created using a language called, Hypertext Markup Language, better known as HTML Code.  HTML is a user friendly language.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
HTML (HyperText Markup Language)
HTML Structure & syntax
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Introduction to HTML Wah Yan College (Hong Kong) Mr. Li C.P.
HTML: Hyptertext Markup Language Doman’s Sections.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
FORMS How to collect information f XX rom visitors Different kinds of form controls New HTML5 form controls.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
01 – HTML (1) Informatics Department Parahyangan Catholic University.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
HTML Structure & syntax
HTML Structure & syntax
Pertemuan 1 Desain web Pertemuan 1
THE EVOLUTION OF HTML HTML 4 XHTML HTML XHTML 2000 HTML5 Work In Progress Explain: There are three different types of list Ordered - The.
Fall 2016 CSULA Saloni Chacha
Introduction to CSS: Selectors
Intro to HTML CS 1150 Spring 2017.
INTRO TO WEB DEVELOPMENT html
Cascading Style Sheets Layout
Introduction to HTML.
Web Architecture & HTML
Web Basics: HTML/CSS/JavaScript What are they?
HTML Basics.
Intro to HTML CS 1150 Fall 2016.
Introduction to basic HTML
Essential Tags Web Design – Sec 3-3
>> Introduction to CSS
Elements of HTML Web Design – Sec 3-2
HTML.
Coding, Testing and Valdating a Web Page
Basic HTML PowerPoint How Hyper Text Markup Language Works
3.00cs HTML Overview 3.00cs Develop webpages.
Web Development & Design Foundations with HTML5 8th Edition
CGS 3066: Web Programming and Design Spring 2016
Essential Tags Web Design – Sec 3-3
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Web Programming– UFCFB Lecture 6
Intro to CSS CS 1150 Fall 2016.
Elements of HTML Web Design – Sec 3-2
HTML Images CS 1150 Spring 2017.
HTML Vocabulary.
Cascading Style Sheets - Building a stylesheet
Intro to CSS CS 1150 Spring 2017.
Basic HTML PowerPoint How Hyper Text Markup Language Works
Marking Up with XHTML Tags describe how a web page should look
Structuring Content in a Web Document
HTML Images CS 1150 Fall 2016.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Web Application Development
Document Structure & HTML
Basic HTML Workshop.
Marking Up with XHTML Tags describe how a web page should look
Pertemuan 1 Desain web Pertemuan 1
The Most Basic HTML Page
Marking Up with XHTML Tags describe how a web page should look
Cascading Style Sheets - Building a stylesheet
Lesson 2: HTML5 Coding.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML Extra Markup CS 1150 Spring 2017

In This Lecture Different versions of HTML and how to indicate which version you are using How to add comments to your code Global attributes Grouping elements How to add information about the web page using the <meta> element Adding characters such as angled brackets and copyright symbols

Doctypes Because there have been several versions of HTML, each webpage should begin with a DOCTYPE declaration to tell a browser which version of HTML the page is using Browsers usually display the page even if DOCTYPE is not included In this class, we are using HTML5, so we will include the DOCTYPE as <!DOCTYPE html> at the beginning of each file

Comments in HTML If you want to add a comment to your code that will not be visible to in the user’s browser, you can add the text between these characters <!-- comment goes here --> Comments are useful to add notes for yourself, or to make a piece of code invisible to the user until you would like to add it Although comments are not visible to users in the main browser window, they can be viewed by anyone who looks at the source code behind the page

ID Attribute Every HTML element can carry the id attribute The ID attribute is used to uniquely identify that element from other elements on the page It’s value should always start with a letter or an underscore, not a number or any other characters It is important that no two elements on the same page have the same value for their id attributes ID attributes will become more important when we look at CSS in the future

Class Attribute Every HTML element can carry a class attribute Class attributes define multiple elements as being different from other elements on the page Class attributes do not need to be unique, but may appear on several different elements that you want to be in the same group As with ID attributes, class attributes should begin with a letter or underscore, rather than letters or other characters

Block Elements Some elements will always appear to start on a new line in the browser window These are known as block level elements Examples of block level elements are <h1>, <p>, <ul>, and <li>

Inline Elements Some elements will always appear to continue on the same line as their neighboring elements These are known as inline elements Examples of inline elements are <a>, <b>, <em>, and <img>

Grouping Text & Elements in a Block The <div> element allows you to group a set of elements together in one block-level box You might create a <div> element to contain all of the elements for the header of your site, or you might create a <div> element to contain comments from visitors In a browser, the contents of the <div> element will start on a new line, but other than this it will make no difference to the presentation of the page

Grouping Text & Elements Inline The <span> element acts like an inline equivalent of the <div> element It is used to either: Contain a section of text where there is no other suitable element to differentiate it from its surrounding text Contain a number of inline elements The most common reason why people use <span> elements is so that they can control the appearance of the content of these elements using CSS

Information About Your Pages The <meta> element lives inside the <head> element and contains information about the web page It is not visible to users but fulfills a number of purposes such as telling search engines about your page, who created it, and whether or not it is time sensitive The meta element is an empty element so it does not have a closing tag. It uses attributes to carry the information Some common attributes used with the meta tag are name and content. The value of the name attribute is the property you are setting and the value of the content attribute is the value that you want to give this property. The <meta> element also uses the http-equiv and content attributes in pairs.

Escape Characters There are some characters that are used in and reserved by HTML code (for example, the left and right angled brackets) If you want these characters to appear on your page you need to use what are termed escape characters For example: To write a left angled bracket, you can use either < or < To write an ampersand (&), you can use either & or &

Code Examples https://www.cs.mtsu.edu/~crn2k/public/courses/1150/HTMLExamples/extra _markup.html http://www.htmlandcssbook.com/code-samples/chapter-08/