Docsity

HTML Fundamentals: Understanding Tags, Text, and Attributes, Slides of Web Application Development

Toggle sidebar
bg1
HTML Fundamentals 1
HTML Fundamentals
Basic HTML:
HTML consists of two components: text and tags
Tags
How to format and display webpages
Creates an element on the page
Constructed of two elements: core tag and additional attributes
Text
Content of the page
Attributes
Modifiers for a tag or object
EX href on an anchor tag
HTML Skeleton
<html>
<head> //Contains the title of the page, and can link to Javascript
<title> Title of Page </title>
<style>
//where CSS goes
</style>
</head>
<body>
//This is where we find all the body information
</body>
</html>
Common Tags
<strong> //Used to make text bolded
<em> //Used to emphasize text with italics
pf3
pf4
pf5

Partial preview of the text

Download HTML Fundamentals: Understanding Tags, Text, and Attributes and more Slides Web Application Development in PDF only on Docsity!

HTML Fundamentals

Basic HTML:

HTML consists of two components: text and tags

Tags

How to format and display webpages

Creates an element on the page

Constructed of two elements: core tag and additional attributes

Text

Content of the page

Attributes

Modifiers for a tag or object

EX href on an anchor tag

HTML Skeleton

//Contains the title of the page, and can link to Javascript Title of Page

//This is where we find all the body information

Common Tags

//Used to make text bolded

//Used to emphasize text with italics


//Creates a line break

//An anchor tag that is used to create links between pages; needs an HREF to tell it where to go Home

 //Used to create headings; is largest and boldest, is the opposite 

//Used to define a paragraph on a page, can also center with:

//inherently double space themselves //cannot out block elements or other

inside them

//Used to create a horizontal line across the page; can set it's width:

: //Used to place images on a page; must also contain the src attributes

//src - file name and path //alt - alternate text for the image //class or id - label for the image Common CSS tags:

//the width in pixels of the border around the image, with 0 being no border

//used to bring audio to a page; audio is embedded in sub tag

//autoplay //controls //loop

and //creates an unordered list

Words

image submit buttons

hidden text boxes

non-functional buttons (used for scripting)

//action: where is the form sent, who receives and processes it? //method: Set to =get or =post depending on security concerns

//input: core tag for soliciting input from consumer; ranges from textual input to radio to check boxes; use name attribute for form processing and JavaScript

// basic type for getting text info only;

//defines the physical width of the box

//defines the max number of characteristics the user can input

//makes text already present in the field

//sets the name of the form for use in JavaScript

//textbox with basic data validation

//requires an @ sign and data on either side

//textbox with required http:

//textbox for phone #; some browsers don't support data validation, so it would basically just be text

//text box with color picker UI

//text box with date picker/calendar UI

//text box with data validation for number and

maxlength:

increment/decrement arrows

//can also set min and max values //giving it a value gives it a default //step sets up how much it increments on click

//slider UI for number data; needs an output as well, and scripting if you want the use to see the value

//identical to type text except that letters are ****

//creates a checkbox; values will either be Yes or No depending on whether the user checks the box;

//textbox starts checked

//radio buttons a user can select //can only select one //create multiple names by listing multiple lines with the same name

Dog Cat Bird

//creates a button that will clear all the contents of the form if the user clicks it; lets them start over

//creates a submit button that causes the form to be submitted when the user clicks it

//the value explains what is inside the button

//loads an image that when the user clicks it the user clicks to submit the contents of the form

//need to provide an src tag

The incarnation of the input tag is for passing information along to the form processor; the user never sees the contents

//also commonly used when an object fails a h5 data validation

pattern="\d{3} [-] \d{3} [-] \d{4}"

//patterns give a regular expression to give a formula to compare data against

//the pattern will only validate if a user enters a phone number with dashes

//preselects the form object for the user, such as putting the cursor there to start

File Folder Paths/References

//goes from the folder it is saved in to the images folder and gets pic2.jpg

//goes from the folder it is saved in up a folder and finds classpage

//goes up to the highest folder and then starts looking for files

//would work well on a server but perhaps not on a laptop