Web Technologies (1.3.3) Flashcards
What is HTML?
The language that web pages are written in and defines the structure and order of the webpage.
()
All code between these tags is interpreted as HTML
()
The body contains all the content in the browser content area
()
Use to link external files e.g. CSS stylesheets
Self-closing
Used in the head container
()
Contains the website metadata and is a container for all head elements.
()
Defines the title of the document, seen in the tab of the web browser.
Put inside “head” container.
<h1></h1>
, <h2></h2>, <h3></h3>
Header styles in decreasing importance (<h1> is most important)</h1>
<p></p>
Used to define a paragraph
<img></img>
Used to place an image in a webpage
Self-closing tag
Tag parameters are:
-src=”/img/myImage.png”- path to image, image name and file type
-alt =”” - text displayed if image cannot be displayed
-height=”” - height of image
-width= “” - width of image
<a></a>
Anchor tag used to add hyperlinks
Uses href=”” to define the location of the hyperlink
<div></div>
Defines a page division or section
Groups elements to format with CSS
()
Defines a form that allows a user to input data to be processed.
Uses:
- method=”post/get” -specifies HTTP method used when sending data
- action=”URL” -Where to send the data when the form is submitted
- id=”myForm” - unique form identifier
()
Defines a field where a user can enter data, used in a form element. Types: - Text (type="text") - Submit button (type="submit") - Checkbox - Email - Password
<ol></ol>
Defines an ordered list ie. 1., 2., 3.
()
Defines a client-side script e.g. javascript
May contains a link or the script itself
<a></a>
Anchor tag used to add hyperlinks
Uses href=”” to define the location of the hyperlink