Basic tags Flashcards
Tag that initialize every html document
!DOCTYPE html
How to make a comment that not will be visible in the page?
< ! – the comment is put here – >
Define the roots of an HTML document
html
Defines information about the document, including metadata and scrips. Not visible in the web page.
head
Define the document’s body
body
In what consists the HTML element
Opening tag, content (the information), closing tag
What does the HTML Attributes
Attributes provide additional information about an element or a tag, while also modifying them. Most attributes have a value (with quotation marks); the value modifies the attribute.
Name some example of attributes
Align (Right, Centre, Left) = align the text
Width (in px or %)
Border
colspan (tables)
To insert an image
img
It contains only attributes, and does not have a closing tag.
The image’s URL (address) can be defined using the src attribute.
Image Resizing
To define the image size, use the width and height attributes.
Image Border
Use the border attribute within the image tag to create a border around the image
Add links
a (tag)
href (attribute to define the link’s destination address)
What does the “target” attribute and giving a _blank value to a link?
Giving a _blank value to your attribute will have the link open in a new window or new tab
Ordered list
ol
li (for each list item)
Unordered list
ul
li (for each list item)