简介 时隔几个月,终于又开始写博客了,原因呢,大学太颓废,还是得找点事给自己干,所以从现在开始学习前端开发,最开始,当然,从HTML开始,虽然之前也学过一些,但是总结的东西都不多,所以这次就当是正式开始系统的学习前端知识了,我的一个思路呢就是HTML->CSS->JS,先把这三大基础整透,再说后面的内容。写博客的目的呢,一是监督自己学习,二呢就是方便自己在学习的时候做好相关的笔记记录,这样也能给予自己前进的动力了,好了废话就说这么多,开始这一系列第一篇博客的更新了。
time:2020/04/07
HTML 在开始这篇博客前已经完成了一些准备工作如下:
vscode安装、webstorm安装、sublime安装,虽然这三个IDE都比较推荐,但我还是全都安装下来了,在使用过程中再来取舍。
HTML基础 用 style 属性代替旧的一些标签以及属性,如<font>,<basefont>,<s>,<u>,alion,color,bgcolor
等等。将其变成以下样式:
1 2 3 4 <p style = "background-color:red" > </p > <p style = "color:red" > </p > <p style = "font-family:verdana" > </p > <p style ="text-align:center" > </p >
文本格式化标签
1 2 3 4 5 6 7 <b > </b > <em > </em > <i > </i > <strong > </strong > <ins > </ins > <del > </del > <big > </big > <small > </small >
计算机输出标签
1 2 3 4 5 6 <code > </code > <kbd > </kbd > <sample > </sample > <tt > </tt > <var > </var > <pre > </pre >
引用
1 2 3 4 5 6 7 <q > </q > <blockquote > </blockquote > <abbr > </abbr > <dfn > </dfn > <address > </address > <cite > </cite > <bdo > </bdo >
time:2020/04/08
外部样式表
1 2 3 <head > <link rel ="stylesheet" type ="text/css" href ="mystyle.css" > </head >
内部样式表
1 2 3 4 5 6 <head > <style type ="text/css" > body {background-color : red}p {margin-left : 20px }</style > </head >
内联样式
1 2 3 <p style ="color: red; margin-left: 20px" > This is a paragraph </p >
链接
1 2 3 4 5 <a href ="url" > Link text</a > <a href ="url" target ="_blank" > </a > <a name ="xxx" > </a > <a href ="#xxx" > </a > <a href ="https://....#xxx" > </a >
图片
1 2 3 4 <img src ="" alt ="loading..." alion ="left" width ="" height ="" />
time:2020/04/09
表格
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <table border ="1" cellpadding ="10" cellspacing ="10" > <caption > 我的标题</caption > <tr > <th rowspan ="2" > Heading</th > <th colspan ="2" > Another Heading</th > </tr > <tr > <td > row 1, cell 1</td > <td > row 1, cell 2</td > </tr > <tr > <td > </td > <td > row 2, cell 2</td > </tr > </table >
列表
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 <ul type ="disc" > <li > 咖啡</li > <li > 茶</li > <li > 牛奶</li > </ul > <ol start ="50" type ="I" > <li > 咖啡</li > <li > 牛奶</li > <li > 茶</li > </ol > <dl > <dt > 计算机</dt > <dd > 用来计算的仪器 ... ...</dd > <dt > 显示器</dt > <dd > 以视觉方式显示信息的装置 ... ...</dd > </dl >
块
1 2 3 4 5 <div > </div > <span > </span >
类
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 <!DOCTYPE html> <html > <head > <style > .cities { background-color :black ; color :white ; margin :20px ; padding :20px ; } </style > </head > <body > <div class ="cities" > <h2 > London</h2 > <p > London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants. </p > </div > </body > </html >
布局
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 <!DOCTYPE html> <html > <head > <style > #header { background-color :black ; color :white ; text-align :center ; padding :5px ; } #nav { line-height :30px ; background-color :#eeeeee ; height :300px ; width :100px ; float :left ; padding :5px ; } #section { width :350px ; float :left ; padding :10px ; } #footer { background-color :black ; color :white ; clear :both ; text-align :center ; padding :5px ; } </style > </head > <body > <div id ="header" > <h1 > City Gallery</h1 > </div > <div id ="nav" > London<br > Paris<br > Tokyo<br > </div > <div id ="section" > <h2 > London</h2 > <p > London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants. </p > <p > Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium. </p > </div > <div id ="footer" > Copyright ? W3Schools.com </div > </body > </html >
time:2020/04/10
框架