Basic HTML correctly answered latest 2023
Basic HTML correctly answered latest 2023Editor The program that allows you to edit and modify HTML code. ex: notepad, wordpad Syntax Code syntax is the correct way that the code should be written. HTML Short for HyperText Markup Language, the authoring language used to create documents on the World Wide Web. HTML defines the structure and layout of a Web document by using a variety of tags and attributes. / A slash is used to close a HTML tage ex:html /html DOCTYPE A tag that lets a browser know what type and which version of HTML and XHTML is being used. Should be the first tag of the HTML page. ex: DOCTYPE html html Second tag of the page, defines the start of the webpage head The head tag goes right after the html tag, the head tag works with the toolbar and will not be displayed in the browser. the head tag contains the title tag and can be used to store variables in JavaScript and PHP that will be used later in the webpage. title The title tag is used to define what is displayed in the tab when the webpage is opened. ex:titleWebpage 1/title body The body tag opens us the body of the webpage, this is the part that the browser displays and the user can see. h1 The h1 tag defines a heading. The size of the heading depends on the number that is put in to the tag. The numbers that can be put into this tag range from 1- 6, 1 being the biggest. ex: h1This is a heading/h1 h2This is a heading/h2 h3This is a heading/h3 h4This is a heading/h4 h5This is a heading/h5 h6This is a heading/h6 p The p tag defines the start of a paragraph. ex: pThis is a paragraph./p HTML Formatting HTML formatting is how the creator formats the text of the webpage. The tag for bold text is b and the tag for italic is i (there are more formatting tags, these are just the two most common). ex: pbThis is bold./b/p piThis is in italics/i/p a The HTML a tag defines a hyperlink. A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document. When you move the cursor over a link in a Web page, the arrow will turn into a little hand. The most important attribute of the a element is the href attribute, which indicates the link's destination. By default, links will appear as follows in all browsers: An unvisited link is underlined and blue A visited link is underlined and purple An active link is underlined and red ex: a herf="webpage_"Go to webpage 2/a CSS CSS (Cascading Style S
Document information
- Uploaded on
- February 6, 2023
- Number of pages
- 3
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers