html stands for hypertext markup language
html is the foundation of webpages, it is needed everywhere to display content.
the html tags wrap content and provides instructions to the browser on how to organise and display content. ex= if we use "p" with angle brackets its a tag for paragraph.
filetypes
all digital assets have a filetype that indicates how the data is structured, encoded and stored.
common filetypes are -
the boilerplate or the html template provides the basic structure and essential elements needed for a webpage.
the (h1to6) tag or the heading breaks up different section of a webpage, and are used to achieve a clear and logical structure.
the (p tag) groups together related ideas and provides detail of what is being discussed in heading.
it could be single sentence or multi sentenced paragraph
list types
notes that are not displayed in browser and is mainly for documentation or as a note to self.
shortcut is cntrl+/
these tools are built into chrome browsers that allows developers to inspect debug and profile web apps.
hyperlinks are clickable text, images or element that navigates users to another webpage.
internal hyperlinks would navigate users to other webpages on the same domain while external hyperlinks navigates users to another domain.
anchor tag is to create hyperlinks in html. html attributes are within the opening anchor tag (a href) provides additional information about the html element.
hyperlinks in lists, simply add anchor tag within li tag
It provides a unique identifier for an element widely used in CSS and Javascript as well.
Anchor linking -
hyperlinks can be directly link to elements with an ID attribute, we reference that element inside na hyperlink by using a hashtag
regular html tag requires an opening and closing tag to wrap content, the self closing tag otherwise known as void element with no content to wrap. ex= (hr) (br) (img) (meta) etc.
hr tag is horizontal rule this creats a visible line between the content and br tag is for a line break it creates a break betweeen contents.
they add visual identity essential for brandind and can aid in illustrating concepts easily.
the image tag (img src= ""alt="") consists of a source attribute and alternative text attribute
the source attribute is the url that points to the actual image file, while the alternative text attribute is used by browsers for two main reasons -
It is made by mathematical equations and instructions of rendering shapes, paths and colours
they are resolution independent and are commonly used for smaller images like logos and icons.
SVG 1
SVG 2
logos and icons from undraw and ionicons
forms collect and submit user provided data and send it to a web server for processsing.
creating new accounts on any website is an example of form.
form acts as a container for various form elements that allows users to input different types of data.
the form tag (form action"" method"") consists of action attribute and a method attribute.
the action attribute specifies the location on the server where the data will be sent for processing.
the method attribute determines the http method used for handling the form data.
there are 3 main html elements that allows users to enter or select data in a form.
Input types- some are
labels improve accessibility and usabilty of forms.
the label tag
this element is used for multiline text input used for coments and longer messages.
the textarea tag:
allows users to choose from predefined options.
the select and option Tags:
used to trigger actions like submit a form.
hyperlinks and buttons can appear visually the same but they serve differsnt purposes.
forms need to know where to and how to send data.
the process of checking data to enure it meets the expected criteria.
client side validation
they are of two types:
we know differnt input types
it allows users to select one or more options from a predefined list, here the name values are different
it allows users to select exactly one option from a predefined list, the name value is same so we add value attribute to distinguish